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 * from './app';
export * from './core';

View File

@ -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);
// },
// ],
// },
}),
],
};

View File

@ -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"]