File tree 4 files changed +13
-8
lines changed
4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 18
18
with :
19
19
node-version : 20
20
20
cache : " pnpm"
21
- - run : pnpm install
22
- - run : pnpm dev:prepare
21
+ - run : pnpm install && pnpm dev:prepare
23
22
# - run: pnpm lint
24
23
- run : pnpm test
25
24
- run : pnpm build
Original file line number Diff line number Diff line change 23
23
registry-url : " https://registry.npmjs.org/"
24
24
cache : " pnpm"
25
25
26
- - run : pnpm install && pnpm build
26
+ - run : pnpm install && pnpm dev:prepare && pnpm build
27
27
- run : pnpm changelogen --bump --canary --publish --publishTag nightly --from $(git log -n 1 --pretty=format:%H -- CHANGELOG.md)
28
28
env :
29
29
NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
Original file line number Diff line number Diff line change 22
22
" dist"
23
23
],
24
24
"scripts" : {
25
- "dev" : " nuxi dev playground" ,
26
25
"play" : " pnpm dev" ,
27
- "prepare" : " nuxt-module-build prepare && nuxt-module-build build --stub" ,
26
+ "prepare" : " nuxt-module-build prepare" ,
27
+ "dev" : " nuxi dev playground" ,
28
28
"dev:build" : " nuxi build playground" ,
29
29
"dev:generate" : " nuxi generate playground" ,
30
30
"dev:nuxt2" : " nuxi dev nuxt2-playground" ,
31
- "dev:prepare" : " pnpm prepare" ,
31
+ "dev:prepare" : " pnpm prepare && pnpm build:stub " ,
32
32
"build" : " nuxt-module-build build" ,
33
+ "build:stub" : " pnpm build --stub" ,
33
34
"prepack" : " pnpm build" ,
34
- "prepublishOnly" : " pnpm build" ,
35
35
"release" : " pnpm lint && pnpm test && pnpm prepack && pnpm changelogen --release --push && pnpm publish" ,
36
36
"docs:build" : " nuxi generate docs" ,
37
37
"docs:preview" : " nuxi preview docs" ,
80
80
"packageManager" : " pnpm@8.14.1" ,
81
81
"resolutions" : {
82
82
"@nuxtjs/tailwindcss" : " link:."
83
+ },
84
+ "stackblitz" : {
85
+ "startCommand" : " pnpm dev:prepare && pnpm dev"
83
86
}
84
87
}
Original file line number Diff line number Diff line change
1
+ import { existsSync } from 'node:fs'
2
+ import { resolve } from 'pathe'
3
+
1
4
export default defineNuxtConfig ( {
2
5
extends : [ './theme' ] ,
3
6
modules : [
4
7
'@nuxt/content' ,
5
- ' @nuxtjs/tailwindcss',
8
+ existsSync ( resolve ( __dirname , '../dist/module.mjs' ) ) ? ' @nuxtjs/tailwindcss' : '../src/module ',
6
9
'@nuxt/devtools'
7
10
] ,
8
11
tailwindcss : {
You can’t perform that action at this time.
0 commit comments