Skip to content

Commit

Permalink
⚗️
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotte508 committed Dec 3, 2024
1 parent 2a85e92 commit f0d0051
Show file tree
Hide file tree
Showing 5 changed files with 653 additions and 407 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"prettier-plugin-svelte": "^3.1.2",
"semver": "^7.5.0",
"tshy": "^3.0.2",
"tsup": "^6.7.0",
"tsx": "^4.7.0",
"tsup": "^8.3.5",
"tsx": "^4.19.2",
"typescript": "^5.4.2",
"vite": "^5.0.2",
"vitest": "^0.34.6",
Expand Down
1 change: 1 addition & 0 deletions packages/blob/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./src/index";
4 changes: 2 additions & 2 deletions packages/blob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"import": "./dist/FileBlob.mjs"
}
},
"source": "./src/index.ts",
"source": "./index.ts",
"scripts": {
"lint": "eslint --quiet --fix --ext .cjs,.ts .",
"lint:check": "eslint --ext .cjs,.ts .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"prepublishOnly": "pnpm run build",
"build": "tsup && tsc --emitDeclarationOnly --declaration",
"build": "tsup",
"check": "tsc",
"test": "vitest run"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/blob/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import type { Options } from "tsup";

const baseConfig = {
entry: ["./index.ts", "./src/WebBlob.ts"],
entry: ["./index.ts" /*, "./src/WebBlob.ts"*/],
format: ["cjs", "esm"],
outDir: "dist",
clean: true,
} satisfies Options;

const nodeConfig: Options = {
...baseConfig,
entry: [...baseConfig.entry, "./src/FileBlob.ts"],
// entry: [...baseConfig.entry, "./src/FileBlob.ts"],
platform: "node",
};

const browserConfig: Options = {
...baseConfig,
platform: "browser",
target: "es2018",
target: "es2022",
splitting: true,
outDir: "dist/browser",
};
Expand Down
Loading

0 comments on commit f0d0051

Please sign in to comment.