-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(nuxt): Add module to build:transpile script #12843
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,10 +57,10 @@ | |
"nuxt": "^3.12.2" | ||
}, | ||
"scripts": { | ||
"build": "run-p build:transpile build:types build:nuxt-module", | ||
"build": "run-s build:types build:transpile", | ||
"build:dev": "yarn build", | ||
"build:nuxt-module": "nuxt-module-build build --outDir build/module", | ||
"build:transpile": "rollup -c rollup.npm.config.mjs", | ||
"build:transpile": "rollup -c rollup.npm.config.mjs && yarn build:nuxt-module", | ||
"build:types": "tsc -p tsconfig.types.json", | ||
"build:watch": "run-p build:transpile:watch build:types:watch", | ||
"build:dev:watch": "yarn build:watch", | ||
|
@@ -84,10 +84,12 @@ | |
"build:transpile": { | ||
"dependsOn": [ | ||
"^build:transpile", | ||
"^build:types" | ||
"^build:types", | ||
"build:types" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Transpilation usually shouldn't depend on the same packages types. Is there a reason you added this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is because I am building the module with |
||
], | ||
"outputs": [ | ||
"{projectRoot}/build", | ||
"{projectRoot}/build/cjs", | ||
"{projectRoot}/build/esm", | ||
"{projectRoot}/build/module" | ||
] | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add a more detailed description later. Just wanted to fix the
module
folder output right now and add some basic information along the way.