Skip to content

Commit ce1d3c9

Browse files
EugeneHlushkomontogeek
authored andcommitted
docs(config) add cross-env to TS_NODE_PROJECT build script (#2761)
1 parent dfe9c47 commit ce1d3c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/content/configuration/configuration-languages.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@ __package.json__
8484
```json
8585
{
8686
"scripts": {
87-
"build": "TS_NODE_PROJECT=\"tsconfig-for-webpack-config.json\" webpack"
87+
"build": "cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack-config.json\" webpack"
8888
}
8989
}
9090
```
9191

92+
W> We had been getting reports that `TS_NODE_PROJECT` might not work with `"TS_NODE_PROJECT" unrecognized command` error. Therefore running it with `cross-env` seems to fix the issue, for more info [see this issue](https://github.com/webpack/webpack.js.org/issues/2733).
93+
9294

9395
## CoffeeScript
9496

0 commit comments

Comments
 (0)