create-typescript-app 2.18.5 → 2.19.0

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.
@@ -15,6 +15,7 @@ declare const blockVitest: bingo_stratum.BlockWithAddons<{
15
15
  exclude?: string[] | undefined;
16
16
  include?: string[] | undefined;
17
17
  };
18
+ flags: string[];
18
19
  }, {
19
20
  access: "public" | "restricted";
20
21
  description: string;
@@ -24,7 +24,8 @@ const blockVitest = base.createBlock({
24
24
  exclude: z.array(z.string()).optional(),
25
25
  include: z.array(z.string()).optional()
26
26
  }).default({}),
27
- exclude: z.array(z.string()).default([])
27
+ exclude: z.array(z.string()).default([]),
28
+ flags: z.array(z.string()).default([])
28
29
  },
29
30
  produce({ addons }) {
30
31
  const { actionSteps, coverage, exclude = [] } = addons;
@@ -148,7 +149,7 @@ describe(greet, () => {
148
149
  "vitest"
149
150
  ),
150
151
  scripts: {
151
- test: "vitest"
152
+ test: `vitest ${addons.flags.join(" ")}`.trim()
152
153
  }
153
154
  }
154
155
  }),
@@ -2974,6 +2974,7 @@ declare const blocks: {
2974
2974
  exclude?: string[] | undefined;
2975
2975
  include?: string[] | undefined;
2976
2976
  };
2977
+ flags: string[];
2977
2978
  }, {
2978
2979
  access: "public" | "restricted";
2979
2980
  description: string;
@@ -1,5 +1,5 @@
1
1
  var name = "create-typescript-app";
2
- var version = "2.18.4";
2
+ var version = "2.18.6";
3
3
  var description = "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁";
4
4
  var repository = {
5
5
  type: "git",
@@ -1,5 +1,6 @@
1
+ import { fileURLToPath } from "node:url";
1
2
  function resolveBin(bin) {
2
- return import.meta.resolve(bin).replace(/^file:\/\//gu, "");
3
+ return fileURLToPath(import.meta.resolve(bin));
3
4
  }
4
5
  export {
5
6
  resolveBin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "2.18.5",
3
+ "version": "2.19.0",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
5
5
  "repository": {
6
6
  "type": "git",