@oidoid/void 0.1.1 → 0.1.3
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/dist/public/index.js +3 -3
- package/dist/public/index.js.map +1 -1
- package/dist/public/{void-v0.1.1+20260101.ee4713d.html → void-v0.1.3+20260102.a328630.html} +4 -4
- package/dist/src/types/json.d.ts +1 -1
- package/dist/src/types/json.d.ts.map +1 -1
- package/dist/tools/bundle/bundle.d.ts.map +1 -1
- package/dist/tools/bundle/bundle.js +2 -0
- package/dist/tools/bundle/bundle.js.map +1 -1
- package/dist/tools/types/config-file.js +6 -6
- package/dist/tools/types/config-file.js.map +1 -1
- package/dist/tools/types/config.d.ts +11 -1
- package/dist/tools/types/config.d.ts.map +1 -1
- package/dist/tools/types/config.js +30 -2
- package/dist/tools/types/config.js.map +1 -1
- package/dist/tools/void.d.ts +5 -0
- package/dist/tools/void.d.ts.map +1 -1
- package/dist/tools/void.js.map +1 -1
- package/package.json +7 -5
- package/readme.md +19 -0
package/package.json
CHANGED
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
"node": ">=24.0"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
|
-
".":
|
|
24
|
+
".": {
|
|
25
|
+
"dev": "./src/index.ts",
|
|
26
|
+
"default": "./dist/src/index.js"
|
|
27
|
+
}
|
|
25
28
|
},
|
|
26
29
|
"files": [
|
|
27
30
|
"dist/",
|
|
@@ -39,7 +42,7 @@
|
|
|
39
42
|
"publishConfig": {
|
|
40
43
|
"access": "public"
|
|
41
44
|
},
|
|
42
|
-
"published": "
|
|
45
|
+
"published": "20260102",
|
|
43
46
|
"repository": {
|
|
44
47
|
"type": "git",
|
|
45
48
|
"url": "git+https://github.com/oidoid/void.git"
|
|
@@ -48,15 +51,14 @@
|
|
|
48
51
|
"build": "tsc --build && chmod +x dist/tools/void.js && npm run build:favicon && npm run build:demo -- --minify --one-file",
|
|
49
52
|
"build:favicon": "for s in 1 2 3 4 12; do f=dist/public/favicon/favicon$(($s * 16)); aseprite src/demo/assets/favicon.aseprite --batch --color-mode=indexed --scale=$s --save-as=$f.png && cwebp -exact -lossless -mt -quiet -z 9 $f.png -o $f.webp; done",
|
|
50
53
|
"build:demo": "tools/void.ts --config=src/demo/void.json",
|
|
51
|
-
"build:watch": "tsc --build --watch",
|
|
52
54
|
"clean": "rm -rf dist/",
|
|
53
55
|
"preversion": "[ -z \"$(git status -z)\" ]",
|
|
54
56
|
"prepublishOnly": "! git symbolic-ref --quiet HEAD || git push --follow-tags origin \"$(git branch --show-current)\"",
|
|
55
|
-
"start": "
|
|
57
|
+
"start": "tsc --build --preserveWatchOutput --watch& npm run build:favicon && npm run build:demo -- --watch& wait",
|
|
56
58
|
"test": "lint && npm run test:unit && npm run build",
|
|
57
59
|
"test:unit": "sh -c 'node --experimental-test-coverage --test ${@:-$(find src/ schema/ tools/ -name \\*.test.ts -printf %p\\ )}' --",
|
|
58
60
|
"version": "npm pkg set published=$(date +%Y%m%d) && npm run clean && npm test"
|
|
59
61
|
},
|
|
60
62
|
"type": "module",
|
|
61
|
-
"version": "0.1.
|
|
63
|
+
"version": "0.1.3"
|
|
62
64
|
}
|
package/readme.md
CHANGED
|
@@ -15,6 +15,25 @@ npm install --save @oidoid/void
|
|
|
15
15
|
|
|
16
16
|
## Development
|
|
17
17
|
|
|
18
|
+
### Local Development
|
|
19
|
+
|
|
20
|
+
1. clone void as a sibling directory of the game.
|
|
21
|
+
2. `npm link ../void` from the game.
|
|
22
|
+
3. add `customConditions` to the root `tsconfig` for esbuild and a void reference for tsc. Eg:
|
|
23
|
+
|
|
24
|
+
```jsonc
|
|
25
|
+
{
|
|
26
|
+
"extends": "./tsconfig.prod.json",
|
|
27
|
+
"compilerOptions": {
|
|
28
|
+
"customConditions": ["dev"],
|
|
29
|
+
},
|
|
30
|
+
"references": [{"path": "../void"}]
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
it's possible to use `"paths": {"@oidoid/void": ["../void/src"]}` instead of or in addition to `customConditions`.
|
|
35
|
+
4. for unit tests, run with `NODE_OPTIONS=--conditions=development`.
|
|
36
|
+
|
|
18
37
|
### Declaration Merging
|
|
19
38
|
|
|
20
39
|
to avoid threading template parameters throughout all code, declaration merging is used for the following:
|