Skip to content

Commit

Permalink
fix: tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
whilefoo committed Jul 29, 2024
1 parent f56714b commit e0ccba3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "ubiquibot-kernel",
"version": "0.0.0",
"name": "@ubiquity-dao/ubiquibot-kernel",
"version": "0.0.1",
"private": false,
"description": "The kernel for UbiquiBot.",
"module": "dist/esm/index.js",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"import": "./dist/esm/index.js",
"types": "./dist/index.d.ts"
}
},
Expand Down Expand Up @@ -35,7 +38,7 @@
"jest:test": "jest --coverage",
"plugin:hello-world": "tsx tests/__mocks__/hello-world-plugin.ts",
"setup-kv": "bun --env-file=.dev.vars deploy/setup-kv-namespace.ts",
"sdk:build": "tsup src/sdk/index.ts --format cjs,esm"
"sdk:build": "tsup"
},
"keywords": [
"typescript",
Expand Down
3 changes: 2 additions & 1 deletion tsup.config.js → tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export default defineConfig({
format: ["cjs", "esm"],
outDir: "dist",
splitting: false,
sourcemap: true,
sourcemap: false,
clean: true,
dts: true,
legacyOutput: true,
});

0 comments on commit e0ccba3

Please sign in to comment.