Skip to content

Commit ff0b19a

Browse files
committed
ref(angular): incorporate review suggestions
* re-add pack command for ngc and legacy * rename moduleId of @sentry/utils to Sentry.util * change name of ngc build directory from `dist` to `build` * add LICENSE as an asset for `ng-packagr` * remove `prefix` property in `angular.json`
1 parent 2b62152 commit ff0b19a

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

packages/angular/angular.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
2-
"$schema": "../.././node_modules/@angular/cli/lib/config/schema.json",
2+
"$schema": "../../node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
66
"sentry-angular": {
77
"projectType": "library",
88
"root": ".",
99
"sourceRoot": "src",
10-
"prefix": "lib",
1110
"architect": {
1211
"build": {
1312
"builder": "@angular-devkit/build-angular:ng-packagr",

packages/angular/ng-package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"$schema": "node_modules/ng-packagr/ng-package.schema.json",
3-
"dest": "dist",
3+
"dest": "build",
44
"lib": {
55
"entryFile": "src/index.ts",
66
"umdModuleIds": {
77
"@sentry/browser": "Sentry",
8-
"@sentry/utils": "utils"
8+
"@sentry/utils": "Sentry.util"
99
}
1010
},
1111
"whitelistedNonPeerDependencies": [
@@ -15,6 +15,6 @@
1515
"tslib",
1616
"rxjs"
1717
],
18-
"assets": ["README.md"],
18+
"assets": ["README.md", "LICENSE"],
1919
"keepLifecycleScripts": true
2020
}

packages/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"zone.js": "~0.10.2"
5353
},
5454
"scripts": {
55-
"build": "run-p build:ngc",
55+
"build": "yarn build:ngc",
5656
"build:legacy": "run-p build:esm build:cjs",
5757
"build:ngc": "ng build --prod",
5858

0 commit comments

Comments
 (0)