mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 00:06:17 -08:00
refactor(tooling): [MOD-PLUGIN-01] generate typed plugins with safe output handling
This commit is contained in:
1 parent
07d5bfef2e
commit
28c7abb2bb
32 files changed
+958
-161
No files matched your search
@@ -19,20 +19,41 @@
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./types/artplayer-plugin-{{name}}.d.ts",
|
||||
"import": "./dist/artplayer-plugin-{{name}}.mjs",
|
||||
"require": "./dist/artplayer-plugin-{{name}}.js"
|
||||
"import": {
|
||||
"types": "./types/artplayer-plugin-{{name}}.d.mts",
|
||||
"default": "./dist/artplayer-plugin-{{name}}.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./types/artplayer-plugin-{{name}}.d.ts",
|
||||
"default": "./dist/artplayer-plugin-{{name}}.js"
|
||||
},
|
||||
"default": "./dist/artplayer-plugin-{{name}}.js"
|
||||
},
|
||||
"./legacy": {
|
||||
"types": "./types/artplayer-plugin-{{name}}.d.ts",
|
||||
"import": "./dist/artplayer-plugin-{{name}}.legacy.js",
|
||||
"require": "./dist/artplayer-plugin-{{name}}.legacy.js"
|
||||
|
||||
}
|
||||
"import": {
|
||||
"types": "./types/artplayer-plugin-{{name}}.d.mts",
|
||||
"default": "./dist/artplayer-plugin-{{name}}.legacy.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./types/artplayer-plugin-{{name}}.d.ts",
|
||||
"default": "./dist/artplayer-plugin-{{name}}.legacy.js"
|
||||
},
|
||||
"default": "./dist/artplayer-plugin-{{name}}.legacy.js"
|
||||
},
|
||||
"./dist/*": "./dist/*",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"main": "dist/artplayer-plugin-{{name}}.js",
|
||||
"module": "./dist/artplayer-plugin-{{name}}.mjs",
|
||||
"types": "types/artplayer-plugin-{{name}}.d.ts",
|
||||
"legacy": "dist/artplayer-plugin-{{name}}.legacy.js",
|
||||
"files": ["README.md", "dist", "types"],
|
||||
"scripts": {
|
||||
"typecheck": "node ../../node_modules/typescript/bin/tsc -p tsconfig.json --noEmit",
|
||||
"test": "node --test test/plugin.test.mjs"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"artplayer": "*"
|
||||
},
|
||||
"browserslist": "last 1 Chrome version"
|
||||
}
|
||||
Reference in new issue
Block a user