Skip to content

Commit ddeb88f

Browse files
Merge pull request #5330 from Shopify/drop-cross-env
Drop cross-env
2 parents 936d7ac + 9082712 commit ddeb88f

File tree

12 files changed

+15
-24
lines changed

12 files changed

+15
-24
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"changeset-build-no-docs": "changeset version && pnpm install --no-frozen-lockfile && pnpm build && bin/update-cli-kit-version.js",
1212
"changeset-manifests": "changeset version && pnpm install --no-frozen-lockfile && pnpm refresh-manifests && pnpm refresh-readme && pnpm refresh-code-documentation && bin/update-cli-kit-version.js",
1313
"clean": "nx run-many --target=clean --all --skip-nx-cache && nx reset",
14-
"create-app": "nx build create-app && cross-env SHOPIFY_FLAG_PACKAGE_MANAGER=npm node packages/create-app/bin/dev.js",
14+
"create-app": "nx build create-app && node packages/create-app/bin/dev.js --package-manager npm",
1515
"deploy-experimental": "node bin/deploy-experimental.js",
1616
"graph": "nx graph",
1717
"graphql-codegen:get-graphql-schemas": "bin/get-graphql-schemas.js",
@@ -54,7 +54,6 @@
5454
"ansi-colors": "^4.1.3",
5555
"bugsnag-build-reporter": "^2.0.0",
5656
"commander": "^9.4.0",
57-
"cross-env": "^7.0.3",
5857
"esbuild": "0.24.2",
5958
"eslint": "^8.48.0",
6059
"execa": "^7.2.0",

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"clean": "nx clean",
3838
"lint": "nx lint",
3939
"lint:fix": "nx lint:fix",
40-
"prepack": "cross-env NODE_ENV=production pnpm nx build && cp ../../README.md README.md",
40+
"prepack": "NODE_ENV=production pnpm nx build && cp ../../README.md README.md",
4141
"test": "nx run app:test",
4242
"test:coverage": "nx test:coverage",
4343
"test:watch": "nx test:watch",

packages/cli-kit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"open-api-docs": "nx open-api-docs",
5252
"lint": "nx lint",
5353
"lint:fix": "nx lint:fix",
54-
"prepack": "cross-env NODE_ENV=production pnpm nx build && cp ../../README.md README.md",
54+
"prepack": "NODE_ENV=production pnpm nx build && cp ../../README.md README.md",
5555
"test": "nx test",
5656
"test:js": "nx test:js",
5757
"test:coverage": "nx test:coverage",

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"clean": "nx clean",
4747
"lint": "nx lint",
4848
"lint:fix": "nx lint:fix",
49-
"prepack": "cross-env NODE_ENV=production node ../../bin/update-bugsnag cli && cp ../../README.md README.md",
49+
"prepack": "NODE_ENV=production node ../../bin/update-bugsnag cli && cp ../../README.md README.md",
5050
"test": "nx run cli:test",
5151
"test:coverage": "nx test:coverage",
5252
"test:watch": "nx test:watch",

packages/create-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"clean": "nx clean",
4646
"lint": "nx lint",
4747
"lint:fix": "nx lint:fix",
48-
"prepack": "cross-env NODE_ENV=production node ../../bin/update-bugsnag create-app && cp ../../README.md README.md",
48+
"prepack": "NODE_ENV=production node ../../bin/update-bugsnag create-app && cp ../../README.md README.md",
4949
"test": "nx run create-app:test",
5050
"test:watch": "nx test:watch",
5151
"type-check": "nx type-check"

packages/features/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"lint": "nx lint",
99
"lint:fix": "nx lint:fix",
1010
"test": "nx run features:test",
11-
"cucumber-esm": "cross-env NODE_OPTIONS=\"--loader ts-node/esm\" cucumber-js",
11+
"cucumber": "cucumber-js",
1212
"type-check": "nx type-check"
1313
},
1414
"eslintConfig": {

packages/features/project.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@
1010
"executor": "nx:run-commands",
1111
"dependsOn": ["^build"],
1212
"options": {
13-
"command": "pnpm cucumber-esm",
14-
"cwd": "packages/features"
13+
"command": "pnpm cucumber",
14+
"cwd": "packages/features",
15+
"env": {
16+
"NODE_OPTIONS": "--loader ts-node/esm"
17+
}
1518
}
1619
},
1720
"lint": {

packages/plugin-cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"clean": "nx clean",
3737
"lint": "nx lint",
3838
"lint:fix": "nx lint:fix",
39-
"prepack": "cross-env NODE_ENV=production pnpm nx build && cp ../../README.md README.md",
39+
"prepack": "NODE_ENV=production pnpm nx build && cp ../../README.md README.md",
4040
"test": "nx run plugin-cloudflare:test",
4141
"test:watch": "nx test:watch",
4242
"type-check": "nx type-check"

packages/plugin-did-you-mean/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"clean": "nx clean",
3232
"lint": "nx lint",
3333
"lint:fix": "nx lint:fix",
34-
"prepack": "cross-env NODE_ENV=production pnpm nx build && cp ../../README.md README.md",
34+
"prepack": "NODE_ENV=production pnpm nx build && cp ../../README.md README.md",
3535
"test": "nx run plugin-did-you-mean:test",
3636
"test:watch": "nx test:watch",
3737
"type-check": "nx type-check"

packages/theme/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"clean": "nx clean",
3232
"lint": "nx lint",
3333
"lint:fix": "nx lint:fix",
34-
"prepack": "cross-env NODE_ENV=production pnpm nx build && cp ../../README.md README.md",
34+
"prepack": "NODE_ENV=production pnpm nx build && cp ../../README.md README.md",
3535
"test": "nx run theme:test",
3636
"test:watch": "nx test:watch",
3737
"type-check": "nx type-check"

0 commit comments

Comments
 (0)