@datasworn-community/build-tools 0.2.11 → 0.2.13-experimental.19.6ea45f538803
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datasworn-community/build-tools",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13-experimental.19.6ea45f538803",
|
|
4
4
|
"description": "Build and migration tools for Datasworn source packages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"yaml": "^2.9.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@datasworn-community/core": "0.2.
|
|
57
|
+
"@datasworn-community/core": "0.2.13-experimental.19.6ea45f538803"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@datasworn-community/core": "0.2.
|
|
60
|
+
"@datasworn-community/core": "0.2.13-experimental.19.6ea45f538803",
|
|
61
61
|
"json-schema": "^0.4.0",
|
|
62
62
|
"json-schema-library": "^11.6.2",
|
|
63
|
-
"type-fest": "^5.
|
|
63
|
+
"type-fest": "^5.9.0"
|
|
64
64
|
},
|
|
65
65
|
"bugs": {
|
|
66
66
|
"url": "https://github.com/datasworn-community/datasworn/issues"
|
|
@@ -59,6 +59,12 @@ const RulesPackageBase = Type.Object({
|
|
|
59
59
|
description: 'A dictionary object of truth categories.'
|
|
60
60
|
})
|
|
61
61
|
),
|
|
62
|
+
worlds: Type.Optional(
|
|
63
|
+
Generic.Dictionary(Type.Ref('World'), {
|
|
64
|
+
description:
|
|
65
|
+
'A dictionary object of named worlds and their associated setting truths.'
|
|
66
|
+
})
|
|
67
|
+
),
|
|
62
68
|
rarities: Type.Optional(
|
|
63
69
|
Generic.Dictionary(Type.Ref('Rarity'), {
|
|
64
70
|
description:
|
|
@@ -6,6 +6,24 @@ import { EntityPrompt } from './entities/EntityPrompt.js'
|
|
|
6
6
|
import * as Generic from './Generic.js'
|
|
7
7
|
import { EmbeddedOracleRollable } from './oracles/EmbeddedOracleRollable.js'
|
|
8
8
|
|
|
9
|
+
export const World = Generic.NonCollectableNode(
|
|
10
|
+
Type.Object({
|
|
11
|
+
truths: Type.Array(Type.Ref('TruthId'), {
|
|
12
|
+
minItems: 1,
|
|
13
|
+
uniqueItems: true,
|
|
14
|
+
description:
|
|
15
|
+
'The set of setting truths that make up this world, in presentation order.'
|
|
16
|
+
})
|
|
17
|
+
}),
|
|
18
|
+
'world',
|
|
19
|
+
{
|
|
20
|
+
$id: 'World',
|
|
21
|
+
description: 'A named world and its associated set of setting truths.'
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
export type World = Static<typeof World>
|
|
26
|
+
|
|
9
27
|
export type TruthOption = Static<typeof TruthOption>
|
|
10
28
|
|
|
11
29
|
export const TruthOption = Generic.IdNode(
|