Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,17 @@
"fix": "pnpm format --write",
"format": "prettier --config .prettierrc --ignore-path .prettierignore \"**/*.{ts,js,json,html}\"",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"release": "release-it"
"release": "wireit",
"postinstall": "patch-package"
},
"wireit": {
"release": {
"command": "release-it",
"dependencies": [
"./packages/cli:release",
"./packages/cli-test-utils:release"
]
}
},
"author": "@originjs",
"license": "MulanPSL-2.0",
Expand All @@ -31,18 +41,21 @@
"@typescript-eslint/parser": "^4.28.3",
"c8": "^7.10.0",
"chalk": "^4.1.1",
"conventional-changelog": "^3.1.25",
"eslint": "^7.31.0",
"eslint-plugin-vue": "^7.14.0",
"jest": "^27.0.6",
"lerna": "^4.0.0",
"lint-staged": "^11.0.1",
"patch-package": "^6.4.7",
"prettier": "^2.3.2",
"release-it": "^15.0.0",
"ts-jest": "^27.0.3",
"ts-node": "^10.1.0",
"typescript": "^4.3.5",
"vite": "^2.7.13",
"vitest": "^0.3.1",
"wireit": "^0.4.0",
"yorkie": "^2.0.0"
},
"gitHooks": {
Expand Down
10 changes: 9 additions & 1 deletion packages/cli-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@
"dist"
],
"scripts": {
"build": "tsc"
"build": "tsc",
"release": "release-it --npm.skipChecks --no-git.requireCleanWorkingDir"
},
"release-it": {
"git": {
"commit": false,
"tag": false,
"push": false
}
},
"dependencies": {
"@types/fs-extra": "^9.0.12",
Expand Down
10 changes: 10 additions & 0 deletions packages/cli-test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,15 @@
"dependencies": {
"execa": "^5.1.1",
"fs-extra": "^10.0.0"
},
"scripts": {
"release": "release-it --npm.skipChecks --no-git.requireCleanWorkingDir"
},
"release-it": {
"git": {
"commit": false,
"tag": false,
"push": false
}
}
}
10 changes: 9 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@
"scripts": {
"prebuild": "del-cli dist/",
"build": "tsc",
"postbuild": "cpy \"oriTemplate\" ./dist --parents"
"postbuild": "cpy \"oriTemplate\" ./dist --parents",
"release": "release-it --npm.skipChecks --no-git.requireCleanWorkingDir"
},
"release-it": {
"git": {
"commit": false,
"tag": false,
"push": false
}
},
"dependencies": {
"@originjs/cli-service": "^1.0.0",
Expand Down
13 changes: 13 additions & 0 deletions patches/release-it+15.0.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/release-it/config/release-it.json b/node_modules/release-it/config/release-it.json
index 7cb17c9..59f0ace 100644
--- a/node_modules/release-it/config/release-it.json
+++ b/node_modules/release-it/config/release-it.json
@@ -1,7 +1,7 @@
{
"hooks": {},
"git": {
- "changelog": "git log --pretty=format:\"* %s (%h)\" ${from}...${to}",
+ "changelog": "git log --pretty=format:\"* %s (%h)\" ${from}...${to} -- .",
"requireCleanWorkingDir": true,
"requireBranch": false,
"requireUpstream": true,
12 changes: 12 additions & 0 deletions patches/wireit+0.4.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/wireit/lib/executor.js b/node_modules/wireit/lib/executor.js
index a5535fd..2030ae1 100644
--- a/node_modules/wireit/lib/executor.js
+++ b/node_modules/wireit/lib/executor.js
@@ -337,6 +337,7 @@ _ScriptExecution_script = new WeakMap(), _ScriptExecution_executor = new WeakMap
// https://nodejs.org/api/child_process.html#default-windows-shell
// https://github.com/npm/run-script/blob/a5b03bdfc3a499bf7587d7414d5ea712888bfe93/lib/make-spawn-args.js#L11
shell: true,
+ stdio: ['inherit', 'pipe', 'pipe'],
env: augmentProcessEnvSafelyIfOnWindows({
PATH: __classPrivateFieldGet(this, _ScriptExecution_instances, "a", _ScriptExecution_pathEnvironmentVariable_get),
}),
Loading