Skip to content

Commit a79c566

Browse files
authored
fix(nuxt): Add module to build:transpile script (#12843)
Adds the `module` folder to the build output when building packages in root-level.
1 parent ed3d12f commit a79c566

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

packages/nuxt/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ The minimum supported version of Nuxt is `3.0.0`.
2828
This package is a wrapper around `@sentry/node` for the server and `@sentry/vue` for the client side, with added
2929
functionality related to Nuxt.
3030

31+
What is working:
32+
33+
- Error Reporting
34+
35+
What is partly working:
36+
37+
- Tracing by setting `tracesSampleRate`
38+
39+
What is not yet(!) included:
40+
41+
- Source Maps
42+
- Connected Traces
43+
3144
## Automatic Setup
3245

3346
todo: add wizard instructions

packages/nuxt/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@
5757
"nuxt": "^3.12.2"
5858
},
5959
"scripts": {
60-
"build": "run-p build:transpile build:types build:nuxt-module",
60+
"build": "run-s build:types build:transpile",
6161
"build:dev": "yarn build",
6262
"build:nuxt-module": "nuxt-module-build build --outDir build/module",
63-
"build:transpile": "rollup -c rollup.npm.config.mjs",
63+
"build:transpile": "rollup -c rollup.npm.config.mjs && yarn build:nuxt-module",
6464
"build:types": "tsc -p tsconfig.types.json",
6565
"build:watch": "run-p build:transpile:watch build:types:watch",
6666
"build:dev:watch": "yarn build:watch",
@@ -84,10 +84,12 @@
8484
"build:transpile": {
8585
"dependsOn": [
8686
"^build:transpile",
87-
"^build:types"
87+
"^build:types",
88+
"build:types"
8889
],
8990
"outputs": [
90-
"{projectRoot}/build",
91+
"{projectRoot}/build/cjs",
92+
"{projectRoot}/build/esm",
9193
"{projectRoot}/build/module"
9294
]
9395
}

0 commit comments

Comments
 (0)