Skip to content

Commit c8dc681

Browse files
committed
chore: wip
1 parent 6a5265c commit c8dc681

File tree

15 files changed

+125
-37
lines changed

15 files changed

+125
-37
lines changed

storage/framework/core/collections/build.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ await Bun.build({
77
entrypoints: ['./src/index.ts'],
88
outdir: './dist',
99
format: 'esm',
10-
external: ['collect.js'],
10+
11+
external: [
12+
'collect.js',
13+
],
14+
1115
plugins: [
1216
dts({
1317
cwd: import.meta.dir,

storage/framework/core/config/build.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ await Bun.build({
88
outdir: './dist',
99
format: 'esm',
1010
target: 'bun',
11+
1112
external: [
1213
'@stacksjs/types',
1314
'@stacksjs/tunnel',
@@ -22,6 +23,7 @@ await Bun.build({
2223
'validator',
2324
'@vinejs/vine',
2425
],
26+
2527
plugins: [
2628
dts({
2729
cwd: import.meta.dir,

storage/framework/core/development/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ await Bun.build({
88
outdir: './dist',
99
format: 'esm',
1010
target: 'bun',
11+
1112
plugins: [
1213
dts({
1314
cwd: import.meta.dir,

storage/framework/core/dns/build.ts

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,37 @@
1-
import { log, runCommand } from '@stacksjs/cli'
1+
import dts from 'bun-plugin-dts-auto'
2+
import { log } from '@stacksjs/logging'
23

3-
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external aws-cdk-lib --external @stacksjs/enums --external @aws-sdk/client-route-53 --external constructs --external @stacksjs/config --external @stacksjs/storage --external @stacksjs/error-handling --external @stacksjs/actions --external @stacksjs/strings --external @stacksjs/logging --external @stacksjs/path --external @stacksjs/error-handling --external @stacksjs/whois --external @aws-sdk/client-route-53-domains --external @stacksjs/types --target bun', {
4-
cwd: import.meta.dir,
4+
log.info(`Building @stacksjs/dns...`)
5+
6+
await Bun.build({
7+
entrypoints: ['./src/index.ts'],
8+
outdir: './dist',
9+
format: 'esm',
10+
target: 'bun',
11+
12+
external: [
13+
'aws-cdk-lib',
14+
'@stacksjs/enums',
15+
'@aws-sdk/client-route-53',
16+
'constructs',
17+
'@stacksjs/config',
18+
'@stacksjs/storage',
19+
'@stacksjs/error-handling',
20+
'@stacksjs/actions',
21+
'@stacksjs/strings',
22+
'@stacksjs/logging',
23+
'@stacksjs/path',
24+
'@stacksjs/error-handling',
25+
'@stacksjs/whois',
26+
'@aws-sdk/client-route-53-domains',
27+
'@stacksjs/types',
28+
],
29+
30+
plugins: [
31+
dts({
32+
cwd: import.meta.dir,
33+
}),
34+
],
535
})
636

7-
if (result.isErr())
8-
log.error(result.error)
37+
log.success(`Built @stacksjs/dns`)

storage/framework/core/docs/build.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ await Bun.build({
88
outdir: './dist',
99
format: 'esm',
1010
target: 'node',
11+
1112
external: [
1213
'vitepress',
1314
'@stacksjs/config',
@@ -20,6 +21,7 @@ await Bun.build({
2021
'@vite-pwa/vitepress',
2122
'vitepress-plugin-twoslash',
2223
],
24+
2325
plugins: [
2426
dts({
2527
cwd: import.meta.dir,

storage/framework/core/email/build.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,16 @@ await Bun.build({
88
outdir: './dist',
99
format: 'esm',
1010
target: 'bun',
11+
1112
external: [
1213
'@stacksjs/cli',
1314
'@stacksjs/config',
1415
'@stacksjs/error-handling',
1516
'@stacksjs/types',
1617
'@maizzle/framework',
17-
'@novu/stateless',
18-
'@novu/emailjs',
19-
'@novu/mailgun',
20-
'@novu/mailjet',
21-
'@novu/mandrill',
22-
'@novu/netcore',
23-
'@novu/node',
24-
'@novu/nodemailer',
25-
'@novu/postmark',
26-
'@novu/sendgrid',
27-
'@novu/ses',
2818
'json5',
2919
],
20+
3021
plugins: [
3122
dts({
3223
cwd: import.meta.dir,

storage/framework/core/enums/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ await Bun.build({
77
entrypoints: ['./src/index.ts'],
88
outdir: './dist',
99
format: 'esm',
10+
1011
plugins: [
1112
dts({
1213
cwd: import.meta.dir,

storage/framework/core/env/build.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ await Bun.build({
88
outdir: './dist',
99
format: 'esm',
1010
target: 'bun',
11+
1112
external: [
1213
'fs-extra',
1314
'@stacksjs/validation',
1415
],
16+
1517
plugins: [
1618
dts({
1719
cwd: import.meta.dir,

storage/framework/core/error-handling/build.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ await Bun.build({
88
outdir: './dist',
99
format: 'esm',
1010
target: 'node',
11+
1112
external: [
1213
'@stacksjs/cli',
1314
'@stacksjs/path',
1415
'@stacksjs/storage',
1516
],
17+
1618
plugins: [
1719
dts({
1820
cwd: import.meta.dir,

storage/framework/core/eslint-config/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ await Bun.build({
88
outdir: './dist',
99
format: 'esm',
1010
target: 'node',
11+
1112
plugins: [
1213
dts({
1314
cwd: import.meta.dir,

0 commit comments

Comments
 (0)