Skip to content

Commit

Permalink
feat: simplify packaging configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Feb 7, 2024
1 parent f6ba55c commit 5f154fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "partial-json",
"version": "0.1.4",
"version": "0.1.5",
"description": "Parse partial JSON generated by LLM",
"keywords": [
"JSON",
Expand All @@ -14,29 +14,29 @@
"author": "Muspi Merol <me@promplate.dev>",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"default": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./options": {
"default": "./dist/options.js",
"types": "./dist/options.d.ts"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsc && (npm run build:cjs & npm run build:esm)",
"build:cjs": "esbuild src/index.ts --sourcemap=external --minify --keep-names --bundle --format=cjs --outfile=dist/index.cjs",
"build:esm": "esbuild src/index.ts --sourcemap=external --minify --keep-names --bundle --format=esm --outfile=dist/index.mjs",
"build": "tsc",
"coverage": "vitest run --coverage",
"test": "vitest",
"test:ui": "vitest --ui"
},
"devDependencies": {
"@vitest/coverage-istanbul": "^1.2.2",
"@vitest/ui": "^1.2.2",
"esbuild": "^0.20.0",
"typescript": "^5.3.3",
"vitest": "^1.2.2"
}
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"incremental": true,
"composite": true,
"declaration": true,
"target": "es2016",
"target": "ESNext",
"module": "commonjs",
"declarationMap": true,
"outDir": "dist",
Expand All @@ -12,4 +12,4 @@
"forceConsistentCasingInFileNames": true,
"strict": true
}
}
}

1 comment on commit 5f154fe

@vercel
Copy link

@vercel vercel bot commented on 5f154fe Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.