Skip to content

Commit 8c04dce

Browse files
authored
feat(publish): Create NPM tarballs (#54)
- Add yarn scripts (`yarn build:npm`) to our packages to create NPM tarballs. - Rename the root package (purely cosmetic) and the core package (to get a somewhat reasonanable package name)
1 parent 77a217e commit 8c04dce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+39
-29
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
node_modules
22
yarn-error.log
3+
4+
.vscode/settings.json
5+
6+
*.tgz

nx.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
},
2525
"check:types": {
2626
"dependsOn": ["^build"]
27+
},
28+
"build:npm": {
29+
"dependsOn": ["build", "^build"]
2730
}
2831
}
2932
}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "@sentry/sentry-unplugin-root",
2+
"name": "@sentry/bundler-plugins",
33
"version": "0.0.0",
4-
"description": "Root of the sentry unplugin monorepo.",
5-
"repository": "[email protected]:lforst/sentry-unplugin.git",
4+
"description": "Sentry Bundler Plugins Monorepo.",
5+
"repository": "[email protected]:getsentry/sentry-unplugin.git",
66
"private": true,
77
"workspaces": [
88
"packages/*"
@@ -11,6 +11,7 @@
1111
"build": "nx run-many --target=build --all",
1212
"build:watch": "nx run-many --target=build:watch --all",
1313
"build:graph": "nx graph",
14+
"build:npm": "nx run-many --target=build:npm --all",
1415
"check:types": "nx run-many --target=check:types --all",
1516
"test": "nx run-many --target=test --all",
1617
"lint": "nx run-many --target=lint --all",
File renamed without changes.
Lines changed: 2 additions & 4 deletions
File renamed without changes.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@sentry/sentry-unplugin",
2+
"name": "@sentry/bundler-plugin-core",
33
"version": "0.0.0-alpha.0",
44
"description": "Official Sentry unplugin",
55
"repository": "git://github.com/getsentry/sentry-unplugin.git",
@@ -22,6 +22,7 @@
2222
"build:rollup:watch": "rollup --config rollup.config.js --watch --no-watch.clearScreen",
2323
"build:types": "tsc --project types.tsconfig.json",
2424
"build:types:watch": "tsc --project types.tsconfig.json --watch --preserveWatchOutput",
25+
"build:npm": "npm pack",
2526
"check:types": "run-p check:types:src check:types:test",
2627
"check:types:src": "tsc --project ./src/tsconfig.json --noEmit",
2728
"check:types:test": "tsc --project ./test/tsconfig.json --noEmit",

0 commit comments

Comments
 (0)