qunitx-cli 0.9.7 → 0.9.9

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.
Files changed (2) hide show
  1. package/dist/cli.js +11 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -190,7 +190,15 @@ async function readBoilerplate(relativePath) {
190
190
  const sea = await import("node:sea").catch(() => null);
191
191
  if (sea?.isSea()) return sea.getAsset(relativePath, "utf8");
192
192
  const __dirname = dirname(fileURLToPath(import.meta.url));
193
- return (await fs2.readFile(join2(__dirname, "../../templates", relativePath))).toString();
193
+ for (const base of ["../templates", "../../templates"]) {
194
+ try {
195
+ return (await fs2.readFile(join2(__dirname, base, relativePath))).toString();
196
+ } catch {
197
+ }
198
+ }
199
+ throw new Error(
200
+ `qunitx-cli: template "${relativePath}" not found \u2014 try reinstalling the package.`
201
+ );
194
202
  }
195
203
  var init_read_boilerplate = __esm({
196
204
  "lib/utils/read-boilerplate.ts"() {
@@ -1554,7 +1562,7 @@ init_color();
1554
1562
  var package_default = {
1555
1563
  name: "qunitx-cli",
1556
1564
  type: "module",
1557
- version: "0.9.7",
1565
+ version: "0.9.9",
1558
1566
  description: "Browser runner for QUnitx: run your qunitx tests in google-chrome",
1559
1567
  author: "Izel Nakri",
1560
1568
  license: "MIT",
@@ -1598,7 +1606,7 @@ var package_default = {
1598
1606
  },
1599
1607
  repository: {
1600
1608
  type: "git",
1601
- url: "https://github.com/izelnakri/qunitx-cli.git"
1609
+ url: "git+https://github.com/izelnakri/qunitx-cli.git"
1602
1610
  },
1603
1611
  dependencies: {
1604
1612
  esbuild: "^0.27.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "qunitx-cli",
3
3
  "type": "module",
4
- "version": "0.9.7",
4
+ "version": "0.9.9",
5
5
  "description": "Browser runner for QUnitx: run your qunitx tests in google-chrome",
6
6
  "author": "Izel Nakri",
7
7
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",
48
- "url": "https://github.com/izelnakri/qunitx-cli.git"
48
+ "url": "git+https://github.com/izelnakri/qunitx-cli.git"
49
49
  },
50
50
  "dependencies": {
51
51
  "esbuild": "^0.27.3",