Skip to content

Commit 66dc73a

Browse files
authored
Fixed env var error: added cross-env (#16)
1 parent 53fc5af commit 66dc73a

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

.github/workflows/nodejs.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@ name: Code Quality
33
on:
44
push:
55
paths:
6-
- ".github/**"
7-
- "yarn.lock"
8-
- "**.js"
9-
6+
- '.github/**'
7+
- 'yarn.lock'
8+
- '**.js'
9+
pull_request:
10+
paths:
11+
- '.github/**'
12+
- 'yarn.lock'
13+
- '**.js'
1014

1115
jobs:
1216
test_and_lint:
1317
runs-on: ubuntu-latest
1418
strategy:
1519
matrix:
16-
node: [ 10, 12, 14, 16 ]
20+
node: [10, 12, 14, 16]
1721
steps:
1822
- uses: actions/setup-node@v2
1923
with:

example/webpack5/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
"license": "MIT",
66
"private": true,
77
"scripts": {
8-
"build": "TS_NODE_PROJECT=\"webpack.tsconfig.json\" webpack"
8+
"build": "cross-env TS_NODE_PROJECT=\"webpack.tsconfig.json\" webpack"
99
},
1010
"devDependencies": {
1111
"@types/node": "^16.9.6",
1212
"@types/webpack": "^5.28.0",
13+
"cross-env": "^7.0.3",
1314
"css-loader": "^6.3.0",
1415
"style-loader": "^3.3.0",
1516
"ts-node": "^10.2.1",

example/webpack5/yarn.lock

+8-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,14 @@ create-require@^1.1.0:
317317
resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333"
318318
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
319319

320-
cross-spawn@^7.0.3:
320+
cross-env@^7.0.3:
321+
version "7.0.3"
322+
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
323+
integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==
324+
dependencies:
325+
cross-spawn "^7.0.1"
326+
327+
cross-spawn@^7.0.1, cross-spawn@^7.0.3:
321328
version "7.0.3"
322329
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
323330
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "4.2.0",
44
"main": "lib/index.js",
55
"types": "lib/index.d.ts",
6-
"files": ["lib"],
6+
"files": [
7+
"lib"
8+
],
79
"peerDependencies": {
810
"loader-utils": "^2.0.0 || ^1.0.0",
911
"postcss": ">=8.1.0",

0 commit comments

Comments
 (0)