Skip to content

Commit 87416c7

Browse files
committed
chore: wip
1 parent 89c0644 commit 87416c7

File tree

5 files changed

+99
-52
lines changed

5 files changed

+99
-52
lines changed

database/food.sqlite

-140 KB
Binary file not shown.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const changelogCommand = options?.dryRun
77
: 'buddy changelog --quiet'
88

99
const bumpCommand = options?.dryRun
10-
? `bunx --bun bumpp ./package.json ./**/package.json ../package.json ../defaults/ide/vscode/package.json ../views/** ../cloud/package.json ../server/package.json ../orm/package.json ../docs/package.json ../api/package.json ../email/package.json ../libs/**/package.json ../system-tray/package.json --no-push --execute "../scripts/install"`
11-
: `bunx --bun bumpp ./package.json ./**/package.json ../package.json ../defaults/ide/vscode/package.json ../views/** ../cloud/package.json ../server/package.json ../orm/package.json ../docs/package.json ../api/package.json ../email/package.json ../libs/**/package.json ../system-tray/package.json --all --execute "../scripts/install"`
10+
? `bunx --bun bumpp ./package.json ./**/package.json ../package.json ../defaults/ide/vscode/package.json ../views/** ../cloud/package.json ../server/package.json ../orm/package.json ../docs/package.json ../api/package.json ../email/package.json ../libs/**/package.json ../system-tray/package.json --no-push`
11+
: `bunx --bun bumpp ./package.json ./**/package.json ../package.json ../defaults/ide/vscode/package.json ../views/** ../cloud/package.json ../server/package.json ../orm/package.json ../docs/package.json ../api/package.json ../email/package.json ../libs/**/package.json ../system-tray/package.json --all`
1212

1313
log.debug(`Running: ${bumpCommand}`)
1414
log.debug(`In frameworkPath: ${p.frameworkPath()}`)

storage/framework/core/buddy/build.ts

+21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { dts } from 'bun-plugin-dtsx'
22
import { intro, outro } from '../build/src'
3+
import { version } from '../package.json'
34

