Skip to content

Commit

Permalink
fix: build cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
libkakashi committed Mar 30, 2024
1 parent f305e90 commit c74b4ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@
"version": "0.0.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"description": "",
"scripts": {
"build": "bun run build.mjs",
"prepublishOnly": "bun run build",
"build": "tsc && npm run build:esm",
"build:esm": "tsc --module esnext --outDir dist/esm && mv dist/esm/index.js dist/index.mjs && rm -rf dist/esm",
"build:bun": "bun run build.mjs",
"prepare": "npm run build",
"lint": "gts lint",
"clean": "gts clean",
"fix": "gts fix"
},
"files": [
"dist"
],
"keywords": [
"bun"
],
"files": ["dist"],
"license": "MIT",
"homepage": "https://github.com/libkakashi/superqueue#readme",
"repository": {
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"extends": "./node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "dist",
"target": "es2020",
"module": "esnext",
"strict": true,
"esModuleInterop": true,
"moduleResolution": "node",
"skipLibCheck": true,
"noUnusedLocals": true,
"noImplicitAny": true,
"allowJs": true,
"noEmit": true,
"outDir": "dist",
"resolveJsonModule": true
},
"include": [
Expand Down

0 comments on commit c74b4ae

Please sign in to comment.