stacks 0.45.2 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/buddy/package.json +2 -2
- package/buddy/src/cli.ts +2 -1
- package/buddy/src/commands/changelog.ts +29 -0
- package/buddy/src/commands/index.ts +1 -0
- package/core/actions/package.json +1 -1
- package/core/actions/src/bump.ts +1 -1
- package/core/actions/src/changelog.ts +7 -0
- package/core/ai/package.json +1 -1
- package/core/alias/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/build/package.json +1 -1
- package/core/cache/package.json +1 -1
- package/core/cli/package.json +1 -1
- package/core/cloud/package.json +1 -1
- package/core/collections/package.json +1 -1
- package/core/config/package.json +1 -1
- package/core/dashboard/package.json +1 -1
- package/core/database/package.json +1 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +1 -1
- package/core/docs/package.json +1 -1
- package/core/domains/package.json +1 -1
- package/core/drivers/package.json +1 -1
- package/core/email/package.json +1 -1
- package/core/error-handling/package.json +1 -1
- package/core/git/node_modules/.bin/{conventional-changelog → changelogen} +2 -2
- package/core/git/package.json +2 -2
- package/core/git/src/index.ts +1 -1
- package/core/health/package.json +1 -1
- package/core/lint/package.json +1 -1
- package/core/logging/package.json +1 -1
- package/core/modules/package.json +1 -1
- package/core/notifications/package.json +1 -1
- package/core/objects/package.json +1 -1
- package/core/path/package.json +1 -1
- package/core/payments/package.json +1 -1
- package/core/realtime/package.json +1 -1
- package/core/router/package.json +1 -1
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +1 -1
- package/core/storage/package.json +1 -1
- package/core/strings/package.json +1 -1
- package/core/testing/package.json +1 -1
- package/core/types/package.json +1 -1
- package/core/types/src/cli.ts +3 -2
- package/core/ui/package.json +1 -1
- package/core/utils/package.json +1 -1
- package/core/x-ray/package.json +1 -1
- package/package.json +3 -3
package/buddy/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/buddy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.46.1",
|
|
5
5
|
"packageManager": "pnpm@7.19.0",
|
|
6
6
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"key:generate": "pnpm buddy key:generate",
|
|
126
126
|
"commit": "git cz",
|
|
127
127
|
"release": "pnpm buddy release",
|
|
128
|
-
"changelog": "
|
|
128
|
+
"changelog": "pnpm buddy changelog",
|
|
129
129
|
"generate": "pnpm buddy generate",
|
|
130
130
|
"generate:entries": "pnpm buddy generate:entries",
|
|
131
131
|
"generate:vue-compat": "esno ./core/actions/src/generate-vue-compat.ts",
|
package/buddy/src/cli.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { command, log } from '@stacksjs/cli'
|
|
3
3
|
import { isProjectCreated } from '@stacksjs/utils'
|
|
4
4
|
import { version } from '../package.json' assert { type: 'json' }
|
|
5
|
-
import { build, clean, commit, create, dev, example, fresh, generate, key, lint, make, preinstall, prepublish, release, setup, test, update } from './commands'
|
|
5
|
+
import { build, changelog, clean, commit, create, dev, example, fresh, generate, key, lint, make, preinstall, prepublish, release, setup, test, update } from './commands'
|
|
6
6
|
|
|
7
7
|
const cli = command('stacks')
|
|
8
8
|
|
|
@@ -25,6 +25,7 @@ async function main() {
|
|
|
25
25
|
await generate(cli)
|
|
26
26
|
await dev(cli)
|
|
27
27
|
await build(cli)
|
|
28
|
+
await changelog(cli)
|
|
28
29
|
await clean(cli)
|
|
29
30
|
await commit(cli)
|
|
30
31
|
await fresh(cli)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { CLI, FreshOptions } from '@stacksjs/types'
|
|
2
|
+
import { runAction } from '@stacksjs/actions'
|
|
3
|
+
import { intro, outro } from '@stacksjs/cli'
|
|
4
|
+
import { Action, ExitCode } from '@stacksjs/types'
|
|
5
|
+
|
|
6
|
+
async function changelog(buddy: CLI) {
|
|
7
|
+
const descriptions = {
|
|
8
|
+
changelog: 'Create a CHANGELOG.md file',
|
|
9
|
+
debug: 'Enable debug mode',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
buddy
|
|
13
|
+
.command('changelog', descriptions.changelog)
|
|
14
|
+
.option('--debug', descriptions.debug, { default: false })
|
|
15
|
+
.action(async (options: FreshOptions) => {
|
|
16
|
+
const perf = intro('buddy changelog')
|
|
17
|
+
const result = await runAction(Action.Changelog, options)
|
|
18
|
+
|
|
19
|
+
if (result.isErr()) {
|
|
20
|
+
outro('While running the changelog command, there was an issue', { startTime: perf, useSeconds: true, isError: true }, result.error)
|
|
21
|
+
process.exit()
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
outro('Generated the CHANGELOG.md file.', { startTime: perf, useSeconds: true })
|
|
25
|
+
process.exit(ExitCode.Success)
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { changelog }
|
package/core/actions/src/bump.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { runCommand } from '@stacksjs/cli'
|
|
|
2
2
|
import { frameworkPath } from '@stacksjs/path'
|
|
3
3
|
|
|
4
4
|
await runCommand(
|
|
5
|
-
'npx bumpp ./package.json ./buddy/package.json ./core/**/package.json ./vscode/package.json --execute \'pnpm
|
|
5
|
+
'npx bumpp ./package.json ./buddy/package.json ./core/**/package.json ./vscode/package.json --execute \'pnpm buddy changelog\' --all',
|
|
6
6
|
{ debug: true, cwd: frameworkPath(), shell: true },
|
|
7
7
|
)
|
package/core/ai/package.json
CHANGED
package/core/alias/package.json
CHANGED
package/core/arrays/package.json
CHANGED
package/core/auth/package.json
CHANGED
package/core/build/package.json
CHANGED
package/core/cache/package.json
CHANGED
package/core/cli/package.json
CHANGED
package/core/cloud/package.json
CHANGED
package/core/config/package.json
CHANGED
package/core/docs/package.json
CHANGED
package/core/email/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/email",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.46.1",
|
|
5
5
|
"packageManager": "pnpm@7.19.0",
|
|
6
6
|
"description": "The Stacks Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/home/runner/work/stacks/stacks/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/changelogen@0.4.0/node_modules/changelogen/dist/cli.mjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/changelogen@0.4.0/node_modules/changelogen/dist/cli.mjs" "$@"
|
|
17
17
|
fi
|
package/core/git/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/git",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.46.1",
|
|
5
5
|
"packageManager": "pnpm@7.19.0",
|
|
6
6
|
"description": "The Stacks git utilities & conventions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"bumpp": "^8.2.1",
|
|
48
|
+
"changelogen": "^0.4.0",
|
|
48
49
|
"commitizen": "^4.2.6",
|
|
49
|
-
"conventional-changelog-cli": "^2.2.2",
|
|
50
50
|
"cz-git": "^1.4.1",
|
|
51
51
|
"giget": "^1.0.0",
|
|
52
52
|
"simple-git-hooks": "^2.8.1"
|
package/core/git/src/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from 'changelogen'
|
package/core/health/package.json
CHANGED
package/core/lint/package.json
CHANGED
package/core/path/package.json
CHANGED
package/core/router/package.json
CHANGED
package/core/server/package.json
CHANGED
package/core/types/package.json
CHANGED
package/core/types/src/cli.ts
CHANGED
|
@@ -215,7 +215,7 @@ export const enum NpmScript {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
export const enum Action {
|
|
218
|
-
Bump = 'bump',
|
|
218
|
+
Bump = 'bump', // wip - changelog action
|
|
219
219
|
Release = 'release',
|
|
220
220
|
Prepublish = 'prepublish',
|
|
221
221
|
BuildStacks = 'build-stacks',
|
|
@@ -226,8 +226,9 @@ export const enum Action {
|
|
|
226
226
|
BuildCore = 'build-core', // ✅
|
|
227
227
|
BuildDocs = 'build-docs',
|
|
228
228
|
BuildFunctionLib = 'build-function-lib',
|
|
229
|
+
Changelog = 'changelog', // wip
|
|
229
230
|
Fresh = 'fresh', // ✅
|
|
230
|
-
GeneratePackageJsons = 'generate-package-jsons', //
|
|
231
|
+
GeneratePackageJsons = 'generate-package-jsons', // ✅
|
|
231
232
|
Lint = 'lint', // ✅
|
|
232
233
|
LintFix = 'lint-fix', // ✅
|
|
233
234
|
FixLintIssues = 'fix-lint-issues',
|
package/core/ui/package.json
CHANGED
package/core/utils/package.json
CHANGED
package/core/x-ray/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stacks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.46.1",
|
|
5
5
|
"packageManager": "pnpm@7.19.0",
|
|
6
6
|
"description": "The Stacks framework.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"web-types": "./web-types.json",
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@stacksjs/buddy": "0.
|
|
68
|
+
"@stacksjs/buddy": "0.46.1"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"buddy": "esno ./buddy/src/cli.ts",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"key:generate": "pnpm buddy key:generate",
|
|
135
135
|
"commit": "git cz",
|
|
136
136
|
"release": "pnpm buddy release",
|
|
137
|
-
"changelog": "
|
|
137
|
+
"changelog": "pnpm buddy changelog",
|
|
138
138
|
"generate": "pnpm buddy generate",
|
|
139
139
|
"generate:entries": "pnpm buddy generate:entries",
|
|
140
140
|
"generate:vue-compat": "esno ./core/actions/src/generate-vue-compat.ts",
|