score:0
Finally, I did something like this:
// tsconfig.scripts.json
{
"compilerOptions": {
"module": "commonjs",
"baseUrl": ".",
"rootDir": "./",
"outDir": "build-script",
"target": "es6",
"sourceMap": true,
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
"resolveJsonModule": true
},
"include": ["./scripts/validateEnvVars.ts"]
}
And in the CI (github actions):
- name: Validate Env Vars
run: |
set -o allexport; source .env; set +o allexport
tsc --project ./tsconfig.scripts.json
node build-script/scripts/validateEnvVars.js
cheers
Source: stackoverflow.com
Related Query
- In a react app, use a module in a script in the CI
- What's the easiest way to use Create React App with Relay?
- What is the method can I use to send an event from native module to JS in React Native
- Is it possible to use MaterialUI with React and css modules and access the theme inside the css module file?
- React App Using the same function in two places but the API call is different. How do I force it to use the root everytime?
- trying to use cookies in my react app but it gets re-rendered all the time
- I want to use transition effects in react app. What type/ library for animation in react app should I use according to the latest trend?
- When I try to use Parcel to build a production version of a React app that works fine in development mode, I get "Cannot find module 'sass'"
- How can I use the same React app in multiple locations of the same page?
- Running a JavaScript script before react loads to not render the react app if the browser is Internet Explorer
- Create React App shows "Cannot use JSX unless the '--jsx' flag is provided"
- Use the call function of d3js on a react app
- How to use a pig latin translator npm module inside my React app
- How to use a P5.js Sketch as the "Background" of my React App
- how do I use bootstrap in only one component in my react app without messing up the layout?
- Trying to add the values of certain keys in my array to use in my React App
- How to use a federated React module if the host React application isn't using Webpack?
- Export actions when we use the UseReducer hook approach for React app
- I am getting the error "Cannot use import statement outside a module" when I run my React Razzle app
- Why is my .Net Core app processing js files in script tags on .cshtml page as part of the react js application?
- How to use community HTTP plugin in a Ionic React app when running the app on Android Emulator?
- How do i have an assets file that i can use in any file in my react app without always having to navigate to the assets folder
- What is the 'it' function in the test script in Create React App template?
- Trying to use cookies in my react app but can't get them on the server?
- Conditionally use next.js app or create react app with the same website domain according to users login
- How to put all related imports in one separate file and use it across the react app
- How can I use node module in react app after production build?
- How to import a script into a react element and use the class and functions provided by that script
- How is my React app able to use my Node REST API when its not accessible from the outside?
- TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined raised when starting react app
More Query from same tag
- Delete specific object with id
- How to best describe this code using TypeScript?
- Accessing bootstrap functionality in Jest testing
- How to pass props in routes?
- How to correctly assign axios response to react function component state
- React-router messes up request urls
- Property 'current' does not exist on type '((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement>'
- Cannot read properties of undefined (length) when passing props
- combine array elements and send response
- React multiple select form saving only one option to array
- using react-intl to translate a message key outside a component
- Set env variables in a github action before deploying to firebase hosting
- MUI V5 Variant Overrides
- React Router and Redux - Data on initial load
- Upload image to redux and show in React-Konva
- How to reset react-id-swiper each time event handler is called in React?
- Multiple tags in list.map() syntax for React
- Textfield is blurred after each key stroke after updating the local component state
- Jquery plugins giving errors $(...).ionRangeSlider not a function
- Props appear like undefined when a children is passing too
- How to read and modify a state in useEffect IAW 'exhaustive-deps' lint rule
- Can I get MapBox layers, with React.js MapBox GL JS, that have been created in MapBox Studio?
- Maximum update depth exceeded with react context api
- react-virtualized WindowScroller performance issues
- Next Js Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined
- How can i change the date Format on the top of the react-big-calender
- how to add click event listener in javascript in react js?
- On Click of a Button made in one component is not changing value in other component in React.js
- I set a callback that in return trigger a loop reaction and I cant see why?
- How do you submit on enter key press in a Chakra-UI input?