45
const { startTime } = await intro({
56
dir: import.meta.dir,
@@ -39,6 +40,26 @@ const result = await Bun.build({
3940
plugins: [dts({ root: './src', outdir: './dist' })],
4041
})
4142

43+
// Update the package.json workspace:* references to the specific version
44+
const packageJsonPath = '../package.json'
45+
const packageJson = await Bun.file(packageJsonPath).json()
46+
47+
// Find all workspace:* dependencies in the main package.json and update them to use the current version
48+
for (const section of ['dependencies', 'devDependencies', 'peerDependencies']) {
49+
if (!packageJson[section]) continue
50+
51+
for (const [dep, depVersion] of Object.entries(packageJson[section])) {
52+
// Update all workspace:* references to use the current version
53+
if (depVersion === 'workspace:*') {
54+
packageJson[section][dep] = `^${version}`
55+
console.log(`Updated ${dep} from 'workspace:*' to '^${version}'`)
56+
}
57+
}
58+
}
59+
60+
// Write the updated package.json back to the file
61+
await Bun.write(packageJsonPath, JSON.stringify(packageJson, null, 2))
62+
4263
await outro({
4364
dir: import.meta.dir,
4465
startTime,

storage/framework/core/development/build.ts

+21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { intro, outro } from '../build/src'
2+
import { version } from '../package.json'
23

34
const { startTime } = await intro({
45
dir: import.meta.dir,
@@ -13,6 +14,26 @@ const result = await Bun.build({
1314
minify: true,
1415
})
1516

17+
// Update the package.json workspace:* references to the specific version
18+
const packageJsonPath = '../package.json'
19+
const packageJson = await Bun.file(packageJsonPath).json()
20+
21+
// Find all workspace:* dependencies in the main package.json and update them to use the current version
22+
for (const section of ['dependencies', 'devDependencies', 'peerDependencies']) {
23+
if (!packageJson[section]) continue
24+
25+
for (const [dep, depVersion] of Object.entries(packageJson[section])) {
26+
// Update all workspace:* references to use the current version
27+
if (depVersion === 'workspace:*') {
28+
packageJson[section][dep] = `^${version}`
29+
console.log(`Updated ${dep} from 'workspace:*' to '^${version}'`)
30+
}
31+
}
32+
}
33+
34+
// Write the updated package.json back to the file
35+
await Bun.write(packageJsonPath, JSON.stringify(packageJson, null, 2))
36+
1637
await outro({
1738
dir: import.meta.dir,
1839
startTime,

storage/framework/core/package.json

+55-50
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"version": "0.70.5",
55
"description": "The Stacks framework.",
66
"author": "Chris Breuer",
7-
"contributors": ["Chris Breuer <[email protected]>"],
7+
"contributors": [
8+
"Chris Breuer <[email protected]>"
9+
],
810
"license": "MIT",
911
"funding": "https://github.com/sponsors/chrisbbreuer",
1012
"homepage": "https://github.com/stacksjs/stacks/tree/main/stacks#readme",
@@ -340,7 +342,10 @@
340342
}
341343
},
342344
"types": "./types/dist/index.d.ts",
343-
"files": ["README.md", "dist"],
345+
"files": [
346+
"README.md",
347+
"dist"
348+
],
344349
"scripts": {
345350
"buddy": "bun run ./buddy/src/cli.ts",
346351
"build": "cd path && bun run build && cd .. && bun ./build.ts",
@@ -349,54 +354,54 @@
349354
},
350355
"web-types": "./web-types.json",
351356
"dependencies": {
352-
"@stacksjs/actions": "workspace:*",
353-
"@stacksjs/ai": "workspace:*",
354-
"@stacksjs/alias": "workspace:*",
355-
"@stacksjs/arrays": "workspace:*",
356-
"@stacksjs/auth": "workspace:*",
357-
"@stacksjs/buddy": "workspace:*",
358-
"@stacksjs/build": "workspace:*",
359-
"@stacksjs/cache": "workspace:*",
360-
"@stacksjs/cli": "workspace:*",
361-
"@stacksjs/cloud": "workspace:*",
362-
"@stacksjs/collections": "workspace:*",
363-
"@stacksjs/config": "workspace:*",
364-
"@stacksjs/database": "workspace:*",
365-
"@stacksjs/desktop": "workspace:*",
366-
"@stacksjs/development": "workspace:*",
367-
"@stacksjs/dns": "workspace:*",
368-
"@stacksjs/docs": "workspace:*",
369-
"@stacksjs/email": "workspace:*",
370-
"@stacksjs/enums": "workspace:*",
371-
"@stacksjs/env": "workspace:*",
372-
"@stacksjs/error-handling": "workspace:*",
357+
"@stacksjs/actions": "^0.70.5",
358+
"@stacksjs/ai": "^0.70.5",
359+
"@stacksjs/alias": "^0.70.5",
360+
"@stacksjs/arrays": "^0.70.5",
361+
"@stacksjs/auth": "^0.70.5",
362+
"@stacksjs/buddy": "^0.70.5",
363+
"@stacksjs/build": "^0.70.5",
364+
"@stacksjs/cache": "^0.70.5",
365+
"@stacksjs/cli": "^0.70.5",
366+
"@stacksjs/cloud": "^0.70.5",
367+
"@stacksjs/collections": "^0.70.5",
368+
"@stacksjs/config": "^0.70.5",
369+
"@stacksjs/database": "^0.70.5",
370+
"@stacksjs/desktop": "^0.70.5",
371+
"@stacksjs/development": "^0.70.5",
372+
"@stacksjs/dns": "^0.70.5",
373+
"@stacksjs/docs": "^0.70.5",
374+
"@stacksjs/email": "^0.70.5",
375+
"@stacksjs/enums": "^0.70.5",
376+
"@stacksjs/env": "^0.70.5",
377+
"@stacksjs/error-handling": "^0.70.5",
373378
"@stacksjs/eslint-config": "^4.10.2-beta.2",
374-
"@stacksjs/events": "workspace:*",
375-
"@stacksjs/faker": "workspace:*",
376-
"@stacksjs/git": "workspace:*",
377-
"@stacksjs/health": "workspace:*",
378-
"@stacksjs/lint": "workspace:*",
379-
"@stacksjs/logging": "workspace:*",
380-
"@stacksjs/notifications": "workspace:*",
381-
"@stacksjs/objects": "workspace:*",
382-
"@stacksjs/orm": "workspace:*",
383-
"@stacksjs/path": "workspace:*",
384-
"@stacksjs/payments": "workspace:*",
385-
"@stacksjs/realtime": "workspace:*",
386-
"@stacksjs/router": "workspace:*",
387-
"@stacksjs/search-engine": "workspace:*",
388-
"@stacksjs/security": "workspace:*",
389-
"@stacksjs/server": "workspace:*",
390-
"@stacksjs/storage": "workspace:*",
391-
"@stacksjs/strings": "workspace:*",
392-
"@stacksjs/testing": "workspace:*",
379+
"@stacksjs/events": "^0.70.5",
380+
"@stacksjs/faker": "^0.70.5",
381+
"@stacksjs/git": "^0.70.5",
382+
"@stacksjs/health": "^0.70.5",
383+
"@stacksjs/lint": "^0.70.5",
384+
"@stacksjs/logging": "^0.70.5",
385+
"@stacksjs/notifications": "^0.70.5",
386+
"@stacksjs/objects": "^0.70.5",
387+
"@stacksjs/orm": "^0.70.5",
388+
"@stacksjs/path": "^0.70.5",
389+
"@stacksjs/payments": "^0.70.5",
390+
"@stacksjs/realtime": "^0.70.5",
391+
"@stacksjs/router": "^0.70.5",
392+
"@stacksjs/search-engine": "^0.70.5",
393+
"@stacksjs/security": "^0.70.5",
394+
"@stacksjs/server": "^0.70.5",
395+
"@stacksjs/storage": "^0.70.5",
396+
"@stacksjs/strings": "^0.70.5",
397+
"@stacksjs/testing": "^0.70.5",
393398
"@stacksjs/tlsx": "^0.10.0",
394-
"@stacksjs/tunnel": "workspace:*",
395-
"@stacksjs/types": "workspace:*",
396-
"@stacksjs/ui": "workspace:*",
397-
"@stacksjs/utils": "workspace:*",
398-
"@stacksjs/validation": "workspace:*",
399-
"@stacksjs/vite-config": "workspace:*",
400-
"@stacksjs/vite-plugin": "workspace:*"
399+
"@stacksjs/tunnel": "^0.70.5",
400+
"@stacksjs/types": "^0.70.5",
401+
"@stacksjs/ui": "^0.70.5",
402+
"@stacksjs/utils": "^0.70.5",
403+
"@stacksjs/validation": "^0.70.5",
404+
"@stacksjs/vite-config": "^0.70.5",
405+
"@stacksjs/vite-plugin": "^0.70.5"
401406
}
402-
}
407+
}

0 commit comments

Comments
 (0)