Skip to content

Commit

Permalink
chore: use pnpm shell-emulator and remove cross-env (shuding#850)
Browse files Browse the repository at this point in the history
* chore: use pnpm shell-emulator and remove cross-env

https://pnpm.io/cli/run#shell-emulator

* fix: skip *
  • Loading branch information
promer94 authored Sep 15, 2022
1 parent 6ef048d commit 1a029e6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 61 deletions.
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
strict-peer-dependencies=false
strict-peer-dependencies=false
shell-emulator=true
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"scripts": {
"dev": "turbo run dev",
"build": "turbo run build:tailwind build --filter=./packages/*",
"build": "turbo run build:tailwind build --filter=./packages/\\*",
"types:check": "turbo run types:check",
"lint": "eslint --ignore-path .gitignore --ext js,jsx,mjs,cjs,ts,tsx,mts,cts .",
"dev:core": "turbo run dev --filter=nextra... --filter=!docs",
Expand Down Expand Up @@ -59,8 +59,7 @@
"@tailwindcss/nesting": "^0.0.0-insiders.565cd3e",
"@tailwindcss/typography": "^0.5.4",
"tsup": "^6.2.1",
"concurrently": "^7.3.0",
"cross-env": "^7.0.3",
"concurrently": "^7.3.0",
"postcss-import": "^14.1.0"
}
}
Expand Down
5 changes: 2 additions & 3 deletions packages/nextra-theme-blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
},
"scripts": {
"build": "tsup",
"build:tailwind": "cross-env NODE_ENV=production pnpm postcss src/styles.css -o style.css --verbose",
"build:tailwind": "NODE_ENV=production pnpm postcss src/styles.css -o style.css --verbose",
"build:all": "pnpm build && pnpm run build:tailwind",
"types": "tsup --dts-only",
"types:check": "tsc --noEmit",
"dev": "concurrently \"pnpm dev:layout\" \"pnpm dev:tailwind\"",
"dev:layout": "tsup --watch",
"dev:tailwind": "cross-env TAILWIND_MODE=watch pnpm postcss src/styles.css -o style.css --watch",
"dev:tailwind": "TAILWIND_MODE=watch pnpm postcss src/styles.css -o style.css --watch",
"prepublishOnly": "pnpm build:all",
"clean": "rimraf ./dist ./style.css",
"test": "vitest run",
Expand Down Expand Up @@ -66,7 +66,6 @@
"@types/react-dom": "^18.0.6",
"autoprefixer": "^10.4.8",
"concurrently": "^7.3.0",
"cross-env": "^7.0.3",
"cssnano": "^5.1.12",
"cssnano-preset-advanced": "^5.3.8",
"next": "^12.2.4",
Expand Down
5 changes: 2 additions & 3 deletions packages/nextra-theme-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"dev": "concurrently \"pnpm dev:layout\" \"pnpm dev:tailwind\"",
"build": "tsup",
"build:all": "pnpm build && pnpm run build:tailwind",
"build:tailwind": "cross-env NODE_ENV=production pnpm postcss css/styles.css -o style.css --verbose",
"build:tailwind": "NODE_ENV=production pnpm postcss css/styles.css -o style.css --verbose",
"types": "tsup --dts-only",
"types:check": "tsc --noEmit",
"dev:layout": "tsup --watch",
"dev:tailwind": "cross-env TAILWIND_MODE=watch pnpm postcss css/styles.css -o style.css --watch",
"dev:tailwind": "TAILWIND_MODE=watch pnpm postcss css/styles.css -o style.css --watch",
"prepublishOnly": "pnpm build:all",
"test": "vitest --run",
"clean": "rimraf ./dist ./style.css",
Expand Down Expand Up @@ -70,7 +70,6 @@
"@types/react-dom": "^18.0.6",
"autoprefixer": "^10.4.8",
"concurrently": "^7.3.0",
"cross-env": "^7.0.3",
"cssnano": "^5.1.12",
"cssnano-preset-advanced": "^5.3.8",
"next": "^12.2.4",
Expand Down
59 changes: 8 additions & 51 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1a029e6

Please sign in to comment.