Skip to content

Commit 2a85e92

Browse files
committed
try tsup
1 parent b0d0f6f commit 2a85e92

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

packages/blob/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@
3535
"format:check": "prettier --check .",
3636
"prepublishOnly": "pnpm run build",
3737
"build": "tsup && tsc --emitDeclarationOnly --declaration",
38-
"prepare": "pnpm run build",
3938
"check": "tsc",
4039
"test": "vitest run"
4140
},
42-
"type": "module",
4341
"files": [
4442
"dist",
4543
"src",
@@ -52,7 +50,7 @@
5250
"author": "Hugging Face",
5351
"license": "MIT",
5452
"browser": {
55-
"./src/utils/FileBlob.ts": false,
53+
"./src/FileBlob.ts": false,
5654
"./dist/index.js": "./dist/browser/index.js",
5755
"./dist/index.mjs": "./dist/browser/index.mjs",
5856
"./dist/WebBlob.js": "./dist/browser/WebBlob.js",

packages/blob/tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"compilerOptions": {
33
"allowSyntheticDefaultImports": true,
44
"lib": ["ES2022", "DOM"],
5-
"module": "NodeNext",
6-
"target": "ESNext",
7-
"moduleResolution": "nodenext",
5+
"module": "CommonJS",
6+
"moduleResolution": "node",
7+
"target": "ES2022",
88
"forceConsistentCasingInFileNames": true,
99
"strict": true,
1010
"noImplicitAny": true,
@@ -15,6 +15,6 @@
1515
"declaration": true,
1616
"declarationMap": true
1717
},
18-
"include": ["src"],
18+
"include": ["src", "index.ts"],
1919
"exclude": ["dist"]
2020
}

packages/blob/tsup.config.ts

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

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

0 commit comments

Comments
 (0)