Skip to content

Commit 237ba25

Browse files
committed
add cross-env, invoke via exec
1 parent ac2b922 commit 237ba25

File tree

4 files changed

+24
-16
lines changed

4 files changed

+24
-16
lines changed

apps/site/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"name": "@node-core/website",
33
"type": "module",
44
"scripts": {
5-
"scripts:release-post": "cross-env NODE_NO_WARNINGS=1 node scripts/release-post/index.mjs",
6-
"dev": "cross-env NODE_NO_WARNINGS=1 next dev",
5+
"scripts:release-post": "pnpm exec cross-env NODE_NO_WARNINGS=1 node scripts/release-post/index.mjs",
6+
"dev": "pnpm exec cross-env NODE_NO_WARNINGS=1 next dev",
77
"serve": "pnpm dev",
8-
"build": "cross-env NODE_NO_WARNINGS=1 next build --turbopack",
9-
"start": "cross-env NODE_NO_WARNINGS=1 next start",
10-
"deploy": "cross-env NEXT_PUBLIC_STATIC_EXPORT=true NODE_NO_WARNINGS=1 next build",
8+
"build": "pnpm exec cross-env NODE_NO_WARNINGS=1 next build --turbopack",
9+
"start": "pnpm exec cross-env NODE_NO_WARNINGS=1 next start",
10+
"deploy": "pnpm exec cross-env NEXT_PUBLIC_STATIC_EXPORT=true NODE_NO_WARNINGS=1 next build",
1111
"check-types": "tsc --noEmit",
1212
"lint:js": "eslint \"**/*.{js,mjs,ts,tsx}\"",
1313
"lint:snippets": "node ./scripts/lint-snippets/index.mjs",
@@ -16,8 +16,8 @@
1616
"lint": "turbo run lint:md lint:snippets lint:js lint:css",
1717
"lint:fix": "turbo run lint:md lint:js lint:css --no-cache -- --fix",
1818
"sync-orama": "node ./scripts/orama-search/sync-orama-cloud.mjs",
19-
"test:unit": "cross-env NODE_NO_WARNINGS=1 node --experimental-test-coverage --test-coverage-exclude=**/*.test.* --experimental-test-module-mocks --enable-source-maps --import=global-jsdom/register --import=tsx --import=tests/setup.jsx --test **/*.test.*",
20-
"test:unit:watch": "cross-env NODE_OPTIONS=\"--watch\" npm run test:unit",
19+
"test:unit": "pnpm exec cross-env NODE_NO_WARNINGS=1 node --experimental-test-coverage --test-coverage-exclude=**/*.test.* --experimental-test-module-mocks --enable-source-maps --import=global-jsdom/register --import=tsx --import=tests/setup.jsx --test **/*.test.*",
20+
"test:unit:watch": "pnpm exec cross-env NODE_OPTIONS=\"--watch\" npm run test:unit",
2121
"test": "turbo test:unit"
2222
},
2323
"dependencies": {
@@ -44,7 +44,6 @@
4444
"@vercel/otel": "~1.10.4",
4545
"@vercel/speed-insights": "~1.2.0",
4646
"classnames": "~2.5.1",
47-
"cross-env": "7.0.3",
4847
"feed": "~4.2.2",
4948
"github-slugger": "~2.0.0",
5049
"glob": "~11.0.1",
@@ -76,6 +75,7 @@
7675
"@next/eslint-plugin-next": "15.2.4",
7776
"@testing-library/user-event": "~14.6.1",
7877
"@types/semver": "~7.7.0",
78+
"cross-env": "7.0.3",
7979
"eslint-config-next": "15.2.4",
8080
"eslint-import-resolver-typescript": "~4.3.1",
8181
"eslint-plugin-mdx": "~3.3.1",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"prettier:fix": "pnpm prettier --write",
3434
"format": "pnpm lint:fix && pnpm prettier:fix",
3535
"test": "turbo test:unit",
36-
"test:ci": "cross-env NODE_OPTIONS=\"--test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=junit.xml --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout\" turbo test:unit",
36+
"test:ci": "pnpm exec cross-env NODE_OPTIONS=\"--test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=junit.xml --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout\" turbo test:unit",
3737
"prepare": "husky"
3838
},
3939
"dependencies": {
@@ -49,6 +49,7 @@
4949
"@types/node": "22.14.0",
5050
"@types/react": "^19.1.0",
5151
"@types/react-dom": "^19.1.1",
52+
"cross-env": "7.0.3",
5253
"eslint": "~9.23.0",
5354
"eslint-plugin-import-x": "~4.10.0",
5455
"eslint-plugin-no-relative-import-paths": "~1.6.1",

packages/ui-components/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"lint:css": "stylelint \"**/*.css\" --allow-empty-input --cache --cache-strategy=content --cache-location=.stylelintcache",
2323
"lint": "turbo run lint:js lint:css",
2424
"lint:fix": "turbo run lint:js lint:css --no-cache -- --fix",
25-
"storybook": "cross-env NODE_NO_WARNINGS=1 storybook dev -p 6006 --quiet --no-open",
26-
"storybook:build": "cross-env NODE_NO_WARNINGS=1 storybook build --quiet --webpack-stats-json",
27-
"test:unit": "cross-env NODE_NO_WARNINGS=1 node --experimental-test-coverage --test-coverage-exclude=**/*.test.* --enable-source-maps --import=global-jsdom/register --import=tsx --import=../../tests/setup.mjs --test **/*.test.*",
28-
"test:unit:watch": "cross-env NODE_OPTIONS=\"--watch\" pnpm test:unit",
25+
"storybook": "pnpm exec cross-env NODE_NO_WARNINGS=1 storybook dev -p 6006 --quiet --no-open",
26+
"storybook:build": "pnpm exec cross-env NODE_NO_WARNINGS=1 storybook build --quiet --webpack-stats-json",
27+
"test:unit": "pnpm exec cross-env NODE_NO_WARNINGS=1 node --experimental-test-coverage --test-coverage-exclude=**/*.test.* --enable-source-maps --import=global-jsdom/register --import=tsx --import=../../tests/setup.mjs --test **/*.test.*",
28+
"test:unit:watch": "pnpm exec cross-env NODE_OPTIONS=\"--watch\" pnpm test:unit",
2929
"test": "turbo test:unit"
3030
},
3131
"engines": {
@@ -57,6 +57,7 @@
5757
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
5858
"@storybook/react-webpack5": "^8.6.12",
5959
"@testing-library/user-event": "~14.6.1",
60+
"cross-env": "7.0.3",
6061
"eslint-plugin-react": "~7.37.4",
6162
"eslint-plugin-storybook": "~0.12.0",
6263
"global-jsdom": "^26.0.0",

pnpm-lock.yaml

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)