Skip to content

Commit 138d914

Browse files
authored
monorepo: Use workspace protocol (#1389)
1 parent 2a8dbca commit 138d914

File tree

10 files changed

+487
-227
lines changed

10 files changed

+487
-227
lines changed

examples/remix/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
"@remix-run/node": "^2.8.0",
1313
"@remix-run/react": "^2.8.0",
1414
"@remix-run/serve": "^2.8.0",
15-
"@vanilla-extract/css": "*",
15+
"@vanilla-extract/css": "workspace:*",
1616
"isbot": "^4",
1717
"react": "^18.2.0",
1818
"react-dom": "^18.2.0"
1919
},
2020
"devDependencies": {
2121
"@remix-run/dev": "^2.8.0",
2222
"@types/react": "^18.2.55",
23-
"@vanilla-extract/vite-plugin": "*",
23+
"@vanilla-extract/vite-plugin": "workspace:*",
2424
"vite": "^5.0.11"
2525
}
2626
}

fixtures/next-app-router/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313
"clean:prod": "rm -rf dist"
1414
},
1515
"dependencies": {
16-
"@fixtures/features": "*",
17-
"@fixtures/recipes": "*",
18-
"@fixtures/sprinkles": "*",
19-
"@vanilla-extract/css": "*",
20-
"@vanilla-extract/recipes": "*",
21-
"@vanilla-extract/sprinkles": "*",
16+
"@fixtures/features": "workspace:*",
17+
"@fixtures/recipes": "workspace:*",
18+
"@fixtures/sprinkles": "workspace:*",
19+
"@vanilla-extract/css": "workspace:*",
20+
"@vanilla-extract/recipes": "workspace:*",
21+
"@vanilla-extract/sprinkles": "workspace:*",
2222
"next": "npm:[email protected]",
2323
"react": "^18.2.0",
2424
"react-dom": "^18.2.0"
2525
},
2626
"devDependencies": {
2727
"@types/react": "^18.2.55",
28-
"@vanilla-extract/next-plugin": "*",
29-
"@vanilla-extract/webpack-plugin": "*"
28+
"@vanilla-extract/next-plugin": "workspace:*",
29+
"@vanilla-extract/webpack-plugin": "workspace:*"
3030
},
3131
"browserslist": [
3232
">0.3%",

fixtures/next-pages-router/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313
"clean:prod": "rm -rf dist"
1414
},
1515
"dependencies": {
16-
"@fixtures/features": "*",
17-
"@fixtures/recipes": "*",
18-
"@fixtures/sprinkles": "*",
19-
"@vanilla-extract/css": "*",
20-
"@vanilla-extract/recipes": "*",
21-
"@vanilla-extract/sprinkles": "*",
16+
"@fixtures/features": "workspace:*",
17+
"@fixtures/recipes": "workspace:*",
18+
"@fixtures/sprinkles": "workspace:*",
19+
"@vanilla-extract/css": "workspace:*",
20+
"@vanilla-extract/recipes": "workspace:*",
21+
"@vanilla-extract/sprinkles": "workspace:*",
2222
"next": "12.3.4",
2323
"react": "^18.2.0",
2424
"react-dom": "^18.2.0"
2525
},
2626
"devDependencies": {
2727
"@types/react": "^18.2.55",
28-
"@vanilla-extract/next-plugin": "*",
29-
"@vanilla-extract/webpack-plugin": "*"
28+
"@vanilla-extract/next-plugin": "workspace:*",
29+
"@vanilla-extract/webpack-plugin": "workspace:*"
3030
},
3131
"browserslist": [
3232
">0.3%",

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
"test:playwright": "NODE_OPTIONS=--no-experimental-fetch pnpm test:build-next && playwright test",
2020
"test:build-next": "tsx scripts/copy-next-plugin && pnpm --filter=@fixtures/next-* clean-build",
2121
"format": "prettier --write .",
22-
"lint": "manypkg check && prettier --check . && tsc",
22+
"lint": "pnpm run '/^lint:.*/'",
23+
"lint:manypkg": "manypkg check",
24+
"lint:prettier": "prettier --cache --check .",
25+
"lint:tsc": "tsc",
2326
"copy-readme-to-packages": "tsx scripts/copy-readme-to-packages",
2427
"version": "changeset version && pnpm install --lockfile-only",
2528
"prepare-release": "pnpm copy-readme-to-packages && pnpm build",
@@ -32,14 +35,14 @@
3235
"@babel/preset-typescript": "^7.23.3",
3336
"@changesets/changelog-github": "^0.4.8",
3437
"@changesets/cli": "^2.26.2",
35-
"@manypkg/cli": "^0.19.1",
38+
"@manypkg/cli": "^0.21.4",
3639
"@playwright/test": "^1.40.1",
3740
"@preconstruct/cli": "^2.8.2",
3841
"@testing-library/jest-dom": "^5.11.9",
3942
"@types/jest": "^29.2.5",
4043
"@types/node": "^20.9.5",
4144
"@types/testing-library__jest-dom": "^5.14.5",
42-
"@vanilla-extract/jest-transform": "*",
45+
"@vanilla-extract/jest-transform": "workspace:*",
4346
"babel-jest": "^27.3.1",
4447
"cross-env": "^7.0.3",
4548
"fast-glob": "^3.2.7",

packages/dynamic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"@vanilla-extract/private": "^1.0.3"
2727
},
2828
"devDependencies": {
29-
"@vanilla-extract/css": "*"
29+
"@vanilla-extract/css": "workspace:*"
3030
}
3131
}

packages/rollup-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@vanilla-extract/integration": "^7.0.0"
1919
},
2020
"devDependencies": {
21-
"@fixtures/themed": "*",
21+
"@fixtures/themed": "workspace:*",
2222
"@rollup/plugin-json": "^4.1.0",
2323
"@vanilla-extract/css": "^1.14.1",
2424
"esbuild": "~0.19.12",

0 commit comments

Comments
 (0)