Skip to content

Commit f0d0051

Browse files
committed
⚗️
1 parent 2a85e92 commit f0d0051

File tree

5 files changed

+653
-407
lines changed

5 files changed

+653
-407
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"prettier-plugin-svelte": "^3.1.2",
2525
"semver": "^7.5.0",
2626
"tshy": "^3.0.2",
27-
"tsup": "^6.7.0",
28-
"tsx": "^4.7.0",
27+
"tsup": "^8.3.5",
28+
"tsx": "^4.19.2",
2929
"typescript": "^5.4.2",
3030
"vite": "^5.0.2",
3131
"vitest": "^0.34.6",

packages/blob/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./src/index";

packages/blob/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
"import": "./dist/FileBlob.mjs"
2828
}
2929
},
30-
"source": "./src/index.ts",
30+
"source": "./index.ts",
3131
"scripts": {
3232
"lint": "eslint --quiet --fix --ext .cjs,.ts .",
3333
"lint:check": "eslint --ext .cjs,.ts .",
3434
"format": "prettier --write .",
3535
"format:check": "prettier --check .",
3636
"prepublishOnly": "pnpm run build",
37-
"build": "tsup && tsc --emitDeclarationOnly --declaration",
37+
"build": "tsup",
3838
"check": "tsc",
3939
"test": "vitest run"
4040
},

packages/blob/tsup.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import type { Options } from "tsup";
22

33
const baseConfig = {
4-
entry: ["./index.ts", "./src/WebBlob.ts"],
4+
entry: ["./index.ts" /*, "./src/WebBlob.ts"*/],
55
format: ["cjs", "esm"],
66
outDir: "dist",
77
clean: true,
88
} satisfies Options;
99

1010
const nodeConfig: Options = {
1111
...baseConfig,
12-
entry: [...baseConfig.entry, "./src/FileBlob.ts"],
12+
// entry: [...baseConfig.entry, "./src/FileBlob.ts"],
1313
platform: "node",
1414
};
1515

1616
const browserConfig: Options = {
1717
...baseConfig,
1818
platform: "browser",
19-
target: "es2018",
19+
target: "es2022",
2020
splitting: true,
2121
outDir: "dist/browser",
2222
};

0 commit comments

Comments
 (0)