Skip to content

Commit

Permalink
fix: fix prepare command
Browse files Browse the repository at this point in the history
  • Loading branch information
ineshbose committed Jan 18, 2024
1 parent 2bca37a commit f369792
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
with:
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm dev:prepare
- run: pnpm install && pnpm dev:prepare
# - run: pnpm lint
- run: pnpm test
- run: pnpm build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
registry-url: "https://registry.npmjs.org/"
cache: "pnpm"

- run: pnpm install && pnpm build
- run: pnpm install && pnpm dev:prepare && pnpm build
- run: pnpm changelogen --bump --canary --publish --publishTag nightly --from $(git log -n 1 --pretty=format:%H -- CHANGELOG.md)
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
"dist"
],
"scripts": {
"dev": "nuxi dev playground",
"play": "pnpm dev",
"prepare": "nuxt-module-build prepare && nuxt-module-build build --stub",
"prepare": "nuxt-module-build prepare",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:generate": "nuxi generate playground",
"dev:nuxt2": "nuxi dev nuxt2-playground",
"dev:prepare": "pnpm prepare",
"dev:prepare": "pnpm prepare && pnpm build:stub",
"build": "nuxt-module-build build",
"build:stub": "pnpm build --stub",
"prepack": "pnpm build",
"prepublishOnly": "pnpm build",
"release": "pnpm lint && pnpm test && pnpm prepack && pnpm changelogen --release --push && pnpm publish",
"docs:build": "nuxi generate docs",
"docs:preview": "nuxi preview docs",
Expand Down Expand Up @@ -80,5 +80,8 @@
"packageManager": "[email protected]",
"resolutions": {
"@nuxtjs/tailwindcss": "link:."
},
"stackblitz": {
"startCommand": "pnpm dev:prepare && pnpm dev"
}
}
5 changes: 4 additions & 1 deletion playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { existsSync } from 'node:fs'
import { resolve } from 'pathe'

export default defineNuxtConfig({
extends: ['./theme'],
modules: [
'@nuxt/content',
'@nuxtjs/tailwindcss',
existsSync(resolve(__dirname, '../dist/module.mjs')) ? '@nuxtjs/tailwindcss' : '../src/module',
'@nuxt/devtools'
],
tailwindcss: {
Expand Down

0 comments on commit f369792

Please sign in to comment.