@vttforge/cli 0.17.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +81 -0
- package/dist/bin.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-wuBV0ItE.mjs → src-DZoPlpQk.mjs} +53 -15
- package/dist/src-DZoPlpQk.mjs.map +1 -0
- package/lint/vttforge-biome.json +3 -0
- package/package.json +1 -1
- package/templates/module-js/.github/workflows/release.yml +9 -22
- package/templates/module-js/package.json +3 -3
- package/templates/module-ts/.github/workflows/release.yml +9 -22
- package/templates/module-ts/README.md +3 -2
- package/templates/module-ts/package.json +4 -3
- package/templates/module-ts/scripts/foundry-globals.d.ts +61 -0
- package/templates/module-ts/scripts/main.ts +0 -1
- package/templates/module-ts/scripts/sheets/note-sheet.ts +16 -17
- package/templates/system-js/.github/workflows/release.yml +9 -22
- package/templates/system-js/package.json +3 -3
- package/templates/system-ts/.github/workflows/release.yml +9 -22
- package/templates/system-ts/README.md +3 -2
- package/templates/system-ts/package.json +4 -3
- package/templates/system-ts/scripts/foundry-globals.d.ts +61 -0
- package/templates/system-ts/scripts/main.ts +0 -1
- package/templates/system-ts/scripts/sheets/character-sheet.ts +18 -34
- package/templates/system-ts/scripts/sheets/gear-sheet.ts +13 -11
- package/dist/src-wuBV0ItE.mjs.map +0 -1
- package/templates/module-ts/scripts/foundry-globals.ts +0 -28
- package/templates/system-ts/scripts/foundry-globals.ts +0 -42
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minimal Foundry runtime globals.
|
|
3
|
-
*
|
|
4
|
-
* These declarations let the scaffold compile cleanly without an external
|
|
5
|
-
* type package. Replace with `fvtt-types` (community-maintained, pinned to
|
|
6
|
-
* a known-working commit SHA) or `@vttforge/types` (coming in a later
|
|
7
|
-
* VTTForge release) for full type coverage.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* `var`, not `const`. Two `declare global` blocks naming the same global have
|
|
12
|
-
* to merge, and only `var` merges. A `const` here collides with the identical
|
|
13
|
-
* declaration `@vttforge/testing` ships, and `tsc` stops with TS2451.
|
|
14
|
-
*/
|
|
15
|
-
declare global {
|
|
16
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
17
|
-
var game: any;
|
|
18
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
19
|
-
var CONFIG: any;
|
|
20
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
21
|
-
var Hooks: any;
|
|
22
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
23
|
-
var ui: any;
|
|
24
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
25
|
-
var foundry: any;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minimal Foundry runtime globals.
|
|
3
|
-
*
|
|
4
|
-
* These declarations let the scaffold compile cleanly without an external
|
|
5
|
-
* type package. Replace with `fvtt-types` (community-maintained, pinned to
|
|
6
|
-
* a known-working commit SHA) or `@vttforge/types` (coming in a later
|
|
7
|
-
* VTTForge release) for full type coverage:
|
|
8
|
-
*
|
|
9
|
-
* pnpm add -D 'github:League-of-Foundry-Developers/foundry-vtt-types#main'
|
|
10
|
-
*
|
|
11
|
-
* Then declare `types: ["fvtt-types"]` in `tsconfig.json` and delete this
|
|
12
|
-
* file.
|
|
13
|
-
*/
|
|
14
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* `var`, not `const`. Two `declare global` blocks naming the same global have
|
|
18
|
-
* to merge, and only `var` merges. A `const` here collides with the identical
|
|
19
|
-
* declaration `@vttforge/testing` ships, and `tsc` stops with TS2451.
|
|
20
|
-
*/
|
|
21
|
-
declare global {
|
|
22
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
23
|
-
var game: any;
|
|
24
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
25
|
-
var CONFIG: any;
|
|
26
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
27
|
-
var Hooks: any;
|
|
28
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
29
|
-
var ui: any;
|
|
30
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
31
|
-
var ChatMessage: any;
|
|
32
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
33
|
-
var Roll: any;
|
|
34
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
35
|
-
var foundry: any;
|
|
36
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
37
|
-
var _del: any;
|
|
38
|
-
// biome-ignore lint/suspicious/noExplicitAny: stub declarations only
|
|
39
|
-
var _replace: any;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export {};
|