@puzzmo/cli 1.0.64 → 1.0.66
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 +1 -1
- package/package.json +1 -1
- package/src/commands/upload.ts +1 -1
- package/vitest.config.mts +6 -1
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
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 => {
|
package/vitest.config.mts
CHANGED
|
@@ -3,5 +3,10 @@ import { defineConfig } from "vitest/config"
|
|
|
3
3
|
// Only run TypeScript sources; the build compiles into lib/ and we must not
|
|
4
4
|
// re-run the compiled .test.js copies (they can't resolve the __fixtures__ files).
|
|
5
5
|
export default defineConfig({
|
|
6
|
-
test: {
|
|
6
|
+
test: {
|
|
7
|
+
include: ["src/**/*.test.ts"],
|
|
8
|
+
// Quiet output: console only shown for failing tests, no redrawn task summary
|
|
9
|
+
silent: "passed-only",
|
|
10
|
+
reporters: [["default", { summary: false }]],
|
|
11
|
+
},
|
|
7
12
|
})
|