Skip to content

Commit a23aece

Browse files
committed
chore(@ddd-seedwork): npm publish setup
1 parent d865521 commit a23aece

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/seedwork/.release-it.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
"plugins": {
33
"@release-it/conventional-changelog": {
4-
"preset": "conventionalcommits",
5-
"infile": "./CHANGELOG.md"
4+
"preset": "conventionalcommits"
65
}
76
},
87
"hooks": {
9-
"before:init": ["pnpm lint", "pnpm test"],
8+
"before:init": ["pnpm lint:prepublish", "pnpm test"],
109
"after:bump": "pnpm build",
1110
"after:release": "echo Successfully released ${npm.name} v${version} to ${repo.repository}."
1211
},

lib/seedwork/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@ddd-framework/seedwork",
33
"description": "Generates a module with minimal functionality which you may change however you see fit.",
4-
"version": "0.0.0-alpha",
4+
"version": "0.1.0",
55
"private": false,
66
"publishConfig": {
77
"access": "public",
@@ -20,11 +20,12 @@
2020
"build": "tsc --project tsconfig.build.json",
2121
"dev": "pnpm watch",
2222
"lint:fix": "tsc --noEmit && eslint --fix",
23+
"lint:prepublish": "tsc --project tsconfig.build.json --noEmit && eslint",
2324
"lint": "tsc --noEmit && eslint",
2425
"prebuild": "rm -rf tsconfig.build.tsbuildinfo ./dist",
2526
"prepublish": "pnpm build",
26-
"publish:dry": "pnpm release-it --dry-run",
27-
"publish": "pnpm release-it",
27+
"release:dry": "pnpm release-it --dry-run",
28+
"release": "pnpm release-it",
2829
"test:watch": "pnpm jest --watch",
2930
"test": "pnpm jest",
3031
"watch": "tsc --project tsconfig.build.json --watch"

lib/seedwork/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": "@config/tsconfig/backend.json",
33
"include": ["."],
4-
"exclude": ["dist", "build", "node_modules"]
4+
"exclude": ["dist", "node_modules"]
55
}

0 commit comments

Comments
 (0)