mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
refactor: remove rename-imports scripts
Update approach of dealing with file extensions differences between typescript & node. Leverages `rewriteRelativeImportExtensions` that was added in typescript 5.7 [1], and that is recommended path by node to run typescript in the future [2] [1] https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-7.html#path-rewriting-for-relative-paths [2] https://nodejs.org/api/typescript.html#type-stripping
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { assert } from 'chai';
|
||||
import KonvaModule from '../../src/index';
|
||||
import KonvaModule from '../../src/index.ts';
|
||||
|
||||
export const Konva = KonvaModule;
|
||||
|
||||
@@ -8,9 +8,9 @@ export const Konva = KonvaModule;
|
||||
Konva.enableTrace = true;
|
||||
Konva.showWarnings = true;
|
||||
|
||||
import { imagediff } from './imagediff';
|
||||
import { Layer } from '../../src/Layer';
|
||||
import { Stage } from '../../src/Stage';
|
||||
import { imagediff } from './imagediff.ts';
|
||||
import { Layer } from '../../src/Layer.ts';
|
||||
import { Stage } from '../../src/Stage.ts';
|
||||
|
||||
// reset some data
|
||||
beforeEach(function () {
|
||||
|
Reference in New Issue
Block a user