diff --git a/global.d.ts b/global.d.ts index 90a0beb..16567c6 100644 --- a/global.d.ts +++ b/global.d.ts @@ -1,14 +1,14 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ declare namespace GlobalMixins { - type JlCanvasType = import('./src/app').IJlCanvas; - type CanvasProperties = import('./src/app').ICanvasProperties; - type GraphicApp = import('./src/app').IGraphicApp; - type JlGraphicType = import('./src/core').JlGraphic; - type GraphicData = import('./src/core').GraphicData; - type GraphicState = import('./src/core').GraphicState; - type GraphicTransform = import('./src/core').GraphicTransform; - type GraphicTransformEvent = import('./src/plugins').GraphicTransformEvent; - type BoundsGraphic = import('./src/plugins').BoundsGraphic; + type JlCanvasType = import('@jl-graphic').IJlCanvas; + type CanvasProperties = import('@jl-graphic').ICanvasProperties; + type GraphicApp = import('@jl-graphic').IGraphicApp; + type JlGraphicType = import('@jl-graphic').JlGraphic; + type GraphicData = import('@jl-graphic').GraphicData; + type GraphicState = import('@jl-graphic').GraphicState; + type GraphicTransform = import('@jl-graphic').GraphicTransform; + type GraphicTransformEvent = import('@jl-graphic').GraphicTransformEvent; + type BoundsGraphic = import('@jl-graphic').BoundsGraphic; type IPointDataType = import('pixi.js').IPointData; type PointType = import('pixi.js').Point; type FederatedMouseEvent = import('pixi.js').FederatedMouseEvent; diff --git a/lib/index.d.ts b/lib/index.d.ts index 0fdfac0..826e1af 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 2ee2b0d..fdb50e4 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,4 +1,5 @@ import typescript from '@rollup/plugin-typescript'; +import ts from 'typescript'; /** * @type {import('rollup').RollupOptions} @@ -20,7 +21,7 @@ const config = { logLevel: 'debug', plugins: [ typescript({ - declaration: true, + // declaration: true, declarationDir: 'lib', include: ['src/**/*'], tsconfig: './tsconfig.json', diff --git a/tsconfig.json b/tsconfig.json index bd9bdbe..b0d8390 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,13 +5,18 @@ "allowJs": false, "module": "ESNext", "target": "ESNext", - "moduleResolution": "Bundler", + "moduleResolution": "node", "typeRoots": ["node_modules/@types"], "strict": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true, "lib": ["esnext", "dom"], - "useDefineForClassFields": true + "useDefineForClassFields": true, + "declaration": true, + "allowUmdGlobalAccess": true, + "paths": { + "@jl-graphic": ["src"] + } }, "include": ["src/**/*.ts", "global.d.ts"], "exclude": ["node_modules", "lib"]