Skip to content

Commit

Permalink
fix(nuxt): Add module to build:transpile script (#12843)
Browse files Browse the repository at this point in the history
Adds the `module` folder to the build output when building packages in
root-level.
  • Loading branch information
s1gr1d authored Jul 10, 2024
1 parent ed3d12f commit a79c566
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
13 changes: 13 additions & 0 deletions packages/nuxt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ The minimum supported version of Nuxt is `3.0.0`.
This package is a wrapper around `@sentry/node` for the server and `@sentry/vue` for the client side, with added
functionality related to Nuxt.

What is working:

- Error Reporting

What is partly working:

- Tracing by setting `tracesSampleRate`

What is not yet(!) included:

- Source Maps
- Connected Traces

## Automatic Setup

todo: add wizard instructions
Expand Down
10 changes: 6 additions & 4 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -84,10 +84,12 @@
"build:transpile": {
"dependsOn": [
"^build:transpile",
"^build:types"
"^build:types",
"build:types"
],
"outputs": [
"{projectRoot}/build",
"{projectRoot}/build/cjs",
"{projectRoot}/build/esm",
"{projectRoot}/build/module"
]
}
Expand Down

0 comments on commit a79c566

Please sign in to comment.