@7h3laughingman/pf2e-helpers 7.10.12 → 7.10.14
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.
|
@@ -3,8 +3,10 @@ export * from "./check.js";
|
|
|
3
3
|
export * from "./damage.js";
|
|
4
4
|
export * from "./distance.js";
|
|
5
5
|
export * from "./foundry-helpers.js";
|
|
6
|
+
export * from "./item.js";
|
|
6
7
|
export * from "./notes.js";
|
|
7
8
|
export * from "./roll.js";
|
|
9
|
+
export * from "./rules.js";
|
|
8
10
|
export * from "./scene.js";
|
|
9
11
|
export * from "./system.js";
|
|
10
12
|
export * from "./token.js";
|
package/dist/utilities/index.js
CHANGED
|
@@ -3,8 +3,10 @@ export * from "./check.js";
|
|
|
3
3
|
export * from "./damage.js";
|
|
4
4
|
export * from "./distance.js";
|
|
5
5
|
export * from "./foundry-helpers.js";
|
|
6
|
+
export * from "./item.js";
|
|
6
7
|
export * from "./notes.js";
|
|
7
8
|
export * from "./roll.js";
|
|
9
|
+
export * from "./rules.js";
|
|
8
10
|
export * from "./scene.js";
|
|
9
11
|
export * from "./system.js";
|
|
10
12
|
export * from "./token.js";
|
package/dist/utilities/rules.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { zChoiceSetSource } from "
|
|
2
|
-
import { zTokenMarkSource } from "
|
|
3
|
-
import { zIs } from "
|
|
1
|
+
import { zChoiceSetSource } from "../zod/rules/choice-set.js";
|
|
2
|
+
import { zTokenMarkSource } from "../zod/rules/token-mark.js";
|
|
3
|
+
import { zIs } from "../zod/type-guards.js";
|
|
4
4
|
export function getChoiceSetSelection(itemSource, { flag } = {}) {
|
|
5
5
|
return itemSource.system.rules
|
|
6
6
|
.filter((rule) => zIs(rule, zChoiceSetSource))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7h3laughingman/pf2e-helpers",
|
|
3
|
-
"version": "7.10.
|
|
3
|
+
"version": "7.10.14",
|
|
4
4
|
"description": "Basic helpers used for developed modules for the PF2e/SF2e system.",
|
|
5
5
|
"homepage": "https://github.com/7H3LaughingMan/pf2e-helpers#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -19,15 +19,11 @@
|
|
|
19
19
|
"./utilities": "./dist/utilities/index.js",
|
|
20
20
|
"./zod": "./dist/zod/index.js"
|
|
21
21
|
},
|
|
22
|
-
"imports": {
|
|
23
|
-
"#utilities/*": "./src/utilities/*",
|
|
24
|
-
"#zod/*": "./src/zod/*"
|
|
25
|
-
},
|
|
26
22
|
"files": [
|
|
27
23
|
"./dist/*"
|
|
28
24
|
],
|
|
29
25
|
"scripts": {
|
|
30
|
-
"
|
|
26
|
+
"build": "tsc && tsc-alias",
|
|
31
27
|
"copyfiles": "copyfiles src/**/*.js src/**/*.d.ts dist -u 1",
|
|
32
28
|
"eslint": "eslint src",
|
|
33
29
|
"eslint:fix": "eslint src --fix && prettier src --write",
|
|
@@ -50,6 +46,7 @@
|
|
|
50
46
|
"lint-staged": "^16.2.7",
|
|
51
47
|
"native-copyfiles": "^2.0.1",
|
|
52
48
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
49
|
+
"tsc-alias": "^1.8.16",
|
|
53
50
|
"typescript": "5.9.3",
|
|
54
51
|
"typescript-eslint": "^8.56.1"
|
|
55
52
|
},
|