diff --git a/package-lock.json b/package-lock.json
index b878cad..66df1ae 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15284,6 +15284,7 @@
"i": "^0.3.7",
"lodash.isequal": "^4.5.0",
"npm": "^9.7.2",
+ "techor": "",
"upath": "^2.0.1"
},
"bin": {
@@ -18558,6 +18559,8 @@
"license": "MIT",
"dependencies": {
"@techor/jest": "",
+ "@techor/pack": "",
+ "@techor/version": "",
"commitlint-config-techor": "",
"conventional-changelog-techor": "",
"eslint-config-techor": "",
@@ -18587,8 +18590,6 @@
"license": "MIT",
"dependencies": {
"@techor/fs": "",
- "@techor/pack": "",
- "@techor/version": "",
"commander": "^10.0.0"
},
"bin": {
@@ -18612,6 +18613,7 @@
"@techor/log": "",
"commander": "^10.0.0",
"fast-glob": "^3.2.12",
+ "techor": "",
"upath": "^2.0.1"
},
"bin": {
diff --git a/packages/conventional-changelog-config/.dev/CHANGELOG.md b/packages/conventional-changelog-config/.dev/CHANGELOG.md
deleted file mode 100644
index 2c14977..0000000
--- a/packages/conventional-changelog-config/.dev/CHANGELOG.md
+++ /dev/null
@@ -1,44 +0,0 @@
-### New Features
-
-- Amazing new module [8c13382](https://github.com/conventional-changelog/conventional-changelog/commit/8c13382032c789617f1f05a0d96afc8b730a9054)
-- **API** - New option for test [#88](https://github.com/conventional-changelog/conventional-changelog/issues/88) [4ffe6bb](https://github.com/conventional-changelog/conventional-changelog/commit/4ffe6bb0cbbebd77e8e78eb2fe81bd795f240190)
-- **Awesome** - Addresses the issue brought up in [#133](https://github.com/conventional-changelog/conventional-changelog/issues/133) [60c67cb](https://github.com/conventional-changelog/conventional-changelog/commit/60c67cb780072bb98474089b02c85e5b75879c06)
-- **Search** - Issue brought up by [@1aron](https://github.com/1aron)! on Friday [86a85a7](https://github.com/conventional-changelog/conventional-changelog/commit/86a85a79b90b3cce6d8d05ec1fe2e6a031de0179)
-
-### Performance Upgrades
-
-- **`ngOptions`** - Make it faster [5b8ca3f](https://github.com/conventional-changelog/conventional-changelog/commit/5b8ca3f25b3451c45d3094ca763cda106aef10c0), [#1](https://github.com/conventional-changelog/conventional-changelog/issues/1) [#2](https://github.com/conventional-changelog/conventional-changelog/issues/2)
-- **`ngOptions`** - Make it faster, [#1](https://github.com/conventional-changelog/conventional-changelog/issues/1), [#2](https://github.com/conventional-changelog/conventional-changelog/issues/2) [9db3b1f](https://github.com/conventional-changelog/conventional-changelog/commit/9db3b1f70d7776e8f1924ad75e4c8d7e21d39606)
-
-### Updates
-
-- **Contact** - Address and tel [98257a0](https://github.com/conventional-changelog/conventional-changelog/commit/98257a0a1db3034e6dbb6d8aec7d3341635dba78)
-
-### Improvements
-
-- **UI** - Call to action [1288abb](https://github.com/conventional-changelog/conventional-changelog/commit/1288abb25ac2328c213bc2d8145a14f238d0f058)
-
-### Bug Fixes
-
-- **Compiler** - Avoid a bug [2e5d52a](https://github.com/conventional-changelog/conventional-changelog/commit/2e5d52a96c0af64aed6d9128d524b3e9606beea0)
-- Content not changed [5d452f5](https://github.com/conventional-changelog/conventional-changelog/commit/5d452f50d80f04602be367d6018880ceeb1059d5)
-- **Normal.css** - Layout shift [3dc62dd](https://github.com/conventional-changelog/conventional-changelog/commit/3dc62ddc485ef2302886cc931d4691187f7f3437)
-- **Vite** - HMR causes page reloaded [3db0e24](https://github.com/conventional-changelog/conventional-changelog/commit/3db0e243c56acbf04191084c6554f0940b6a058a)
-
-### Deprecations
-
-- **Commitlint Config** - Remove `header-max-length` rule [b9d304c](https://github.com/conventional-changelog/conventional-changelog/commit/b9d304cd48126135e25e1e0faeced73c8c7b50de)
-- **Syntax** - Use `fg:color` instead of ~~`font:color`~~ [6cc0fbb](https://github.com/conventional-changelog/conventional-changelog/commit/6cc0fbb8de3de11057ffdc3bb273078f0bbb5c86)
-
-### Documentation
-
-- Add `font-size` demo [eecfe9d](https://github.com/conventional-changelog/conventional-changelog/commit/eecfe9d449d6c38596d28076d44423aa45b4d4ee)
-
-### Upgrades
-
-- Bump `@dummy/package` from 7.1.2 to 8.0.0 [0fda24b](https://github.com/conventional-changelog/conventional-changelog/commit/0fda24bc1ea98ed5f37a4415f3d960b88dd2e871)
-
-### Reversions
-
-- Revert《 Fix(Repo): PeerDependencies -> Dependencies 》 [d81112c](https://github.com/conventional-changelog/conventional-changelog/commit/d81112c750eda2163f3df6f4d979058dac72da9e)
-- **`ngOptions`** - Bad commit [1992c07](https://github.com/conventional-changelog/conventional-changelog/commit/1992c071b103ea5fa88ddbdb164ba723b55c0578)
\ No newline at end of file
diff --git a/packages/conventional-changelog-config/.dev/CHANGELOG.more.md b/packages/conventional-changelog-config/.dev/CHANGELOG.more.md
deleted file mode 100644
index 71f0a1e..0000000
--- a/packages/conventional-changelog-config/.dev/CHANGELOG.more.md
+++ /dev/null
@@ -1,3 +0,0 @@
-### New Features
-
-- `it` alias for `test` [77acacd](https://github.com/conventional-changelog/conventional-changelog/commit/77acacd6c3ef5b30b99210bd3b358f00c98e5707)
\ No newline at end of file
diff --git a/packages/conventional-changelog-config/tests/changelog.test.ts b/packages/conventional-changelog-config/tests/changelog.test.ts
index 1e4199e..5cb08d5 100644
--- a/packages/conventional-changelog-config/tests/changelog.test.ts
+++ b/packages/conventional-changelog-config/tests/changelog.test.ts
@@ -8,8 +8,8 @@ import initFakeGit from '../../../utils/init-fake-git'
const config = require('../')
const conventionalChangelogCore = require('conventional-changelog-core')
-if (!fs.existsSync(path.join(__dirname, '../.dev'))) {
- fs.mkdirSync(path.join(__dirname, '../.dev'))
+if (!fs.existsSync(path.join(__dirname, '../changelog-dist'))) {
+ fs.mkdirSync(path.join(__dirname, '../changelog-dist'))
}
describe('techor preset', () => {
@@ -97,7 +97,7 @@ export function testAronChangelog(commits, handle: (changelog: string) => void,
})
.on('data', changelogChunk => {
const changelog = changelogChunk.toString()
- fs.writeFileSync(path.join(__dirname, '../.dev', changelogFileName), dedent(changelog))
+ fs.writeFileSync(path.join(__dirname, '../changelog-dist', changelogFileName), dedent(changelog))
handle(changelog)
})
.on('error', (error) => {
diff --git a/packages/pack/package.json b/packages/pack/package.json
index 313d7f0..abc74f4 100644
--- a/packages/pack/package.json
+++ b/packages/pack/package.json
@@ -41,6 +41,7 @@
"access": "public"
},
"dependencies": {
+ "techor": "",
"@techor/extend": "",
"@techor/fs": "",
"@techor/log": "",
@@ -62,4 +63,4 @@
"pkg-types": "^1.0.1",
"pretty-bytes": "^6.1.0"
}
-}
+}
\ No newline at end of file
diff --git a/packages/repo/package.json b/packages/repo/package.json
index 663c911..ade851b 100644
--- a/packages/repo/package.json
+++ b/packages/repo/package.json
@@ -28,6 +28,8 @@
"typescript": ""
},
"dependencies": {
+ "@techor/pack": "",
+ "@techor/version": "",
"@techor/jest": "",
"commitlint-config-techor": "",
"conventional-changelog-techor": "",
diff --git a/packages/techor/package.json b/packages/techor/package.json
index 02c9196..04dc9de 100644
--- a/packages/techor/package.json
+++ b/packages/techor/package.json
@@ -54,8 +54,6 @@
},
"dependencies": {
"@techor/fs": "",
- "@techor/pack": "",
- "@techor/version": "",
"commander": "^10.0.0"
}
}
\ No newline at end of file
diff --git a/packages/techor/src/bin/index.ts b/packages/techor/src/bin/index.ts
index b0960d5..313cbe3 100755
--- a/packages/techor/src/bin/index.ts
+++ b/packages/techor/src/bin/index.ts
@@ -2,10 +2,13 @@
import { program } from 'commander'
import { readFileAsJSON } from '@techor/fs'
+import { execSync } from 'child_process'
+
const { version, name, description } = readFileAsJSON('./package.json')
+const args = process.argv.slice(4)
-program.command('pack', 'Alias for techor-pack')
-program.command('version', 'Alias for techor-version')
+program.command('pack', 'Alias for techor-pack').action(() => { execSync('techor-pack ' + args.join(' '), { stdio: 'inherit' }) })
+program.command('version', 'Alias for techor-version').action(() => { execSync('techor-version ' + args.join(' '), { stdio: 'inherit' }) })
program.parse(process.argv)
program.name(name)
program.description(description)
diff --git a/packages/version/package.json b/packages/version/package.json
index f90b1ab..dbf7925 100644
--- a/packages/version/package.json
+++ b/packages/version/package.json
@@ -37,6 +37,7 @@
"access": "public"
},
"dependencies": {
+ "techor": "",
"@techor/extend": "",
"@techor/fs": "",
"@techor/log": "",