-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from MatthewWid/cjs-esm-support
Dual-export ESM and CJS builds. Migrate from webpack to tsup
- Loading branch information
Showing
7 changed files
with
650 additions
and
754 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|
@@ -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", | ||
|
@@ -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]" | ||
} |
Oops, something went wrong.