From 98298af2b2b90fdce06babfb7666024e853d06f3 Mon Sep 17 00:00:00 2001 From: Yuan Date: Thu, 14 Dec 2023 11:19:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/index.d.ts | 2 +- rollup.config.mjs | 13 +------------ tsconfig.json | 3 +-- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 826e1af..0fdfac0 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -1,4 +1,4 @@ -/// +/// export * as GraphicsExtras from '@pixi/graphics-extras'; export * from './app'; export * from './core'; diff --git a/rollup.config.mjs b/rollup.config.mjs index f6e9831..2ee2b0d 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,6 +1,4 @@ import typescript from '@rollup/plugin-typescript'; -import replace from '@rollup/plugin-replace'; -import ts from 'typescript'; /** * @type {import('rollup').RollupOptions} @@ -24,17 +22,8 @@ const config = { typescript({ declaration: true, declarationDir: 'lib', - include: ['src/**/*', 'global.d.ts'], + include: ['src/**/*'], tsconfig: './tsconfig.json', - // transformers: { - // afterDeclarations: [ - // (context) => - // function visitor(node) { - // console.log(node) - // return ts.visitEachChild(node, visitor, context); - // }, - // ], - // }, }), ], }; diff --git a/tsconfig.json b/tsconfig.json index 45a8e00..bd9bdbe 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,8 +11,7 @@ "forceConsistentCasingInFileNames": true, "isolatedModules": true, "lib": ["esnext", "dom"], - "useDefineForClassFields": true, - "noResolve": true + "useDefineForClassFields": true }, "include": ["src/**/*.ts", "global.d.ts"], "exclude": ["node_modules", "lib"]