-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use tsbuild to build project. Remove umd format support.
- Loading branch information
1 parent
17d0287
commit 1096df8
Showing
9 changed files
with
492 additions
and
42 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
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 |
---|---|---|
|
@@ -10,24 +10,29 @@ | |
"react-hooks" | ||
], | ||
"packageManager": "[email protected]", | ||
"source": "./src/useSuspender.ts", | ||
"main": "./lib/useSuspender.mjs", | ||
"umd:main": "./lib/useSuspender.umd.js", | ||
"module": "./lib/useSuspender.legacy.mjs", | ||
"main": "./lib/useSuspender.js", | ||
"types": "./lib/useSuspender.d.ts", | ||
"exports": { | ||
"import": "./lib/useSuspender.mjs", | ||
"require": "./lib/useSuspender.cjs", | ||
"types": "./lib/useSuspender.d.ts", | ||
"default": "./lib/useSuspender.mjs" | ||
"import": { | ||
"types": "./lib/useSuspender.d.ts", | ||
"default": "./lib/useSuspender.js" | ||
}, | ||
"require": { | ||
"types": "./lib/useSuspender.d.cts", | ||
"default": "./lib/useSuspender.cjs" | ||
}, | ||
"default": { | ||
"types": "./lib/useSuspender.d.ts", | ||
"default": "./lib/useSuspender.js" | ||
} | ||
}, | ||
"repository": "octet-stream/use-suspender", | ||
"author": "Nick K. <[email protected]>", | ||
"license": "MIT", | ||
"private": false, | ||
"scripts": { | ||
"cleanup": "del-cli lib", | ||
"build": "microbundle --tsconfig tsconfig.build.json --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react --globals react/jsx-runtime=jsx", | ||
"build": "del-cli lib && tsup", | ||
"size-limit": "size-limit", | ||
"staged": "lint-staged", | ||
"coverage": "c8 npm test", | ||
|
@@ -70,6 +75,7 @@ | |
"sinon": "17.0.1", | ||
"size-limit": "8.2.4", | ||
"ts-node": "10.9.1", | ||
"tsup": "^7.2.0", | ||
"typescript": "5.2.2" | ||
}, | ||
"peerDependencies": { | ||
|
Oops, something went wrong.