Skip to content

Commit 3aa4042

Browse files
Upgrade tsdown and fix authproto dev build
1 parent a087105 commit 3aa4042

3 files changed

Lines changed: 16606 additions & 4849 deletions

File tree

astro-authproto/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
],
4545
"scripts": {
4646
"build": "tsdown",
47-
"dev": "tsdown --watch false",
47+
"dev": "tsdown --watch .src/",
4848
"validate": "npx publint",
4949
"test": "vitest"
5050
},
@@ -72,10 +72,11 @@
7272
"@atproto/jwk-jose": "^0.1.4",
7373
"@atproto/oauth-client-node": "^0.3.8",
7474
"astro-integration-kit": "^0.19.0",
75+
"glob": "^13.0.0",
7576
"unstorage": "^1.16.1"
7677
},
7778
"devDependencies": {
78-
"tsdown": "^0.17.2"
79+
"tsdown": "^0.18.0"
7980
},
8081
"peerDependencies": {
8182
"@astrojs/db": "^0.17.1",

astro-authproto/tsdown.config.ts

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,14 @@ export default defineConfig([
1717
{
1818
name: "components",
1919
entry: ["src/components.ts"],
20-
copy: [{ from: "src/components", to: "dist/components" }],
20+
copy: [{ from: "src/components/", to: "dist/" }],
2121
external: astroFileExternal,
2222
...COMMON_CONFIG,
2323
},
24-
{
25-
name: "tables",
26-
entry: ["src/db/tables.ts"],
27-
outputOptions: {
28-
dir: `./dist/db/`,
29-
},
30-
external: astroFileExternal,
31-
...COMMON_CONFIG,
32-
dts: false,
33-
},
3424
{
3525
name: "integration",
36-
entry: ["src/index.ts", "src/types.d.ts"],
37-
external: baseExternal,
38-
...COMMON_CONFIG,
39-
},
40-
{
41-
name: "helpers",
42-
entry: ["src/helpers.ts", "src/types.d.ts"],
43-
external: baseExternal,
26+
entry: ["src/index.ts", "src/helpers.ts", "src/types.d.ts", "src/db/tables.ts"],
27+
external: astroFileExternal,
4428
...COMMON_CONFIG,
4529
},
4630
{
@@ -53,17 +37,8 @@ export default defineConfig([
5337
...COMMON_CONFIG,
5438
},
5539
{
56-
name: "stores-unstorage",
57-
entry: ["src/stores/unstorage.ts"],
58-
outputOptions: {
59-
dir: `./dist/stores/`,
60-
},
61-
external: baseExternal,
62-
...COMMON_CONFIG,
63-
},
64-
{
65-
name: "stores-db",
66-
entry: ["src/stores/db.ts"],
40+
name: "stores",
41+
entry: ["src/stores/unstorage.ts", "src/stores/db.ts"],
6742
outputOptions: {
6843
dir: `./dist/stores/`,
6944
},

0 commit comments

Comments
 (0)