From 59bbe2a41f6d7cf5996ac2d693eedb918c2e0fb1 Mon Sep 17 00:00:00 2001 From: Yuan Date: Mon, 18 Dec 2023 18:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 8 ++++---- rollup.config.mjs | 2 -- tsconfig.json | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index c90204b..d7315d4 100644 --- a/package.json +++ b/package.json @@ -18,19 +18,19 @@ "dependencies": { "@pixi/graphics-extras": "^7.3.2", "@pixi/utils": "^7.3.2", - "@rollup/plugin-alias": "^5.1.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", "pixi-viewport": "^5.0.1", "pixi.js": "^7.3.2" }, "devDependencies": { + "@rollup/plugin-alias": "^5.1.0", "@rollup/plugin-replace": "^5.0.5", "@rollup/plugin-typescript": "^11.1.5", "@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", "rollup": "^4.8.0", "rollup-plugin-dts": "^6.1.0", diff --git a/rollup.config.mjs b/rollup.config.mjs index fdb50e4..116f4eb 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,5 +1,4 @@ import typescript from '@rollup/plugin-typescript'; -import ts from 'typescript'; /** * @type {import('rollup').RollupOptions} @@ -21,7 +20,6 @@ const config = { logLevel: 'debug', plugins: [ typescript({ - // declaration: true, declarationDir: 'lib', include: ['src/**/*'], tsconfig: './tsconfig.json', diff --git a/tsconfig.json b/tsconfig.json index b0d8390..90e3c14 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "module": "ESNext", "target": "ESNext", "moduleResolution": "node", - "typeRoots": ["node_modules/@types"], + "typeRoots": ["node_modules/@types", "global.d.ts"], "strict": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true,