Skip to content

Commit ed6877a

Browse files
committed
build: tweaks
1 parent 20e8d79 commit ed6877a

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.npmrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
audit=false
2+
enable-pre-post-scripts=true
3+
fund=false
4+
package-lock=false
5+
prefer-dedupe=true
6+
prefer-offline=false
7+
save-prefix=~
8+
save=false
9+
strict-peer-dependencies=false
10+
unsafe-perm=true
11+
loglevel=error
12+
shamefully-hoist=true
13+
resolution-mode=highest

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,14 @@
187187
"devDependencies": {
188188
"@babel/core": "^7.13.0",
189189
"@babel/eslint-parser": "~7.12.1",
190-
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
190+
"@babel/plugin-proposal-private-property-in-object": "~7.21.11",
191191
"@babel/plugin-syntax-class-properties": "~7.12.1",
192192
"@babel/plugin-syntax-jsx": "~7.12.1",
193193
"@babel/register": "7.12.10",
194194
"@types/react": "^18.2.20",
195195
"babel-plugin-react-html-attrs": "~2.1.0",
196196
"chai": "~4.2.0",
197+
"conventional-github-releaser": "latest",
197198
"css-loader": "~4.3.0",
198199
"enzyme": "~3.2.0",
199200
"enzyme-adapter-react-16": "~1.15.5",
@@ -217,6 +218,7 @@
217218
"sass": "~1.47.0",
218219
"sass-loader": "~10.1.1",
219220
"sinon": "~9.2.3",
221+
"standard-version": "latest",
220222
"style-loader": "~1.3.0",
221223
"typescript": "^4.5.4",
222224
"webpack": "~4.46.0",
@@ -238,7 +240,11 @@
238240
"modules:debug": "./docker/debug.sh",
239241
"modules:size-analyzer": "webpack --config webpack/webpack.config.js --json | webpack-bundle-size-analyzer",
240242
"modules:tree": "webpack --config webpack/webpack.config.js --json ",
241-
"prebuild": "NODE_ENV=test npm run test:unit",
243+
"postrelease": "npm run release:tags && npm run release:github && npm publish",
244+
"prerelease": "npm run build",
245+
"release": "standard-version -a",
246+
"release:github": "conventional-github-releaser -p angular",
247+
"release:tags": "git push --follow-tags origin HEAD:master",
242248
"test": "npm run test:coverage",
243249
"test:coverage": "NODE_ENV=test nyc --reporter=text-lcov mocha test/**/*-test.js",
244250
"test:unit": "NODE_ENV=test nyc mocha test/**/*-test.js",

0 commit comments

Comments
 (0)