Skip to content

Commit 4ed3760

Browse files
More release-plan tweaks (#2877)
* Keep trying to make release-plan work * Copy root README * Update exports * Update package.json
1 parent f022d99 commit 4ed3760

File tree

5 files changed

+19
-252
lines changed

5 files changed

+19
-252
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

33
# compiled output
4-
/dist
4+
dist
55
/tmp
66
/out-tsc
77

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@
1010
},
1111
"scripts": {
1212
"build": "ng build",
13-
"build_lib": "ng build shepherd",
13+
"build_lib": "ng build shepherd && cp README.md projects/shepherd/dist/",
1414
"e2e": "ng e2e",
1515
"lint": "ng lint",
1616
"ng": "ng",
17-
"npm_pack": "cd dist/angular-shepherd && npm pack",
18-
"package": "npm run build_lib && npm run npm_pack",
1917
"start": "ng serve",
2018
"test": "ng test"
2119
},

projects/shepherd/README.md

Lines changed: 0 additions & 245 deletions
This file was deleted.

projects/shepherd/ng-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3-
"dest": "../../dist/angular-shepherd",
3+
"dest": "dist",
44
"lib": {
55
"entryFile": "src/public_api.ts"
66
},

projects/shepherd/package.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,23 @@
2727
"@angular/core": "^21.0.0"
2828
},
2929
"publishConfig": {
30-
"registry": "https://registry.npmjs.org",
31-
"directory": "../../dist/angular-shepherd"
30+
"registry": "https://registry.npmjs.org"
3231
},
32+
"files": [
33+
"dist"
34+
],
35+
"module": "./dist/fesm2022/angular-shepherd.mjs",
36+
"types": "./dist/types/angular-shepherd.d.ts",
37+
"exports": {
38+
"./package.json": {
39+
"default": "./package.json"
40+
},
41+
".": {
42+
"types": "./dist/types/angular-shepherd.d.ts",
43+
"default": "./dist/fesm2022/angular-shepherd.mjs"
44+
}
45+
},
46+
"sideEffects": false,
3347
"release-plan": {
3448
"tagFormat": "v${version}"
3549
}

0 commit comments

Comments
 (0)