配置调整

This commit is contained in:
Yuan 2023-12-18 18:03:25 +08:00
parent d8f1ff2442
commit 59bbe2a41f
3 changed files with 5 additions and 7 deletions

View File

@ -18,19 +18,19 @@
"dependencies": { "dependencies": {
"@pixi/graphics-extras": "^7.3.2", "@pixi/graphics-extras": "^7.3.2",
"@pixi/utils": "^7.3.2", "@pixi/utils": "^7.3.2",
"@rollup/plugin-alias": "^5.1.0",
"@stomp/stompjs": "^7.0.0", "@stomp/stompjs": "^7.0.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.0.1",
"mqtt": "^5.2.1", "mqtt": "^5.2.1",
"pixi-viewport": "^5.0.1", "pixi-viewport": "^5.0.1",
"pixi.js": "^7.3.2" "pixi.js": "^7.3.2"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-replace": "^5.0.5", "@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-typescript": "^11.1.5", "@rollup/plugin-typescript": "^11.1.5",
"@types/node": "^12.20.21", "@types/node": "^12.20.21",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.0.1",
"prettier": "^3.1.1", "prettier": "^3.1.1",
"rollup": "^4.8.0", "rollup": "^4.8.0",
"rollup-plugin-dts": "^6.1.0", "rollup-plugin-dts": "^6.1.0",

View File

@ -1,5 +1,4 @@
import typescript from '@rollup/plugin-typescript'; import typescript from '@rollup/plugin-typescript';
import ts from 'typescript';
/** /**
* @type {import('rollup').RollupOptions} * @type {import('rollup').RollupOptions}
@ -21,7 +20,6 @@ const config = {
logLevel: 'debug', logLevel: 'debug',
plugins: [ plugins: [
typescript({ typescript({
// declaration: true,
declarationDir: 'lib', declarationDir: 'lib',
include: ['src/**/*'], include: ['src/**/*'],
tsconfig: './tsconfig.json', tsconfig: './tsconfig.json',

View File

@ -6,7 +6,7 @@
"module": "ESNext", "module": "ESNext",
"target": "ESNext", "target": "ESNext",
"moduleResolution": "node", "moduleResolution": "node",
"typeRoots": ["node_modules/@types"], "typeRoots": ["node_modules/@types", "global.d.ts"],
"strict": true, "strict": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"isolatedModules": true, "isolatedModules": true,