Skip to content

Commit

Permalink
Publish dual ESM/CJS package
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Sep 9, 2022
1 parent 43bf1ef commit 914858c
Show file tree
Hide file tree
Showing 3 changed files with 823 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.2.0 - 2022-09-09

- Publish as a dual ESM/CJS package

## v0.1.0 - 2022-09-01

- Initial release
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
"author": "Jacob Gillespie <[email protected]>",
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"types": "./dist/index.d.ts",
"files": [
"dist"
Expand All @@ -19,7 +28,7 @@
"serverless"
],
"scripts": {
"build": "tsc",
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
"clean": "rm -rf dist",
"fmt": "prettier --write .",
"fmt:check": "prettier --check .",
Expand All @@ -41,6 +50,7 @@
"prettier": "^2.7.1",
"prettier-plugin-organize-imports": "^3.1.0",
"prettier-plugin-pkg": "^0.17.1",
"tsup": "^6.2.3",
"typescript": "^4.8.2"
},
"sideEffects": false
Expand Down
Loading

0 comments on commit 914858c

Please sign in to comment.