Skip to content

Commit

Permalink
feat: microbundle add
Browse files Browse the repository at this point in the history
  • Loading branch information
betula committed Nov 30, 2023
1 parent 4d4dc51 commit 8d831d8
Show file tree
Hide file tree
Showing 3 changed files with 4,854 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.DS_Store

dist
node_modules
27 changes: 23 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@
"name": "unsubscriber",
"version": "2.1.0",
"description": "How to easy collect unsubscribe functions from several sources",
"type": "module",
"main": "index.mjs",
"types": "index.d.ts",
"types": "src/index.d.ts",
"main": "dist/unsubscriber.js",
"module": "dist/unsubscriber.module.js",
"umd:main": "dist/unsubscriber.umd.js",
"source": "src/index.js",
"files": [
"src",
"dist"
],
"scripts": {
"test": "jest"
"test": "jest",
"clean": "rm -rf dist",
"dev": "microbundle watch --raw --format cjs",
"build": "yarn clean && microbundle build --raw --target browser"
},
"repository": {
"type": "git",
Expand All @@ -29,6 +38,16 @@
"@babel/preset-typescript": "7.23.3",
"@types/jest": "29.5.10",
"jest": "29.7.0",
"microbundle": "0.15.1",
"typescript": "5.3.2"
},
"exports": {
".": {
"types": "./src/index.d.ts",
"browser": "./dist/unsubscriber.module.js",
"umd": "./dist/unsubscriber.umd.js",
"import": "./dist/unsubscriber.mjs",
"require": "./dist/unsubscriber.js"
}
}
}
Loading

0 comments on commit 8d831d8

Please sign in to comment.