-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add export maps to the subpackages (#3565)
* add export maps to the subpackages * format * run pretteir on package json files
- Loading branch information
1 parent
c746ecf
commit 68882bf
Showing
6 changed files
with
148 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,49 @@ | ||
{ | ||
"name": "preact-compat", | ||
"amdName": "preactCompat", | ||
"version": "4.0.0", | ||
"private": true, | ||
"description": "A React compatibility layer for Preact", | ||
"main": "dist/compat.js", | ||
"module": "dist/compat.module.js", | ||
"umd:main": "dist/compat.umd.js", | ||
"source": "src/index.js", | ||
"types": "src/index.d.ts", | ||
"license": "MIT", | ||
"mangle": { | ||
"regex": "^_" | ||
}, | ||
"peerDependencies": { | ||
"preact": "^10.0.0" | ||
} | ||
"name": "preact-compat", | ||
"amdName": "preactCompat", | ||
"version": "4.0.0", | ||
"private": true, | ||
"description": "A React compatibility layer for Preact", | ||
"main": "dist/compat.js", | ||
"module": "dist/compat.module.js", | ||
"umd:main": "dist/compat.umd.js", | ||
"source": "src/index.js", | ||
"types": "src/index.d.ts", | ||
"license": "MIT", | ||
"mangle": { | ||
"regex": "^_" | ||
}, | ||
"peerDependencies": { | ||
"preact": "^10.0.0" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./src/index.d.ts", | ||
"browser": "./dist/compat.module.js", | ||
"umd": "./dist/compat.umd.js", | ||
"import": "./dist/compat.mjs", | ||
"require": "./dist/compat.js" | ||
}, | ||
"./client": { | ||
"import": "./client.mjs", | ||
"require": "./client.js" | ||
}, | ||
"./server": { | ||
"browser": "./server.browser.js", | ||
"import": "./server.mjs", | ||
"require": "./server.js" | ||
}, | ||
"./jsx-runtime": { | ||
"import": "./jsx-runtime.mjs", | ||
"require": "./jsx-runtime.js" | ||
}, | ||
"./jsx-dev-runtime": { | ||
"import": "./jsx-dev-runtime.mjs", | ||
"require": "./jsx-dev-runtime.js" | ||
}, | ||
"./scheduler": { | ||
"import": "./scheduler.mjs", | ||
"require": "./scheduler.js" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,18 +1,26 @@ | ||
{ | ||
"name": "preact-debug", | ||
"amdName": "preactDebug", | ||
"version": "1.0.0", | ||
"private": true, | ||
"description": "Preact extensions for development", | ||
"main": "dist/debug.js", | ||
"module": "dist/debug.module.js", | ||
"umd:main": "dist/debug.umd.js", | ||
"source": "src/index.js", | ||
"license": "MIT", | ||
"mangle": { | ||
"regex": "^(?!_renderer)^_" | ||
}, | ||
"peerDependencies": { | ||
"preact": "^10.0.0" | ||
} | ||
"name": "preact-debug", | ||
"amdName": "preactDebug", | ||
"version": "1.0.0", | ||
"private": true, | ||
"description": "Preact extensions for development", | ||
"main": "dist/debug.js", | ||
"module": "dist/debug.module.js", | ||
"umd:main": "dist/debug.umd.js", | ||
"source": "src/index.js", | ||
"license": "MIT", | ||
"mangle": { | ||
"regex": "^(?!_renderer)^_" | ||
}, | ||
"peerDependencies": { | ||
"preact": "^10.0.0" | ||
}, | ||
"exports": { | ||
".": { | ||
"browser": "./dist/debug.module.js", | ||
"umd": "./dist/debug.umd.js", | ||
"import": "./dist/debug.mjs", | ||
"require": "./dist/debug.js" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,26 +1,35 @@ | ||
{ | ||
"name": "preact-hooks", | ||
"amdName": "preactHooks", | ||
"version": "0.1.0", | ||
"private": true, | ||
"description": "Hook addon for Preact", | ||
"main": "dist/hooks.js", | ||
"module": "dist/hooks.module.js", | ||
"umd:main": "dist/hooks.umd.js", | ||
"source": "src/index.js", | ||
"license": "MIT", | ||
"types": "src/index.d.ts", | ||
"scripts": { | ||
"build": "microbundle build --raw", | ||
"dev": "microbundle watch --raw --format cjs", | ||
"test": "npm-run-all build --parallel test:karma", | ||
"test:karma": "karma start test/karma.conf.js --single-run", | ||
"test:karma:watch": "karma start test/karma.conf.js --no-single-run" | ||
}, | ||
"peerDependencies": { | ||
"preact": "^10.0.0" | ||
}, | ||
"mangle": { | ||
"regex": "^_" | ||
} | ||
"name": "preact-hooks", | ||
"amdName": "preactHooks", | ||
"version": "0.1.0", | ||
"private": true, | ||
"description": "Hook addon for Preact", | ||
"main": "dist/hooks.js", | ||
"module": "dist/hooks.module.js", | ||
"umd:main": "dist/hooks.umd.js", | ||
"source": "src/index.js", | ||
"license": "MIT", | ||
"types": "src/index.d.ts", | ||
"scripts": { | ||
"build": "microbundle build --raw", | ||
"dev": "microbundle watch --raw --format cjs", | ||
"test": "npm-run-all build --parallel test:karma", | ||
"test:karma": "karma start test/karma.conf.js --single-run", | ||
"test:karma:watch": "karma start test/karma.conf.js --no-single-run" | ||
}, | ||
"peerDependencies": { | ||
"preact": "^10.0.0" | ||
}, | ||
"mangle": { | ||
"regex": "^_" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./src/index.d.ts", | ||
"browser": "./dist/hooks.module.js", | ||
"umd": "./dist/hooks.umd.js", | ||
"import": "./dist/hooks.mjs", | ||
"require": "./dist/hooks.js" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,19 +1,28 @@ | ||
{ | ||
"name": "test-utils", | ||
"amdName": "preactTestUtils", | ||
"version": "0.1.0", | ||
"private": true, | ||
"description": "Test-utils for Preact", | ||
"main": "dist/testUtils.js", | ||
"module": "dist/testUtils.module.js", | ||
"umd:main": "dist/testUtils.umd.js", | ||
"source": "src/index.js", | ||
"license": "MIT", | ||
"types": "src/index.d.ts", | ||
"peerDependencies": { | ||
"preact": "^10.0.0" | ||
}, | ||
"mangle": { | ||
"regex": "^_" | ||
} | ||
"name": "test-utils", | ||
"amdName": "preactTestUtils", | ||
"version": "0.1.0", | ||
"private": true, | ||
"description": "Test-utils for Preact", | ||
"main": "dist/testUtils.js", | ||
"module": "dist/testUtils.module.js", | ||
"umd:main": "dist/testUtils.umd.js", | ||
"source": "src/index.js", | ||
"license": "MIT", | ||
"types": "src/index.d.ts", | ||
"peerDependencies": { | ||
"preact": "^10.0.0" | ||
}, | ||
"mangle": { | ||
"regex": "^_" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./src/index.d.ts", | ||
"browser": "./dist/testUtils.module.js", | ||
"umd": "./dist/testUtils.umd.js", | ||
"import": "./dist/testUtils.mjs", | ||
"require": "./dist/testUtils.js" | ||
} | ||
} | ||
} |