Skip to content

Commit d2b8957

Browse files
committed
build: fixed pnpm link issue
1 parent 176562c commit d2b8957

6 files changed

Lines changed: 795 additions & 9919 deletions

File tree

package.json

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"failOnWarn": false
5050
},
5151
"scripts": {
52-
"prepare": "husky && pnpm gen:theme && cd playground && pnpm i --ignore-scripts",
52+
"prepare": "husky && pnpm gen:theme && pnpm build",
5353
"build": "nuxt-module-build prepare && nuxt-module-build build && nuxi generate playground",
5454
"build:only": "nuxt-module-build build",
5555
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
@@ -73,9 +73,9 @@
7373
"gen:theme": "echo src/runtime/build/generateTheme.ts"
7474
},
7575
"peerDependencies": {
76-
"tailwindcss": "^4.1.12",
77-
"unplugin-icons": "^22.1.0",
78-
"vue": "^3.2.47"
76+
"tailwindcss": "cataglog:",
77+
"unplugin-icons": "cataglog:",
78+
"vue": "cataglog:"
7979
},
8080
"peerDependenciesMeta": {
8181
"tailwindcss": {
@@ -86,80 +86,80 @@
8686
}
8787
},
8888
"dependencies": {
89-
"@alanscodelog/utils": "^6.0.1",
90-
"@iconify/json": "^2.2.379",
91-
"@nuxt/kit": "^4.0.3",
92-
"@nuxt/schema": "^4.0.3",
93-
"@nuxt/types": "^2.18.1",
94-
"@tailwindcss/vite": "^4.1.12",
95-
"@witchcraft/nuxt-utils": "^0.2.1",
96-
"colord": "^2.9.3",
97-
"colorjs.io": "0.6.0-alpha.1",
98-
"defu": "^6.1.4",
99-
"fast-glob": "^3.3.3",
100-
"metamorphosis": "^0.6.1",
101-
"reka-ui": "^2.5.0",
102-
"tailwind-merge": "^3.3.1",
103-
"unplugin-icons": "^22.2.0",
104-
"unplugin-vue-components": "^28.8.0",
105-
"vue-component-type-helpers": "^2.2.12"
89+
"@alanscodelog/utils": "catalog:",
90+
"@iconify/json": "catalog:",
91+
"@nuxt/kit": "catalog:",
92+
"@nuxt/schema": "catalog:",
93+
"@nuxt/types": "catalog:",
94+
"@tailwindcss/vite": "catalog:",
95+
"@witchcraft/nuxt-utils": "catalog:",
96+
"colord": "catalog:",
97+
"colorjs.io": "catalog:",
98+
"defu": "catalog:",
99+
"fast-glob": "catalog:",
100+
"metamorphosis": "catalog:",
101+
"reka-ui": "catalog:",
102+
"tailwind-merge": "catalog:",
103+
"unplugin-icons": "catalog:",
104+
"unplugin-vue-components": "catalog:",
105+
"vue-component-type-helpers": "catalog:"
106106
},
107107
"devDependencies": {
108-
"@alanscodelog/commitlint-config": "^3.1.2",
109-
"@alanscodelog/eslint-config": "^6.3.0",
110-
"@alanscodelog/semantic-release-config": "^5.0.4",
111-
"@alanscodelog/tsconfigs": "^6.2.0",
112-
"@alanscodelog/vite-config": "^0.0.6",
113-
"@chromatic-com/storybook": "^3.2.7",
114-
"@commitlint/cli": "^19.8.1",
115-
"@internationalized/date": "^3.9.0",
116-
"@nuxt/eslint-config": "^1.9.0",
117-
"@nuxt/module-builder": "^1.0.2",
118-
"@nuxtjs/i18n": "^9.5.6",
119-
"@playwright/test": "=1.54.0",
120-
"@rollup/plugin-node-resolve": "^16.0.1",
121-
"@storybook/addon-a11y": "^8.6.14",
122-
"@storybook/addon-actions": "^8.6.14",
123-
"@storybook/addon-essentials": "^8.6.14",
124-
"@storybook/addon-interactions": "^8.6.14",
125-
"@storybook/addon-links": "^8.6.14",
126-
"@storybook/addon-storysource": "^8.6.14",
127-
"@storybook/blocks": "^8.6.14",
128-
"@storybook/manager-api": "^8.6.14",
129-
"@storybook/test": "^8.6.14",
130-
"@storybook/test-runner": "^0.22.1",
131-
"@storybook/vue3": "^8.6.14",
132-
"@storybook/vue3-vite": "^8.6.14",
133-
"@tailwindcss/cli": "^4.1.12",
134-
"@tailwindcss/postcss": "^4.1.12",
135-
"@types/node": "^24.3.0",
136-
"@vitejs/plugin-vue": "^6.0.1",
137-
"@vue/runtime-core": "^3.5.20",
138-
"@vue/runtime-dom": "^3.5.20",
139-
"@vueuse/components": "^13.8.0",
140-
"@vueuse/core": "^13.8.0",
141-
"autoprefixer": "^10.4.21",
142-
"concurrently": "^9.2.1",
143-
"eslint": "^9.34.0",
144-
"http-server": "^14.1.1",
145-
"husky": "^9.1.7",
146-
"indexit": "2.1.0-beta.3",
147-
"madge": "^7.0.0",
148-
"nuxt": "^4.0.3",
149-
"playwright": "=1.54.0",
150-
"playwright-core": "=1.54.0",
151-
"semantic-release": "^24.2.7",
152-
"storybook": "^8.6.14",
153-
"storybook-dark-mode": "^4.0.2",
154-
"tailwindcss": "^4.1.12",
155-
"ts-node": "^10.9.2",
156-
"typescript": "^5.9.2",
157-
"unbuild": "^3.6.1",
158-
"vite": "^7.1.3",
159-
"vite-tsconfig-paths": "^5.1.4",
160-
"vue": "^3.5.20",
161-
"vue-tsc": "3.0.6",
162-
"wait-on": "^8.0.4"
108+
"@alanscodelog/commitlint-config": "catalog:",
109+
"@alanscodelog/eslint-config": "catalog:",
110+
"@alanscodelog/semantic-release-config": "catalog:",
111+
"@alanscodelog/tsconfigs": "catalog:",
112+
"@alanscodelog/vite-config": "catalog:",
113+
"@chromatic-com/storybook": "catalog:",
114+
"@commitlint/cli": "catalog:",
115+
"@internationalized/date": "catalog:",
116+
"@nuxt/eslint-config": "catalog:",
117+
"@nuxt/module-builder": "catalog:",
118+
"@nuxtjs/i18n": "catalog:",
119+
"@playwright/test": "catalog:",
120+
"@rollup/plugin-node-resolve": "catalog:",
121+
"@storybook/addon-a11y": "catalog:",
122+
"@storybook/addon-actions": "catalog:",
123+
"@storybook/addon-essentials": "catalog:",
124+
"@storybook/addon-interactions": "catalog:",
125+
"@storybook/addon-links": "catalog:",
126+
"@storybook/addon-storysource": "catalog:",
127+
"@storybook/blocks": "catalog:",
128+
"@storybook/manager-api": "catalog:",
129+
"@storybook/test": "catalog:",
130+
"@storybook/test-runner": "catalog:",
131+
"@storybook/vue3": "catalog:",
132+
"@storybook/vue3-vite": "catalog:",
133+
"@tailwindcss/cli": "catalog:",
134+
"@tailwindcss/postcss": "catalog:",
135+
"@types/node": "catalog:",
136+
"@vitejs/plugin-vue": "catalog:",
137+
"@vue/runtime-core": "catalog:",
138+
"@vue/runtime-dom": "catalog:",
139+
"@vueuse/components": "catalog:",
140+
"@vueuse/core": "catalog:",
141+
"autoprefixer": "catalog:",
142+
"concurrently": "catalog:",
143+
"eslint": "catalog:",
144+
"http-server": "catalog:",
145+
"husky": "catalog:",
146+
"indexit": "catalog:",
147+
"madge": "catalog:",
148+
"nuxt": "catalog:",
149+
"playwright": "catalog:",
150+
"playwright-core": "catalog:",
151+
"semantic-release": "catalog:",
152+
"storybook": "catalog:",
153+
"storybook-dark-mode": "catalog:",
154+
"tailwindcss": "catalog:",
155+
"ts-node": "catalog:",
156+
"typescript": "catalog:",
157+
"unbuild": "catalog:",
158+
"vite": "catalog:",
159+
"vite-tsconfig-paths": "catalog:",
160+
"vue": "catalog:",
161+
"vue-tsc": "catalog:",
162+
"wait-on": "catalog:"
163163
},
164164
"author": "Alan <alanscodelog@gmail.com>",
165165
"repository": "https://github.com/witchcraftjs/ui",

