@puzzmo/cli 1.0.63 → 1.0.65
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/lib/commands/upload.js
CHANGED
|
@@ -311,7 +311,7 @@ const maybeCreateMissingGame = async (err, game, opts) => {
|
|
|
311
311
|
};
|
|
312
312
|
/**
|
|
313
313
|
* Warns when dist/index.html loads its JS via absolute URLs. Games are served from a per-version subpath
|
|
314
|
-
* (e.g.
|
|
314
|
+
* (e.g. puzzmo-game-assets.com/assets/<hash>/...), so a "/assets/foo.js" src resolves to the host root and 404s.
|
|
315
315
|
* The fix is a relative base — e.g. `base: "./"` in vite.config.ts — so srcs become "./assets/foo.js".
|
|
316
316
|
*/
|
|
317
317
|
const warnAboutAbsoluteScriptURLs = (distDir) => {
|
package/package.json
CHANGED
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"properties": {
|
|
132
132
|
"userAggregateStatStableID": {
|
|
133
133
|
"type": "string",
|
|
134
|
-
"description": "The stableID from userAggregateStats to display.
|
|
134
|
+
"description": "The stableID from userAggregateStats to display. Matched verbatim, so it must be identical to the stat's stableID."
|
|
135
135
|
},
|
|
136
136
|
"formatString": {
|
|
137
137
|
"type": "string",
|
package/src/commands/upload.ts
CHANGED
|
@@ -387,7 +387,7 @@ const maybeCreateMissingGame = async (
|
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
389
|
* Warns when dist/index.html loads its JS via absolute URLs. Games are served from a per-version subpath
|
|
390
|
-
* (e.g.
|
|
390
|
+
* (e.g. puzzmo-game-assets.com/assets/<hash>/...), so a "/assets/foo.js" src resolves to the host root and 404s.
|
|
391
391
|
* The fix is a relative base — e.g. `base: "./"` in vite.config.ts — so srcs become "./assets/foo.js".
|
|
392
392
|
*/
|
|
393
393
|
const warnAboutAbsoluteScriptURLs = (distDir: string): void => {
|