input-from-script 0.1.0-alpha.4 → 0.4.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.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  <h1 align="center">input-from-script</h1>
2
2
 
3
- <p align="center"><code>create</code> input that runs a script.</p>
3
+ <p align="center">Bingo input that runs a script.</p>
4
4
 
5
5
  <p align="center">
6
- <a href="https://github.com/JoshuaKGoldberg/create/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank"><img alt="🤝 Code of Conduct: Kept" src="https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42" /></a>
7
- <a href="https://github.com/JoshuaKGoldberg/create/blob/main/LICENSE.md" target="_blank"><img alt="📝 License: MIT" src="https://img.shields.io/badge/%F0%9F%93%9D_license-MIT-21bb42.svg"></a>
6
+ <a href="https://github.com/JoshuaKGoldberg/bingo/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank"><img alt="🤝 Code of Conduct: Kept" src="https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42" /></a>
7
+ <a href="https://github.com/JoshuaKGoldberg/bingo/blob/main/LICENSE.md" target="_blank"><img alt="📝 License: MIT" src="https://img.shields.io/badge/%F0%9F%93%9D_license-MIT-21bb42.svg"></a>
8
8
  <a href="http://npmjs.com/package/input-from-script"><img alt="📦 npm version" src="https://img.shields.io/npm/v/input-from-script?color=21bb42&label=%F0%9F%93%A6%20npm" /></a>
9
- <img alt="💪 TypeScript: Strict" src="https://img.shields.io/badge/%F0%9F%92%AA_typescript-strict-21bb42.svg" />
9
+ <img alt="💪 TypeScript: Strict" src="https://img.shields.io/badge/%F0%9F%92%AA_typefetch-strict-21bb42.svg" />
10
10
  </p>
11
11
 
12
12
  ```shell
@@ -14,9 +14,9 @@ npm i input-from-script
14
14
  ```
15
15
 
16
16
  ```ts
17
- import { inputFromScript } from "input-from-script";
17
+ import { inputFromFetch } from "input-from-script";
18
18
 
19
- await take(inputFromScript, { command: "npm whoami" });
19
+ await take(inputFromFetch, { resource: "npm whoami" });
20
20
  ```
21
21
 
22
22
  ## Options
@@ -25,7 +25,7 @@ await take(inputFromScript, { command: "npm whoami" });
25
25
 
26
26
  It runs the `command` with [`execa`](https://www.npmjs.com/package/execa) and returns either:
27
27
 
28
- - `Error`: If an error was caught running the script
28
+ - [`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error): If an error was caught running the script
29
29
  - `Result`: The type from `execa`, including the `stdout` property
30
30
 
31
- See **[create-josh.vercel.app > Engine > Runtime > Inputs](https://create-josh.vercel.app/engine/runtime/inputs)** for more documentation on Inputs.
31
+ See **[create.bingo > Templates > Concepts > Inputs](https://create.bingo/build/concepts/inputs)** for more documentation on Inputs.
package/lib/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
- export declare const inputFromScript: import("create").InputWithArgs<Promise<import("execa").ExecaError<import("execa").Options> | import("execa").Result>, {
2
- command: string;
1
+ import { z } from "zod";
2
+ export declare const inputFromScript: import("bingo").InputWithArgs<Promise<import("execa").ExecaError<import("execa").Options> | import("execa").Result>, {
3
+ command: z.ZodString;
3
4
  }>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;EAO1B,CAAC"}
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createInput } from "create";
1
+ import { createInput } from "bingo";
2
2
  import { z } from "zod";
3
3
  export const inputFromScript = createInput({
4
4
  args: {
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;IAC1C,IAAI,EAAE;QACL,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACnB;IACD,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;QAC7B,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;CACD,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;IAC1C,IAAI,EAAE;QACL,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACnB;IACD,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;QAC7B,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;CACD,CAAC,CAAC"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}
package/lib/index.test.js CHANGED
@@ -1,4 +1,4 @@
1
- import { testInput } from "create-testers";
1
+ import { testInput } from "bingo-testers";
2
2
  import { describe, expect, it, vi } from "vitest";
3
3
  import { inputFromScript } from "./index.js";
4
4
  describe("inputFromScript", () => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM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AAC,eAAe,EAAE;YAC/C,IAAI,EAAE,EAAE,OAAO,EAAE;YACjB,MAAM;SACN,CAAC,CAAC;QAEH,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9B,MAAM,CAAC,MAAM,CAAC,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "input-from-script",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.4.0",
4
4
  "description": "create input that runs a script.",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "https://github.com/JoshuaKGoldberg/create",
7
+ "url": "https://github.com/JoshuaKGoldberg/bingo",
8
8
  "directory": "packages/input-from-script"
9
9
  },
10
10
  "license": "MIT",
@@ -21,13 +21,13 @@
21
21
  "README.md"
22
22
  ],
23
23
  "dependencies": {
24
- "zod": "^3.24.1"
24
+ "zod": "^3.24.2"
25
25
  },
26
26
  "devDependencies": {
27
- "create-testers": "^0.1.0-alpha.8"
27
+ "bingo-testers": "^0.4.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "create": "^0.1.0-alpha.8"
30
+ "bingo": "^0.4.0"
31
31
  },
32
32
  "engines": {
33
33
  "node": ">=18"