Skip to content

Commit 2ea0db2

Browse files
committed
chore: wip
1 parent 5698c92 commit 2ea0db2

File tree

9 files changed

+43
-22
lines changed

9 files changed

+43
-22
lines changed

.stacks/core/build/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747
},
4848
"peerDependencies": {
4949
"@stacksjs/vite": "link:@stacksjs/vite",
50-
"bun": "^0.6.14",
50+
"bun": "^0.7.0",
5151
"vue-docgen-web-types": "^0.1.8"
5252
},
5353
"dependencies": {
5454
"@stacksjs/vite": "link:@stacksjs/vite",
55-
"bun": "^0.6.14",
55+
"bun": "^0.7.0",
5656
"vue-docgen-web-types": "^0.1.8"
5757
},
5858
"devDependencies": {

.stacks/core/cli/build.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { log, runCommand } from '@stacksjs/cli'
1+
import { runCommand } from '@stacksjs/cli'
22

3-
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external @stacksjs/config --external @stacksjs/error-handling --external @stacksjs/logging --external @stacksjs/path --external @stacksjs/types --external @stacksjs/utils --external bun --external vite --target bun', {
3+
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external @stacksjs/error-handling --external @stacksjs/logging --external @stacksjs/path --external @stacksjs/types --external @stacksjs/utils --external @antfu/install-pkg --external bun --external vite --target bun', {
44
cwd: import.meta.dir,
55
})
66

7-
if (result.isErr())
8-
log.error(result.error)
7+
// if (result.isErr())
8+
// log.error(result.error)
99

10-
else
11-
log.success('Build complete')
10+
// else
11+
// log.success('Build complete')

.stacks/core/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@stacksjs/types": "link:@stacksjs/types",
6161
"@stacksjs/utils": "link:@stacksjs/utils",
6262
"@types/prompts": "^2.4.4",
63-
"bun": "^0.6.14",
63+
"bun": "^0.7.0",
6464
"cac": "^6.7.14",
6565
"ora": "^6.3.1",
6666
"prompts": "^2.4.2"
@@ -74,7 +74,7 @@
7474
"@stacksjs/types": "link:@stacksjs/types",
7575
"@stacksjs/utils": "link:@stacksjs/utils",
7676
"@types/prompts": "^2.4.4",
77-
"bun": "^0.6.14",
77+
"bun": "^0.7.0",
7878
"cac": "^6.7.14",
7979
"kolorist": "1.8.0",
8080
"ora": "^6.3.1",

.stacks/core/cli/src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { ExitCode } from '@stacksjs/types'
22
import type { CliOptions, StacksError, Subprocess, SyncSubprocess } from '@stacksjs/types'
33
import type { Result, ResultAsync } from '@stacksjs/error-handling'
44
import { errAsync, handleError, okAsync } from '@stacksjs/error-handling'
5-
import { log } from '@stacksjs/cli'
65
import { spawn, spawnSync } from './command'
6+
import { log } from './log'
77

88
/**
99
* Execute a command.

.stacks/core/orm/build.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { log, runCommand } from '@stacksjs/cli'
2+
3+
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --target bun', {
4+
cwd: import.meta.dir,
5+
})
6+
7+
if (result.isErr())
8+
log.error(result.error)
9+
10+
else
11+
log.success('Build complete')

.stacks/core/testing/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
},
4949
"peerDependencies": {
5050
"@playwright/test": "^1.36.0",
51-
"bun": "^0.6.14"
51+
"bun": "^0.7.0"
5252
},
5353
"dependencies": {
5454
"@playwright/test": "^1.36.0",
55-
"bun": "^0.6.14"
55+
"bun": "^0.7.0"
5656
},
5757
"devDependencies": {
5858
"@stacksjs/development": "link:@stacksjs/development"

.stacks/core/types/build.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { log, runCommand } from '@stacksjs/cli'
2+
3+
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --target bun', {
4+
cwd: import.meta.dir,
5+
})
6+
7+
if (result.isErr())
8+
log.error(result.error)
9+
10+
else
11+
log.success('Build complete')

.stacks/core/utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@stacksjs/strings": "link:@stacksjs/strings",
6060
"@stacksjs/types": "link:@stacksjs/types",
6161
"@types/js-yaml": "^4.0.5",
62-
"bun": "^0.6.14",
62+
"bun": "^0.7.0",
6363
"export-size": "^0.5.2",
6464
"js-yaml": "^4.1.0",
6565
"rimraf": "^5.0.1",
@@ -80,7 +80,7 @@
8080
"@vueuse/head": "^1.1.26",
8181
"@vueuse/math": "^10.2.1",
8282
"@vueuse/shared": "^10.2.1",
83-
"bun": "^0.6.14",
83+
"bun": "^0.7.0",
8484
"defu": "^6.1.2",
8585
"detect-indent": "^7.0.1",
8686
"detect-newline": "^4.0.0",

.stacks/core/vite/src/web-components.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { ViteConfig } from '@stacksjs/types'
2-
import { frameworkPath, libraryEntryPath, projectPath } from '@stacksjs/path'
3-
import { library } from '@stacksjs/config'
2+
import { path as p } from '@stacksjs/path'
43
import { server } from '@stacksjs/server'
54
import { alias } from '@stacksjs/alias'
65
import type { ViteBuildOptions } from './'
@@ -11,8 +10,8 @@ import { defineConfig } from './'
1110
// const isWebComponent = true
1211

1312
export const webComponentsConfig: ViteConfig = {
14-
root: frameworkPath('libs/components/web'),
15-
envDir: projectPath(),
13+
root: p.frameworkPath('libs/components/web'),
14+
envDir: p.projectPath(),
1615
envPrefix: 'FRONTEND_',
1716

1817
server,
@@ -38,11 +37,11 @@ export const webComponentsConfig: ViteConfig = {
3837

3938
export function webComponentsBuildOptions(): ViteBuildOptions {
4039
return {
41-
outDir: frameworkPath('components/web/dist'),
40+
outDir: p.frameworkPath('components/web/dist'),
4241
emptyOutDir: true,
4342
lib: {
44-
entry: libraryEntryPath('web-components'),
45-
name: library.webComponents?.name,
43+
entry: p.libraryEntryPath('web-components'),
44+
name: 'web-components',
4645
formats: ['cjs', 'es'],
4746
fileName: (format: string) => {
4847
if (format === 'es')

0 commit comments

Comments
 (0)