Skip to content

Commit 6a5265c

Browse files
committed
chore: wip
1 parent 7526fde commit 6a5265c

File tree

31 files changed

+58
-44
lines changed

31 files changed

+58
-44
lines changed

bun.lockb

0 Bytes
Binary file not shown.

storage/framework/core/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ node_modules/
1616
/playwright/.cache/
1717

1818
cdk.out
19+
*.tsbuildinfo

storage/framework/core/actions/build.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import dts from 'bun-plugin-dts-auto'
2-
import { path as p } from '@stacksjs/path'
32

43
await Bun.build({
4+
root: './src',
5+
56
entrypoints: [
67
'./src/index.ts',
78
'./src/build/component-libs.ts',
@@ -76,11 +77,8 @@ await Bun.build({
7677
plugins: [
7778
dts({
7879
cwd: import.meta.dir,
79-
outDir: p.actionsPath(`dist/types`),
8080
}),
8181
],
8282

8383
target: 'bun',
8484
})
85-
86-
// oddly, it stores in the ./dist/src folder, so we have to copy the contents one level down

storage/framework/core/actions/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@
2727
"exports": {
2828
".": {
2929
"bun": "./src/index.ts",
30+
"types": "./dist/index.d.ts",
3031
"import": "./dist/index.js"
3132
},
3233
"./*": {
3334
"bun": "./src/*",
35+
"types": "./dist/*.d.ts",
3436
"import": "./dist/*"
3537
}
3638
},
@@ -45,7 +47,7 @@
4547
"src"
4648
],
4749
"scripts": {
48-
"build": "bun --bun build.ts && cp -r ./dist/types/src/* ./dist/types && rm -rf ./dist/types/src && cp -r ./dist/src/* ./dist && rm -rf ./dist/src",
50+
"build": "bun --bun build.ts",
4951
"typecheck": "bun --bun tsc --noEmit",
5052
"prepublishOnly": "bun --bun run build"
5153
},

storage/framework/core/ai/build.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ import { log } from '@stacksjs/logging'
44
log.info(`Building @stacksjs/ai...`)
55

66
await Bun.build({
7+
root: './src',
8+
79
entrypoints: [
810
'./src/index.ts',
911
],
1012

1113
outdir: './dist',
12-
1314
format: 'esm',
1415

1516
plugins: [
1617
dts({
17-
withSourceMap: true, // optional
18+
cwd: import.meta.dir,
1819
}),
1920
],
2021
})

storage/framework/core/alias/build.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@ await Bun.build({
99
],
1010

1111
outdir: './dist',
12+
format: 'esm',
1213

1314
external: [
1415
'@stacksjs/path',
1516
],
1617

17-
format: 'esm',
18-
1918
plugins: [
2019
dts({
21-
withSourceMap: true, // optional
20+
cwd: import.meta.dir,
2221
}),
2322
],
2423
})

storage/framework/core/analytics/build.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ await Bun.build({
99
],
1010

1111
outdir: './dist',
12-
1312
format: 'esm',
1413

1514
plugins: [
1615
dts({
17-
withSourceMap: true, // optional
16+
cwd: import.meta.dir,
1817
}),
1918
],
2019
})

storage/framework/core/api/build.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ await Bun.build({
99
],
1010

1111
outdir: './dist',
12-
1312
format: 'esm',
1413
target: 'bun',
1514

1615
plugins: [
1716
dts({
18-
withSourceMap: true, // optional
17+
cwd: import.meta.dir,
1918
}),
2019
],
2120
})

storage/framework/core/arrays/build.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ await Bun.build({
99
],
1010

1111
outdir: './dist',
12-
1312
format: 'esm',
1413
target: 'bun',
1514

@@ -19,7 +18,7 @@ await Bun.build({
1918

2019
plugins: [
2120
dts({
22-
withSourceMap: true, // optional
21+
cwd: import.meta.dir,
2322
}),
2423
],
2524
})

storage/framework/core/auth/build.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ await Bun.build({
99
],
1010

1111
outdir: './dist',
12-
1312
format: 'esm',
1413

1514
plugins: [
1615
dts({
17-
withSourceMap: true, // optional
16+
cwd: import.meta.dir,
1817
}),
1918
],
2019
})

0 commit comments

Comments
 (0)