Skip to content

Commit a5033c4

Browse files
authored
switch to pnpm + turbo (#17)
Co-authored-by: Arun George <aruniverse@users.noreply.github.com>
1 parent b81b9d3 commit a5033c4

31 files changed

Lines changed: 1342 additions & 3326 deletions

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@ esm/
44
*.tgz
55

66
build/
7-
*.eslintcache
7+
*.eslintcache
8+
9+
.turbo
10+
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
*.local

adblock-detect-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"detect"
2525
],
2626
"scripts": {
27-
"build": "concurrently yarn:build:cjs yarn:build:esm",
27+
"build": "npm run -s build:cjs && npm run -s build:esm",
2828
"build:cjs": "tsc -p cjs.tsconfig.json",
2929
"build:esm": "tsc -p esm.tsconfig.json",
3030
"clean": "rimraf cjs esm",

netlify.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build.environment]
2+
NPM_FLAGS="--prefix=/dev/null"
3+
[build]
4+
publish = "vite-test/dist"
5+
command = "npx pnpm i -r --store=node_modules/.pnpm-store && npx pnpm run build"

package.json

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
11
{
22
"name": "adblock-monorepo",
3-
"private": "true",
3+
"version": "0.0.0",
4+
"private": true,
45
"scripts": {
5-
"build": "yarn --cwd test-app build"
6+
"preinstall": "npx only-allow pnpm",
7+
"build": "turbo run build",
8+
"clean": "turbo run clean && rm -rf node_modules"
9+
},
10+
"devDependencies": {
11+
"turbo": "latest"
12+
},
13+
"turbo": {
14+
"npmClient": "pnpm",
15+
"pipeline": {
16+
"build": {
17+
"dependsOn": [
18+
"^build"
19+
],
20+
"outputs": [
21+
"cjs/**",
22+
"esm/**",
23+
"dist/**"
24+
]
25+
},
26+
"lint": {}
27+
}
628
},
7-
"workspaces": [
8-
"adblock-detect-react/**",
9-
"test-app/**"
10-
],
1129
"resolutions": {
1230
"immer": "^8.0.1"
1331
}

0 commit comments

Comments
 (0)