Skip to content

Commit

Permalink
Use esno to run pack and link scripts (#7371)
Browse files Browse the repository at this point in the history
  • Loading branch information
In3luki committed Apr 11, 2023
1 parent 021ba22 commit c3ebd23
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 43 deletions.
98 changes: 84 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,20 @@
"type": "module",
"scripts": {
"build": "npm run build:packs && vite build",
"build:packs": "node --loader @bleed-believer/path-alias ./packs/scripts/build.ts",
"build:packs": "esno ./packs/scripts/build.ts",
"watch": "npm run build:packs && vite build --watch --mode development",
"hot": "vite serve",
"link": "ts-node-esm scripts/link.ts",
"extractPacks": "node --loader @bleed-believer/path-alias ./packs/scripts/extract.ts",
"link": "esno scripts/link.ts",
"extractPacks": "esno ./packs/scripts/extract.ts",
"pretest": "eslint ./ --ext .ts && eslint ./static --ext .json",
"test": "jest",
"migrate": "node --loader @bleed-believer/path-alias ./packs/scripts/run-migration.ts",
"migrate": "esno ./packs/scripts/run-migration.ts",
"lint": "eslint ./src ./tests ./types --ext .ts && eslint ./static --ext .json",
"lint:fix": "eslint ./src ./tests ./types --ext .ts --fix"
},
"author": "The PF2e System Developers",
"license": "Apache-2.0",
"devDependencies": {
"@bleed-believer/path-alias": "^0.14.0",
"@pixi/graphics-smooth": "^0.0.30",
"@pixi/particle-emitter": "5.0.7",
"@types/fs-extra": "^11.0.1",
Expand All @@ -43,6 +42,7 @@
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-prettier": "^4.2.1",
"esno": "^0.16.3",
"fs-extra": "^11.1.1",
"gsap": "^3.11.5",
"handlebars": "4.7.7",
Expand Down
46 changes: 23 additions & 23 deletions src/module/item/data/index.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import { ActionItemSource } from "@item/action/data.ts";
import { AfflictionSource } from "@item/affliction/data.ts";
import { AncestrySource } from "@item/ancestry/data.ts";
import { ArmorSource } from "@item/armor/data.ts";
import { BackgroundSource } from "@item/background/data.ts";
import { BookSource } from "@item/book/data.ts";
import { ClassSource } from "@item/class/data.ts";
import { ConditionSource } from "@item/condition/data.ts";
import { ConsumableSource } from "@item/consumable/data.ts";
import { ContainerSource } from "@item/container/data.ts";
import { DeitySource } from "@item/deity/data.ts";
import { EffectSource } from "@item/effect/data.ts";
import { EquipmentSource } from "@item/equipment/data.ts";
import { FeatSource } from "@item/feat/data.ts";
import { HeritageSource } from "@item/heritage/data.ts";
import { KitSource } from "@item/kit/data.ts";
import { LoreSource } from "@item/lore/data.ts";
import { MeleeSource } from "@item/melee/data.ts";
import { PhysicalItemType } from "@item/physical/types.ts";
import { SpellSource } from "@item/spell/data.ts";
import { SpellcastingEntrySource } from "@item/spellcasting-entry/data.ts";
import { TreasureSource } from "@item/treasure/data.ts";
import { WeaponSource } from "@item/weapon/data.ts";
import type { ActionItemSource } from "@item/action/data.ts";
import type { AfflictionSource } from "@item/affliction/data.ts";
import type { AncestrySource } from "@item/ancestry/data.ts";
import type { ArmorSource } from "@item/armor/data.ts";
import type { BackgroundSource } from "@item/background/data.ts";
import type { BookSource } from "@item/book/data.ts";
import type { ClassSource } from "@item/class/data.ts";
import type { ConditionSource } from "@item/condition/data.ts";
import type { ConsumableSource } from "@item/consumable/data.ts";
import type { ContainerSource } from "@item/container/data.ts";
import type { DeitySource } from "@item/deity/data.ts";
import type { EffectSource } from "@item/effect/data.ts";
import type { EquipmentSource } from "@item/equipment/data.ts";
import type { FeatSource } from "@item/feat/data.ts";
import type { HeritageSource } from "@item/heritage/data.ts";
import type { KitSource } from "@item/kit/data.ts";
import type { LoreSource } from "@item/lore/data.ts";
import type { MeleeSource } from "@item/melee/data.ts";
import type { PhysicalItemType } from "@item/physical/types.ts";
import type { SpellSource } from "@item/spell/data.ts";
import type { SpellcastingEntrySource } from "@item/spellcasting-entry/data.ts";
import type { TreasureSource } from "@item/treasure/data.ts";
import type { WeaponSource } from "@item/weapon/data.ts";
import { PROFICIENCY_RANKS } from "@module/data.ts";

export * from "./helpers.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/module/item/equipment/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
PhysicalSystemData,
PhysicalSystemSource,
} from "@item/physical/data.ts";
import { EquipmentTrait, OtherEquipmentTag } from "./types.ts";
import type { EquipmentTrait, OtherEquipmentTag } from "./types.ts";

type EquipmentSource = BasePhysicalItemSource<"equipment", EquipmentSystemSource>;

Expand Down

0 comments on commit c3ebd23

Please sign in to comment.