[Misc] Prevent auto-imports from appending .js to imports

Also fixes `#enums` import not being recognized by auto-imports
This commit is contained in:
NightKev 2025-02-04 19:10:17 -08:00
parent 8d043a9f55
commit cf256a63b5
3 changed files with 1 additions and 8 deletions

View File

@ -64,11 +64,5 @@
},
"engines": {
"node": ">=20.0.0"
},
"imports": {
"#enums/*": "./enums/*",
"#app": "./src/main.js",
"#app/*": "./src/*",
"#test/*": "./src/test/*"
}
}

View File

@ -44,7 +44,7 @@ import { SpeciesFormChangeRevertWeatherFormTrigger } from "./pokemon-forms";
import type { GameMode } from "#app/game-mode";
import { applyChallenges, ChallengeType } from "./challenge";
import { SwitchType } from "#enums/switch-type";
import { StatusEffect } from "enums/status-effect";
import { StatusEffect } from "#enums/status-effect";
import { globalScene } from "#app/global-scene";
export enum MoveCategory {

View File

@ -13,7 +13,6 @@
"paths": {
"#enums/*": ["./enums/*.ts"],
"#app/*": ["*.ts"],
"#app": ["."],
"#test/*": ["./test/*.ts"]
},
"outDir": "./build",