create-vimp-game 0.2.0 → 0.2.1
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
|
@@ -12,7 +12,6 @@ import { rangeToPattern } from './lib/rangeToPattern.js';
|
|
|
12
12
|
// asset steps: it hashes what they produced.
|
|
13
13
|
// Run: node scripts/build-game-manifest.js (build:manifest)
|
|
14
14
|
|
|
15
|
-
const packageJsonPath = fileURLToPath(new URL('../package.json', import.meta.url));
|
|
16
15
|
const distPath = fileURLToPath(new URL('../dist/', import.meta.url));
|
|
17
16
|
const assetsPath = path.join(distPath, 'assets');
|
|
18
17
|
const mapsPath = path.join(distPath, 'maps');
|
|
@@ -55,13 +54,6 @@ const version = createHash('sha256')
|
|
|
55
54
|
.digest('hex')
|
|
56
55
|
.slice(0, 16);
|
|
57
56
|
|
|
58
|
-
// The npm version of this package. `version` above is a bundle hash — useful
|
|
59
|
-
// to the engine, meaningless to a player; this is what the engine shows in
|
|
60
|
-
// the #auth footer.
|
|
61
|
-
const { version: packageVersion } = JSON.parse(
|
|
62
|
-
fs.readFileSync(packageJsonPath, 'utf8'),
|
|
63
|
-
);
|
|
64
|
-
|
|
65
57
|
const mapNames = fs
|
|
66
58
|
.readdirSync(mapsPath)
|
|
67
59
|
.filter(name => name.endsWith('.json'))
|
|
@@ -163,7 +155,6 @@ const manifest = {
|
|
|
163
155
|
id: '{{GAME_ID}}',
|
|
164
156
|
engineApi: ENGINE_API_VERSION,
|
|
165
157
|
version,
|
|
166
|
-
packageVersion,
|
|
167
158
|
title: '{{GAME_TITLE}}',
|
|
168
159
|
entries: {
|
|
169
160
|
client: `/games/{{GAME_ID}}/${clientFile}`,
|