[Misc] Prevent auto-imports from appending `.js` to imports (#5256)

Also fixes `#enums` import not being recognized by auto-imports
This commit is contained in:
NightKev 2025-02-05 12:07:37 -08:00 committed by GitHub
parent c363d2b93c
commit e5691f11a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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",