Skip to content

Commit

Permalink
chore: release 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
hahnlee committed May 16, 2024
1 parent 45c9e69 commit 5728b39
Show file tree
Hide file tree
Showing 3 changed files with 665 additions and 24 deletions.
34 changes: 27 additions & 7 deletions packages/parser/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,35 @@
{
"name": "@hwp.js/parser",
"version": "0.0.3",
"version": "0.0.4-alpha.0",
"type": "module",
"siseEffect": false,
"main": "./src/index.ts",
"module": "./src/index.ts",
"sideEffect": false,
"exports": {
".": {
"require": "./src/index.ts",
"import": "./src/index.ts",
"types": "./src/index.d.ts"
}
},
"publishConfig": {
"main": "./build/cjs.js",
"module": "./build/esm.js",
"types": "./build/index.d.ts"
"exports": {
".": {
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./package.json": "./package.json"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"lint": "eslint ./src",
"test": "node --import tsx --test **/*.test.ts",
"typecheck": "tsc --noEmit"
Expand All @@ -20,6 +39,7 @@
"@types/node": "^20",
"@types/pako": "^1.0.1",
"eslint": "^8",
"tsup": "^8.0.2",
"tsx": "^4.7.2",
"typescript": "^5"
},
Expand Down
10 changes: 10 additions & 0 deletions packages/parser/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entryPoints: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
sourcemap: true,
clean: true,
splitting: false,
})
Loading

0 comments on commit 5728b39

Please sign in to comment.