mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore: upgrade typescript 6, vitest 4, align spf package (#1101)
This commit is contained in:
@@ -100,9 +100,9 @@
|
||||
"clean": "rm -rf dist cdn types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@videojs/spf": "workspace:*",
|
||||
"@videojs/core": "workspace:*",
|
||||
"@videojs/element": "workspace:*",
|
||||
"@videojs/spf": "workspace:*",
|
||||
"@videojs/store": "workspace:*",
|
||||
"@videojs/utils": "workspace:*"
|
||||
},
|
||||
@@ -112,8 +112,8 @@
|
||||
"@videojs/skins": "workspace:*",
|
||||
"happy-dom": "^18.0.1",
|
||||
"tsdown": "^0.20.3",
|
||||
"typescript": "^5.9.3",
|
||||
"vitest": "^3.2.4"
|
||||
"typescript": "^6.0.2",
|
||||
"vitest": "^4.1.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["src/*"]
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
"declarationDir": "types",
|
||||
"useDefineForClassFields": false
|
||||
|
||||
@@ -85,13 +85,17 @@ for (const mode of buildModes) {
|
||||
inlineTemplatePlugin({ minify: isProd }),
|
||||
...(!isProd ? [dtsStubsPlugin(outDir)] : []),
|
||||
],
|
||||
inputOptions: !isProd
|
||||
? {
|
||||
resolve: {
|
||||
conditionNames: ['development', 'import', 'browser', 'default'],
|
||||
},
|
||||
}
|
||||
: undefined,
|
||||
inputOptions: {
|
||||
onwarn(warning, defaultHandler) {
|
||||
if (warning.code === 'COMMONJS_VARIABLE_IN_ESM') return;
|
||||
defaultHandler(warning);
|
||||
},
|
||||
...(!isProd && {
|
||||
resolve: {
|
||||
conditionNames: ['development', 'import', 'browser', 'default'],
|
||||
},
|
||||
}),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user