playground/nuxt.config.ts

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
export default defineNuxtConfig({
2-
devtools: { enabled: true },
3-
compatibilityDate: "2024-09-23",
4-
future: {
5-
compatibilityVersion: 4 as const
6-
},
72
modules: [
83
"../src/module"
9-
// the below also works, just remember to run the update-dep script and uncomment ../src/module above before attempting to use the file: linked module
10-
// "@witchcraft/ui/nuxt"
114
],
12-
witchcraftUi: {
13-
// only needed for the package's playground
14-
// because we can't resolve the package name from tailwind
15-
_playgroundWorkaround: true,
5+
devtools: { enabled: true },
6+
future: {
7+
compatibilityVersion: 4 as const
168
},
9+
compatibilityDate: "2024-09-23",
1710
vite: {
1811
build: {
1912
rollupOptions: {
2013
output: {
2114
// #awaiting https://github.com/nuxt/nuxt/issues/31326
22-
sanitizeFileName: true,
23-
},
24-
},
25-
},
15+
sanitizeFileName: true
16+
}
17+
}
18+
}
2619
},
20+
witchcraftUi: {
21+
// only needed for the package's playground
22+
// because we can't resolve the package name from tailwind
23+
_playgroundWorkaround: true
24+
}
2725
})

playground/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
"scripts": {
66
"dev": "nuxi dev",
77
"build": "nuxi build",
8-
"generate": "nuxi generate",
9-
"update-dep": "cd ../ && pnpm build:only && cd playground && pnpm update @witchcraft/ui"
8+
"generate": "nuxi generate"
109
},
1110
"dependencies": {
12-
"@witchcraft/ui": "file:..",
13-
"nuxt": "^4.0.3",
14-
"tailwindcss": "^4.1.12",
15-
"vue": "^3.5.20"
11+
"@witchcraft/ui": "workspace:*",
12+
"nuxt": "catalog:",
13+
"tailwindcss": "catalog:",
14+
"vue": "catalog:"
1615
}
1716
}

0 commit comments

Comments
 (0)