Skip to content

Commit 03f9b32

Browse files
committed
chore: wip
1 parent dd930cb commit 03f9b32

File tree

22 files changed

+178
-222
lines changed

22 files changed

+178
-222
lines changed

bun.lockb

8.58 KB
Binary file not shown.

storage/framework/core/actions/src/bump.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ await runCommand(changelogCommand, {
99
})
1010

1111
const bumpCommand = options?.dryRun
12-
? 'bunx bumpp ./package.json ./core/**/package.json ./ide/vscode/package.json --no-push'
13-
: 'bunx bumpp ./package.json ./core/**/package.json ./ide/vscode/package.json --all'
12+
? 'bunx bumpp ./core/package.json ./core/**/package.json ./ide/vscode/package.json --no-push'
13+
: 'bunx bumpp ./core/package.json ./core/**/package.json ./ide/vscode/package.json --all'
1414

1515
await runCommand(bumpCommand, {
16-
cwd: p.frameworkPath(),
16+
cwd: p.frameworkPath('core'),
1717
stdin: 'inherit',
1818
})

storage/framework/core/actions/src/helpers/utils.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { buddyOptions, runCommand, runCommands } from '@stacksjs/cli'
22
import { storage } from '@stacksjs/storage'
33
import { log } from '@stacksjs/logging'
4+
import { err } from '@stacksjs/error-handling'
45
import * as p from '@stacksjs/path'
56
import type { ActionOptions } from '@stacksjs/types'
67

@@ -41,6 +42,7 @@ export async function runActions(actions: string[], options?: ActionOptions) {
4142
return err('No actions were specified')
4243

4344
for (const action of actions) {
45+
log.debug(`running action "${action}"`)
4446
if (!hasAction(action))
4547
return err(`The specified action "${action}" does not exist`)
4648
}
@@ -52,11 +54,13 @@ export async function runActions(actions: string[], options?: ActionOptions) {
5254
...options,
5355
}
5456

55-
const commands = actions.map(action => `bun --bun ${p.relativeActionsPath(`${action}.ts`)} ${opts}`)
57+
const commands = actions.map(action => `bun --bun ${p.relativeActionsPath(`src/${action}.ts`)} ${opts}`)
58+
59+
log.debug('commands:', commands)
5660

5761
return await runCommands(commands, o)
5862
}
5963

6064
export function hasAction(action: string) {
61-
return storage.isFile(p.actionsPath(`${action}.ts`))
65+
return storage.isFile(p.actionsPath(`src/${action}.ts`))
6266
}

storage/framework/core/alias/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ export const alias: Record<string, string> = {
9090
'@stacksjs/sms/*': p.smsPath('src/*'),
9191
'@stacksjs/scheduler': p.schedulerPath('src/index.ts'),
9292
'@stacksjs/scheduler/*': p.schedulerPath('src/*'),
93-
'@stacksjs/signals': p.signalsPath('src/index.ts'),
94-
'@stacksjs/signals/*': p.signalsPath('src/*'),
9593
'@stacksjs/storage': p.storagePath('src/index.ts'),
9694
'@stacksjs/storage/*': p.storagePath('src/*'),
9795
'@stacksjs/strings': p.stringsPath('src/index.ts'),
@@ -187,8 +185,6 @@ export const alias: Record<string, string> = {
187185
'stacks/sms/*': p.smsPath('src/*'),
188186
'stacks/scheduler': p.schedulerPath('src/index.ts'),
189187
'stacks/scheduler/*': p.schedulerPath('src/*'),
190-
'stacks/signals': p.signalsPath('src/index.ts'),
191-
'stacks/signals/*': p.signalsPath('src/*'),
192188
'stacks/storage': p.storagePath('src/index.ts'),
193189
'stacks/storage/*': p.storagePath('src/*'),
194190
'stacks/strings': p.stringsPath('src/index.ts'),

storage/framework/core/buddy/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
"@stacksjs/search-engine": "workspace:*",
108108
"@stacksjs/security": "workspace:*",
109109
"@stacksjs/server": "workspace:*",
110-
"@stacksjs/signals": "workspace:*",
111110
"@stacksjs/storage": "workspace:*",
112111
"@stacksjs/strings": "workspace:*",
113112
"@stacksjs/testing": "workspace:*",
@@ -153,7 +152,6 @@
153152
"@stacksjs/search-engine": "workspace:*",
154153
"@stacksjs/security": "workspace:*",
155154
"@stacksjs/server": "workspace:*",
156-
"@stacksjs/signals": "workspace:*",
157155
"@stacksjs/storage": "workspace:*",
158156
"@stacksjs/strings": "workspace:*",
159157
"@stacksjs/testing": "workspace:*",

storage/framework/core/development/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"@stacksjs/tinker": "workspace:*",
5656
"@stacksjs/tunnel": "workspace:*",
5757
"@stacksjs/types": "workspace:*",
58+
"bun-plugin-dts-auto": "^0.10.0",
5859
"eslint": "^8.57.0",
5960
"typescript": "^5.3.3"
6061
},
@@ -72,6 +73,7 @@
7273
"devDependencies": {
7374
"@stacksjs/build": "workspace:*",
7475
"@total-typescript/ts-reset": "^0.5.1",
76+
"bun-plugin-dts-auto": "^0.10.0",
7577
"eslint": "^8.57.0"
7678
}
7779
}

