@omni-oss/create-jobs 0.0.1 → 0.1.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
3
+
4
+ - - -
5
+ ## @omni-oss/create-jobs-v0.1.1 - 2026-02-08
6
+ #### Bug Fixes
7
+ - (**@omni-oss/set-version**) add shebang - (f972dec) - Clarence Manuel
8
+
9
+ - - -
10
+
11
+ ## @omni-oss/create-jobs-v0.1.0 - 2026-02-07
12
+ #### Features
13
+ - (**@omni-oss/create-jobs**) implement create-jobs script - (81cc8cf) - Clarence Manuel
14
+ #### Miscellaneous Chores
15
+ - (**@omni-oss/create-jobs**) bump version [skip ci] - (8767a1c) - Clarence Manuel
16
+
17
+ - - -
18
+
19
+ Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto).
@@ -0,0 +1,15 @@
1
+ import s from "node:fs/promises";
2
+ import { Command as c } from "@commander-js/extra-typings";
3
+ import { T as u, c as l } from "./utils-CSiXyoWV.mjs";
4
+ const p = new c();
5
+ p.argument("<input>", "The input file to read from.").option("-o, --output <output>", "The output file to write to.").action(async (r, e) => {
6
+ const a = await s.readFile(r, "utf-8"), i = JSON.parse(a), t = u.safeParse(i);
7
+ if (t.success) {
8
+ const n = t.data, o = l(n);
9
+ e.output ? await s.writeFile(
10
+ e.output,
11
+ JSON.stringify(o, null, 2)
12
+ ) : console.log(o);
13
+ } else
14
+ console.error(t.error), process.exit(1);
15
+ }).parseAsync();
@@ -1,2 +1,3 @@
1
+ #!/usr/bin/env bun
1
2
  export {};
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1,2 @@
1
- "use strict";const o=require("node:fs/promises"),c=require("@commander-js/extra-typings"),r=require("./utils-DeP5M93O.js"),l=new c.Command;l.argument("<input>","The input file to read from.").option("-o, --output <output>","The output file to write to.").action(async(n,t)=>{const u=await o.readFile(n,"utf-8"),a=JSON.parse(u),e=r.TaskResultArraySchema.safeParse(a);if(e.success){const i=e.data,s=r.createJobs(i);t.output?await o.writeFile(t.output,JSON.stringify(s,null,2)):console.log(s)}else console.error(e.error),process.exit(1)}).parseAsync();
1
+ #!/usr/bin/env bun
2
+ "use strict";const o=require("node:fs/promises"),c=require("@commander-js/extra-typings"),r=require("./utils-DeP5M93O.js"),l=new c.Command;l.argument("<input>","The input file to read from.").option("-o, --output <output>","The output file to write to.").action(async(n,t)=>{const u=await o.readFile(n,"utf-8"),i=JSON.parse(u),e=r.TaskResultArraySchema.safeParse(i);if(e.success){const a=e.data,s=r.createJobs(a);t.output?await o.writeFile(t.output,JSON.stringify(s,null,2)):console.log(s)}else console.error(e.error),process.exit(1)}).parseAsync();
@@ -1,11 +1,12 @@
1
+ #!/usr/bin/env bun
1
2
  import s from "node:fs/promises";
2
- import { Command as c } from "@commander-js/extra-typings";
3
- import { T as u, c as l } from "./utils-CSiXyoWV.mjs";
4
- const p = new c();
3
+ import { Command as u } from "@commander-js/extra-typings";
4
+ import { T as c, c as l } from "./utils-CSiXyoWV.mjs";
5
+ const p = new u();
5
6
  p.argument("<input>", "The input file to read from.").option("-o, --output <output>", "The output file to write to.").action(async (r, e) => {
6
- const a = await s.readFile(r, "utf-8"), i = JSON.parse(a), t = u.safeParse(i);
7
+ const a = await s.readFile(r, "utf-8"), n = JSON.parse(a), t = c.safeParse(n);
7
8
  if (t.success) {
8
- const n = t.data, o = l(n);
9
+ const i = t.data, o = l(i);
9
10
  e.output ? await s.writeFile(
10
11
  e.output,
11
12
  JSON.stringify(o, null, 2)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omni-oss/create-jobs",
3
- "version": "0.0.1",
3
+ "version": "0.1.1",
4
4
  "bin": "./dist/create-jobs.mjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -24,11 +24,11 @@
24
24
  "@commander-js/extra-typings": "14.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@omni-oss/tsconfig": "^0.1.0",
27
+ "@omni-oss/tsconfig": "^0.1.1",
28
28
  "@omni-oss/vite-config": "^0.1.0",
29
29
  "@omni-oss/vitest-config": "^0.0.0",
30
30
  "typescript": "^5.9.3",
31
31
  "@types/node": "25.2.0",
32
32
  "@types/bun": "^1.3.8"
33
33
  }
34
- }
34
+ }
package/src/cli/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env bun
1
2
  import fsAsync from "node:fs/promises";
2
3
  import { Command } from "@commander-js/extra-typings";
3
4
  import { createJobs, TaskResultArraySchema } from "..";