Skip to content

Commit

Permalink
set engine, use ts.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Nov 13, 2023
1 parent 8b9b9be commit 63bdc5f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"LICENSE",
"README.md"
],
"engines": {
"node": ">=18"
},
"repository": {
"type": "git",
"url": "https://github.com/nutriot/bandcamp-api.git"
Expand All @@ -34,9 +37,7 @@
],
"license": "MIT",
"scripts": {
"build": "npm-run-all --parallel build:*",
"build:lib": "tsup src/index.ts --format esm,cjs --dts --out-dir lib",
"build:schema": "tsup src/schema/*.ts --format esm,cjs --dts --out-dir lib/schema",
"build": "tsup",
"dev": "npm-run-all --parallel dev:*",
"dev:lib": "npm run build:lib -- --watch",
"dev:schema": "npm run build:schema -- --watch",
Expand Down
14 changes: 14 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineConfig } from 'tsup';

export default defineConfig({
target: 'esnext',
clean: true,
dts: true,
entry: [
'src/index.ts'
],
format: ['esm', 'cjs'],
minify: true,
outDir: 'lib',
treeshake: 'recommended'
});

0 comments on commit 63bdc5f

Please sign in to comment.