storage/framework/core/lint/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,15 @@
4949
"prepublishOnly": "bun --bun run build"
5050
},
5151
"peerDependencies": {
52+
"@commitlint/cli": "^19.0.3",
5253
"@stacksjs/eslint-config": "workspace:*",
5354
"@types/eslint": "^8.56.5",
5455
"eslint": "^8.57.0",
5556
"lint-staged": "^15.2.2",
5657
"publint": "^0.2.7"
5758
},
5859
"dependencies": {
60+
"@commitlint/cli": "^19.0.3",
5961
"@stacksjs/eslint-config": "workspace:*",
6062
"@types/eslint": "^8.56.5",
6163
"eslint": "^8.57.0",

storage/framework/core/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,6 @@
469469
"@stacksjs/search-engine": "workspace:*",
470470
"@stacksjs/security": "workspace:*",
471471
"@stacksjs/server": "workspace:*",
472-
"@stacksjs/signals": "workspace:*",
473472
"@stacksjs/storage": "workspace:*",
474473
"@stacksjs/strings": "workspace:*",
475474
"@stacksjs/testing": "workspace:*",
@@ -518,7 +517,6 @@
518517
"@stacksjs/search-engine": "workspace:*",
519518
"@stacksjs/security": "workspace:*",
520519
"@stacksjs/server": "workspace:*",
521-
"@stacksjs/signals": "workspace:*",
522520
"@stacksjs/storage": "workspace:*",
523521
"@stacksjs/strings": "workspace:*",
524522
"@stacksjs/testing": "workspace:*",

storage/framework/core/path/src/paths.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,16 +1049,6 @@ export function schedulerPath(path?: string) {
10491049
return corePath(`scheduler/${path || ''}`)
10501050
}
10511051

1052-
/**
1053-
* Returns the path to the `signals` directory within the core directory.
1054-
*
1055-
* @param path - The relative path to the file or directory within the `signals` directory.
1056-
* @returns The absolute path to the specified file or directory within the `signals` directory.
1057-
*/
1058-
export function signalsPath(path?: string) {
1059-
return corePath(`signals/${path || ''}`)
1060-
}
1061-
10621052
/**
10631053
* Returns the path to the `slug` directory within the core directory.
10641054
*
@@ -1338,7 +1328,6 @@ export const path = {
13381328
schedulerPath,
13391329
settingsPath,
13401330
smsPath,
1341-
signalsPath,
13421331
slugPath,
13431332
scriptsPath,
13441333
securityPath,

storage/framework/core/signals/README.md

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)