Skip to content

Commit

Permalink
chore: change build tool to tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
nxht committed Aug 26, 2024
1 parent aedb90a commit 95d13c1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 43 deletions.
14 changes: 0 additions & 14 deletions .npmignore

This file was deleted.

19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
{
"name": "@nxht/typebox-extended-openapi",
"version": "0.0.3",
"version": "0.0.4",
"repository": {
"type": "git",
"url": "https://github.com/nxht/typebox-extended-openapi"
},
"keywords": ["typescript", "typebox", "json-schema", "openapi"],
"type": "module",
"main": "./dist/cjs/index.js",
"main": "./dist/index.js",
"types": "./src/index.ts",
"files": ["src", "dist"],
"exports": {
"bun": "./src/index.ts",
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"scripts": {
"build:esm": "tsc -p tsconfig.build.json",
"build:cjs": "tsc -p tsconfig.build-cjs.json",
"build": "rm -rf dist/ && bun run build:esm && bun run build:cjs",
"build": "bun tsup",
"attw": "attw -P .",
"trace": "bunx tsc --noEmit --generateTrace trace && bunx analyze-trace trace --force-millis 100",
"prepublishOnly": "bun run build"
},
"peerDependencies": {
"dependencies": {
"@sinclair/typebox": "^0.32.35 || ^0.33.7"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@biomejs/biome": "latest",
"@types/bun": "latest",
"tsup": "^8.2.4",
"typescript": "^5.5.4"
}
}
12 changes: 0 additions & 12 deletions tsconfig.build-cjs.json

This file was deleted.

8 changes: 0 additions & 8 deletions tsconfig.build.json

This file was deleted.

10 changes: 10 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['src/index.ts'],
outDir: 'dist',
format: ['esm', 'cjs'],
dts: true,
sourcemap: true,
clean: true,
});

0 comments on commit 95d13c1

Please sign in to comment.