This commit is contained in:
Yuan 2023-12-14 11:19:46 +08:00
parent 88a9302ca7
commit 98298af2b2
3 changed files with 3 additions and 15 deletions

2
lib/index.d.ts vendored
View File

@ -1,4 +1,4 @@
/// <reference types="global" /> /// <reference types="../global.ts" />
export * as GraphicsExtras from '@pixi/graphics-extras'; export * as GraphicsExtras from '@pixi/graphics-extras';
export * from './app'; export * from './app';
export * from './core'; export * from './core';

View File

@ -1,6 +1,4 @@
import typescript from '@rollup/plugin-typescript'; import typescript from '@rollup/plugin-typescript';
import replace from '@rollup/plugin-replace';
import ts from 'typescript';
/** /**
* @type {import('rollup').RollupOptions} * @type {import('rollup').RollupOptions}
@ -24,17 +22,8 @@ const config = {
typescript({ typescript({
declaration: true, declaration: true,
declarationDir: 'lib', declarationDir: 'lib',
include: ['src/**/*', 'global.d.ts'], include: ['src/**/*'],
tsconfig: './tsconfig.json', tsconfig: './tsconfig.json',
// transformers: {
// afterDeclarations: [
// (context) =>
// function visitor(node) {
// console.log(node)
// return ts.visitEachChild(node, visitor, context);
// },
// ],
// },
}), }),
], ],
}; };

View File

@ -11,8 +11,7 @@
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"isolatedModules": true, "isolatedModules": true,
"lib": ["esnext", "dom"], "lib": ["esnext", "dom"],
"useDefineForClassFields": true, "useDefineForClassFields": true
"noResolve": true
}, },
"include": ["src/**/*.ts", "global.d.ts"], "include": ["src/**/*.ts", "global.d.ts"],
"exclude": ["node_modules", "lib"] "exclude": ["node_modules", "lib"]