diff --git a/.npmrc b/.npmrc index 92a539d7..c270c2db 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,5 @@ provenance=true link-workspace-packages=true prefer-workspace-packages=true -save-workspace-protocol=false \ No newline at end of file +save-workspace-protocol=false +shell-emulator=true \ No newline at end of file diff --git a/examples/custom-server/package.json b/examples/custom-server/package.json index a35d6c24..3a4df544 100644 --- a/examples/custom-server/package.json +++ b/examples/custom-server/package.json @@ -7,7 +7,7 @@ "build": "next build && rimraf dist && tsc --project tsconfig.server.json", "lint": "next lint", "dev": "nodemon", - "start": "cross-env NODE_ENV=production node ./dist/server.js" + "start": "NODE_ENV=production node ./dist/server.js" }, "dependencies": { "@ducanh2912/next-pwa": "latest", diff --git a/package.json b/package.json index 95bd151a..c349e284 100644 --- a/package.json +++ b/package.json @@ -12,21 +12,22 @@ "next-pwa-e2e-test" ], "scripts": { - "build": "cross-env FORCE_COLOR=1 turbo run build --filter=./packages/*", + "build": "FORCE_COLOR=1 turbo run build --filter='./packages/*'", "code-check": "biome check --max-diagnostics=150 --log-kind=compact .", "code-check:apply": "pnpm code-check --apply", "deps": "node ncu.js", - "dev": "cross-env FORCE_COLOR=1 turbo run dev --parallel --filter=./packages/*", - "docs:build": "cross-env FORCE_COLOR=1 turbo run build --filter=./docs", + "dev": "FORCE_COLOR=1 turbo run dev --parallel --filter='./packages/*'", + "docs:build": "FORCE_COLOR=1 turbo run build --filter='./docs'", "nochange": "changeset --empty", - "examples:build": "cross-env FORCE_COLOR=1 turbo run build --filter=./examples/* --concurrency=50%", - "examples:dev": "cross-env FORCE_COLOR=1 turbo run dev --parallel --filter=./examples/*", + "examples:build": "FORCE_COLOR=1 turbo run build --filter='./examples/*' --concurrency=50%", + "examples:dev": "FORCE_COLOR=1 turbo run dev --parallel --filter='./examples/*'", "format": "biome format --max-diagnostics=100 --log-kind=compact .", "format:write": "pnpm format --write", "lint": "biome lint --max-diagnostics=100 --log-kind=compact .", "lint:fix": "pnpm lint --apply", - "test": "cross-env FORCE_COLOR=1 turbo run test --filter=./packages/*", - "typecheck": "cross-env FORCE_COLOR=1 turbo run typecheck" + "publish-packages": "pnpm typecheck && pnpm lint && pnpm build && changeset publish", + "test": "FORCE_COLOR=1 turbo run test --filter='./packages/*'", + "typecheck": "FORCE_COLOR=1 turbo run typecheck" }, "devDependencies": { "@biomejs/biome": "1.7.2", @@ -37,7 +38,6 @@ "@types/shell-quote": "1.7.5", "@typescript-eslint/eslint-plugin": "7.8.0", "@typescript-eslint/parser": "7.8.0", - "cross-env": "7.0.3", "fast-glob": "3.3.2", "jest": "29.7.0", "npm-check-updates": "16.14.20", diff --git a/packages/next-pwa/package.json b/packages/next-pwa/package.json index 76072d98..c2495709 100644 --- a/packages/next-pwa/package.json +++ b/packages/next-pwa/package.json @@ -56,7 +56,7 @@ }, "scripts": { "dev": "rimraf dist && rollup --config --watch", - "build": "rimraf dist && cross-env NODE_ENV=production rollup --config --compact", + "build": "rimraf dist && NODE_ENV=production rollup --config --compact", "lint": "eslint src --ext ts,tsx,js,jsx,cjs,mjs", "test": "NODE_OPTIONS=--experimental-vm-modules jest", "typecheck": "tsc" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 74716456..be997d3c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,9 +32,6 @@ importers: '@typescript-eslint/parser': specifier: 7.8.0 version: 7.8.0(eslint@8.56.0)(typescript@5.5.0-dev.20240504) - cross-env: - specifier: 7.0.3 - version: 7.0.3 fast-glob: specifier: 3.3.2 version: 3.3.2