@oidoid/void 0.1.0 → 0.1.2
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.0+20251227.1060661.html → void-v0.1.2+20260102.6a74610.html} +4 -4
- package/dist/src/demo/tsconfig.json +4 -2
- package/dist/src/tsconfig.json +4 -2
- 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 +1 -0
- package/dist/tools/bundle/bundle.js.map +1 -1
- package/dist/tools/tsconfig.json +7 -3
- 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 +2 -0
- package/dist/tools/types/config.d.ts.map +1 -1
- package/dist/tools/types/config.js +1 -0
- 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 +9 -12
- package/dist/tools/tsconfig-base.json +0 -48
package/package.json
CHANGED
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@biomejs/biome": "2.3.10",
|
|
9
9
|
"esbuild": "0.27.2",
|
|
10
|
-
"jsdom": "27.
|
|
11
|
-
"mem-font": "11.0.0-
|
|
10
|
+
"jsdom": "27.4.0",
|
|
11
|
+
"mem-font": "11.0.0-10"
|
|
12
12
|
},
|
|
13
13
|
"description": "basic 2D game library.",
|
|
14
14
|
"devDependencies": {
|
|
15
|
+
"@oidoid/config": "0.0.3",
|
|
15
16
|
"@types/jsdom": "27.0.0",
|
|
16
17
|
"@types/node": "24.4.0",
|
|
17
18
|
"typescript": "5.9.3"
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"publishConfig": {
|
|
39
40
|
"access": "public"
|
|
40
41
|
},
|
|
41
|
-
"published": "
|
|
42
|
+
"published": "20260102",
|
|
42
43
|
"repository": {
|
|
43
44
|
"type": "git",
|
|
44
45
|
"url": "git+https://github.com/oidoid/void.git"
|
|
@@ -47,18 +48,14 @@
|
|
|
47
48
|
"build": "tsc --build && chmod +x dist/tools/void.js && npm run build:favicon && npm run build:demo -- --minify --one-file",
|
|
48
49
|
"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",
|
|
49
50
|
"build:demo": "tools/void.ts --config=src/demo/void.json",
|
|
50
|
-
"
|
|
51
|
-
"clean": "rm -rf dist",
|
|
52
|
-
"format": "npm run linter -- --fix",
|
|
53
|
-
"lint": "npm run linter",
|
|
54
|
-
"linter": "biome check --error-on-warnings",
|
|
51
|
+
"clean": "rm -rf dist/",
|
|
55
52
|
"preversion": "[ -z \"$(git status -z)\" ]",
|
|
56
53
|
"prepublishOnly": "! git symbolic-ref --quiet HEAD || git push --follow-tags origin \"$(git branch --show-current)\"",
|
|
57
|
-
"start": "
|
|
58
|
-
"test": "
|
|
59
|
-
"test:unit": "sh -c 'node --experimental-test-coverage --test ${@:-$(find src schema tools -name \\*.test.ts -printf %p\\ )}' --",
|
|
54
|
+
"start": "tsc --build --preserveWatchOutput --watch& npm run build:favicon && npm run build:demo -- --watch& wait",
|
|
55
|
+
"test": "lint && npm run test:unit && npm run build",
|
|
56
|
+
"test:unit": "sh -c 'node --experimental-test-coverage --test ${@:-$(find src/ schema/ tools/ -name \\*.test.ts -printf %p\\ )}' --",
|
|
60
57
|
"version": "npm pkg set published=$(date +%Y%m%d) && npm run clean && npm test"
|
|
61
58
|
},
|
|
62
59
|
"type": "module",
|
|
63
|
-
"version": "0.1.
|
|
60
|
+
"version": "0.1.2"
|
|
64
61
|
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// TypeScript config defaults for each sub-project (src, test, etc).
|
|
2
|
-
{
|
|
3
|
-
"$schema": "https://json.schemastore.org/tsconfig.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
// enable incremental builds.
|
|
6
|
-
"composite": true,
|
|
7
|
-
// enable type-stripping.
|
|
8
|
-
"allowImportingTsExtensions": true,
|
|
9
|
-
// only allow type-strippable syntax.
|
|
10
|
-
"erasableSyntaxOnly": true,
|
|
11
|
-
// maximize type checking.
|
|
12
|
-
"allowUnreachableCode": false,
|
|
13
|
-
"allowUnusedLabels": false,
|
|
14
|
-
"forceConsistentCasingInFileNames": true,
|
|
15
|
-
"noImplicitOverride": true,
|
|
16
|
-
"noUncheckedIndexedAccess": true,
|
|
17
|
-
"noUncheckedSideEffectImports": true,
|
|
18
|
-
"noUnusedLocals": true,
|
|
19
|
-
"resolveJsonModule": true,
|
|
20
|
-
"strict": true,
|
|
21
|
-
// projects add types as needed.
|
|
22
|
-
"lib": ["ES2024", "ESNext.disposable"],
|
|
23
|
-
"types": [],
|
|
24
|
-
"isolatedDeclarations": true, // require explicit types.
|
|
25
|
-
// improve compatibility with compilers that aren't type system aware.
|
|
26
|
-
"isolatedModules": true,
|
|
27
|
-
"esModuleInterop": true, // use ESM.
|
|
28
|
-
// allow JSON type-checking and imports.
|
|
29
|
-
"module": "ESNext",
|
|
30
|
-
"moduleResolution": "Bundler",
|
|
31
|
-
"rewriteRelativeImportExtensions": true, // rewrite .ts imports to .js.
|
|
32
|
-
// all subprojects output to dist/ relative the project root.
|
|
33
|
-
"outDir": "../dist",
|
|
34
|
-
"rootDir": "..",
|
|
35
|
-
// assume library types are checked and compatible.
|
|
36
|
-
"skipLibCheck": true,
|
|
37
|
-
"skipDefaultLibCheck": true,
|
|
38
|
-
"sourceMap": true,
|
|
39
|
-
"declarationMap": true, // map back to original sources, not .d.ts.
|
|
40
|
-
"target": "ES2024",
|
|
41
|
-
// don't transform type-only imports.
|
|
42
|
-
"verbatimModuleSyntax": true
|
|
43
|
-
},
|
|
44
|
-
// include all sources and JSON.
|
|
45
|
-
"include": ["${configDir}/", "${configDir}/**/*.json"],
|
|
46
|
-
// exclude colocated tests and test utils.
|
|
47
|
-
"exclude": ["${configDir}/**/*.test.*", "${configDir}/**/test/"]
|
|
48
|
-
}
|