input-from-file-json 0.1.0-alpha.3 → 0.1.0-alpha.4

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/README.md +5 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -23,4 +23,9 @@ await take(inputFromFileJSON, { filePath: "data.json" });
23
23
 
24
24
  `inputFromFileJSON` takes a single argument, `filePath`, of type `string`.
25
25
 
26
+ It reads the `filePath` from disk and returns either:
27
+
28
+ - `Error`: If an error was caught reading or parsing the file
29
+ - `unknown`: The result of running `JSON.parse` on the file's text contents
30
+
26
31
  See **[create-josh.vercel.app > Engine > Runtime > Inputs](https://create-josh.vercel.app/engine/runtime/inputs)** for more documentation on Inputs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "input-from-file-json",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.1.0-alpha.4",
4
4
  "description": "create input that reads a file as JSON.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,13 +22,13 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "zod": "^3.24.1",
25
- "input-from-file": "0.1.0-alpha.3"
25
+ "input-from-file": "^0.1.0-alpha.4"
26
26
  },
27
27
  "devDependencies": {
28
- "create-testers": "0.1.0-alpha.7"
28
+ "create-testers": "^0.1.0-alpha.8"
29
29
  },
30
30
  "peerDependencies": {
31
- "create": "0.1.0-alpha.7"
31
+ "create": "^0.1.0-alpha.8"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=18"