Skip to content

Commit

Permalink
feat: migrate from webpack to tsup. dual-export esm and cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewWid committed Oct 18, 2024
1 parent ef90ae9 commit d2bc3cb
Show file tree
Hide file tree
Showing 5 changed files with 648 additions and 753 deletions.
24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"name": "better-sse",
"description": "Dead simple, dependency-less, spec-compliant server-sent events implementation for Node, written in TypeScript.",
"version": "0.13.0",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"license": "MIT",
"author": "Matthew W. <[email protected]>",
"repository": "github:MatthewWid/better-sse",
Expand All @@ -18,12 +16,21 @@
"events"
],
"scripts": {
"build": "webpack --env production",
"build": "tsup",
"test": "vitest",
"clean": "rimraf ./build",
"format": "prettier --write ./src/**/*.ts",
"lint": "eslint \"./src/**/*.ts\"",
"prepublishOnly": "npm-run-all clean format test build"
"prepublishOnly": "npm-run-all format test build"
},
"main": "./build/index.js",
"module": "./build/index.mjs",
"types": "./build/index.d.ts",
"exports": {
".": {
"types": "./build/index.d.ts",
"require": "./build/index.js",
"import": "./build/index.mjs"
}
},
"files": [
"build",
Expand All @@ -45,13 +52,10 @@
"eventsource": "^2.0.2",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsup": "^8.3.0",
"typescript": "^5.6.3",
"vitest": "^2.1.3",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4"
"vitest": "^2.1.3"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit d2bc3cb

Please sign in to comment.