bingo-systems 0.4.0 → 0.4.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.
Files changed (87) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/lib/createOfflineFetchers.d.ts +0 -2
  4. package/lib/createOfflineFetchers.js +0 -7
  5. package/lib/createOfflineFetchers.js.map +0 -1
  6. package/lib/createOfflineFetchers.test.d.ts +0 -1
  7. package/lib/createOfflineFetchers.test.js +0 -9
  8. package/lib/createOfflineFetchers.test.js.map +0 -1
  9. package/lib/createReadingFileSystem.d.ts +0 -3
  10. package/lib/createReadingFileSystem.d.ts.map +0 -1
  11. package/lib/createReadingFileSystem.js +0 -8
  12. package/lib/createReadingFileSystem.js.map +0 -1
  13. package/lib/createSystemDisplay.d.ts +0 -2
  14. package/lib/createSystemDisplay.js +0 -13
  15. package/lib/createSystemDisplay.js.map +0 -1
  16. package/lib/createSystemFetchers copy.d.ts +0 -6
  17. package/lib/createSystemFetchers copy.js +0 -11
  18. package/lib/createSystemFetchers copy.js.map +0 -1
  19. package/lib/createSystemFetchers.d.ts +0 -7
  20. package/lib/createSystemFetchers.d.ts.map +0 -1
  21. package/lib/createSystemFetchers.js +0 -11
  22. package/lib/createSystemFetchers.js.map +0 -1
  23. package/lib/createSystemFetchersOffline copy.d.ts +0 -2
  24. package/lib/createSystemFetchersOffline copy.js +0 -7
  25. package/lib/createSystemFetchersOffline copy.js.map +0 -1
  26. package/lib/createSystemFetchersOffline.d.ts +0 -3
  27. package/lib/createSystemFetchersOffline.d.ts.map +0 -1
  28. package/lib/createSystemFetchersOffline.js +0 -7
  29. package/lib/createSystemFetchersOffline.js.map +0 -1
  30. package/lib/createSystemFetchersOffline.test.d.ts +0 -2
  31. package/lib/createSystemFetchersOffline.test.d.ts.map +0 -1
  32. package/lib/createSystemFetchersOffline.test.js +0 -9
  33. package/lib/createSystemFetchersOffline.test.js.map +0 -1
  34. package/lib/createSystemFetchersWithAuth.d.ts +0 -4
  35. package/lib/createSystemFetchersWithAuth.d.ts.map +0 -1
  36. package/lib/createSystemFetchersWithAuth.js +0 -10
  37. package/lib/createSystemFetchersWithAuth.js.map +0 -1
  38. package/lib/createSystemRunner.d.ts +0 -3
  39. package/lib/createSystemRunner.d.ts.map +0 -1
  40. package/lib/createSystemRunner.js +0 -6
  41. package/lib/createSystemRunner.js.map +0 -1
  42. package/lib/createWritingFileSystem.d.ts +0 -8
  43. package/lib/createWritingFileSystem.d.ts.map +0 -1
  44. package/lib/createWritingFileSystem.js +0 -12
  45. package/lib/createWritingFileSystem.js.map +0 -1
  46. package/lib/createWritingFileSystem.test.d.ts +0 -2
  47. package/lib/createWritingFileSystem.test.d.ts.map +0 -1
  48. package/lib/createWritingFileSystem.test.js +0 -46
  49. package/lib/createWritingFileSystem.test.js.map +0 -1
  50. package/lib/fetchers/fetchers.d.ts +0 -6
  51. package/lib/fetchers/fetchers.d.ts.map +0 -1
  52. package/lib/fetchers/fetchers.js +0 -2
  53. package/lib/fetchers/fetchers.js.map +0 -1
  54. package/lib/files/fs.d.ts +0 -20
  55. package/lib/files/fs.d.ts.map +0 -1
  56. package/lib/files/fs.js +0 -2
  57. package/lib/files/fs.js.map +0 -1
  58. package/lib/fs/createReadingFileSystem.d.ts +0 -3
  59. package/lib/fs/createReadingFileSystem.d.ts.map +0 -1
  60. package/lib/fs/createReadingFileSystem.js +0 -8
  61. package/lib/fs/createReadingFileSystem.js.map +0 -1
  62. package/lib/runner/createWritingFileSystem.test.d.ts +0 -2
  63. package/lib/runner/createWritingFileSystem.test.d.ts.map +0 -1
  64. package/lib/runner/createWritingFileSystem.test.js +0 -46
  65. package/lib/runner/createWritingFileSystem.test.js.map +0 -1
  66. package/lib/runners/runner.d.ts +0 -3
  67. package/lib/runners/runner.d.ts.map +0 -1
  68. package/lib/runners/runner.js +0 -2
  69. package/lib/runners/runner.js.map +0 -1
  70. package/lib/system.d.ts +0 -1
  71. package/lib/system.js +0 -2
  72. package/lib/system.js.map +0 -1
  73. package/lib/types/fetchers.d.ts +0 -6
  74. package/lib/types/fetchers.d.ts.map +0 -1
  75. package/lib/types/fetchers.js +0 -2
  76. package/lib/types/fetchers.js.map +0 -1
  77. package/lib/types/fs.d.ts +0 -20
  78. package/lib/types/fs.d.ts.map +0 -1
  79. package/lib/types/fs.js +0 -2
  80. package/lib/types/fs.js.map +0 -1
  81. package/lib/types/runner.d.ts +0 -3
  82. package/lib/types/runner.d.ts.map +0 -1
  83. package/lib/types/runner.js +0 -2
  84. package/lib/types/runner.js.map +0 -1
  85. package/lib/types.d.ts +0 -40
  86. package/lib/types.js +0 -2
  87. package/lib/types.js.map +0 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <h1 align="center">bingo-fs</h1>
1
+ <h1 align="center">bingo-systems</h1>
2
2
 
3
3
  <p align="center">File, network, and shell wrapper APIs used by <a href="https://create.bingo">Bingo</a>. 🧰</p>
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bingo-systems",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "File, network, and shell wrapper APIs used by Bingo. 🧰",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  "execa": "^9.5.2",
25
25
  "get-github-auth-token": "^0.1.1",
26
26
  "octokit": "^4.1.2",
27
- "bingo-fs": "^0.4.0"
27
+ "bingo-fs": "^0.4.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "22.13.4"
@@ -1,2 +0,0 @@
1
- import { SystemFetchers } from "./types/fetchers.js";
2
- export declare function createSystemFetchersOffline(): SystemFetchers;
@@ -1,7 +0,0 @@
1
- import { createSystemFetchers } from "./createSystemFetchers.js";
2
- export function createSystemFetchersOffline() {
3
- return createSystemFetchers({
4
- fetch: () => Promise.reject(new Error("Offline specified. This request should be caught by its Input.")),
5
- });
6
- }
7
- //# sourceMappingURL=createOfflineFetchers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createOfflineFetchers.js","sourceRoot":"","sources":["../src/createOfflineFetchers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,MAAM,UAAU,2BAA2B;IAC1C,OAAO,oBAAoB,CAAC;QAC3B,KAAK,EAAE,GAAG,EAAE,CACX,OAAO,CAAC,MAAM,CACb,IAAI,KAAK,CACR,gEAAgE,CAChE,CACD;KACF,CAAC,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import { describe, expect, it } from "vitest";
2
- import { createSystemFetchersOffline } from "./createSystemFetchersOffline.js";
3
- describe("createSystemFetchersOffline", () => {
4
- it("rejects when called", async () => {
5
- const fetchers = createSystemFetchersOffline();
6
- await expect(async () => await fetchers.fetch("")).rejects.toMatchInlineSnapshot(`[Error: Offline specified. This request should be caught by its Input.]`);
7
- });
8
- });
9
- //# sourceMappingURL=createOfflineFetchers.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createOfflineFetchers.test.js","sourceRoot":"","sources":["../src/createOfflineFetchers.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC5C,EAAE,CAAC,qBAAqB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,QAAQ,GAAG,2BAA2B,EAAE,CAAC;QAE/C,MAAM,MAAM,CACX,KAAK,IAAI,EAAE,CAAC,MAAM,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CACpC,CAAC,OAAO,CAAC,qBAAqB,CAC9B,yEAAyE,CACzE,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ReadingFileSystem } from "./types/fs.js";
2
- export declare function createReadingFileSystem(): ReadingFileSystem;
3
- //# sourceMappingURL=createReadingFileSystem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createReadingFileSystem.d.ts","sourceRoot":"","sources":["../src/createReadingFileSystem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,wBAAgB,uBAAuB,IAAI,iBAAiB,CAM3D"}
@@ -1,8 +0,0 @@
1
- import * as fs from "node:fs/promises";
2
- export function createReadingFileSystem() {
3
- return {
4
- readDirectory: async (filePath) => await fs.readdir(filePath),
5
- readFile: async (filePath) => (await fs.readFile(filePath)).toString(),
6
- };
7
- }
8
- //# sourceMappingURL=createReadingFileSystem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createReadingFileSystem.js","sourceRoot":"","sources":["../src/createReadingFileSystem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAIvC,MAAM,UAAU,uBAAuB;IACtC,OAAO;QACN,aAAa,EAAE,KAAK,EAAE,QAAgB,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;QACrE,QAAQ,EAAE,KAAK,EAAE,QAAgB,EAAE,EAAE,CACpC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;KACzC,CAAC;AACH,CAAC"}
@@ -1,2 +0,0 @@
1
- import { SystemDisplay } from "./types.js";
2
- export declare function createSystemDisplay(): SystemDisplay;
@@ -1,13 +0,0 @@
1
- export function createSystemDisplay() {
2
- return {
3
- item: (group, id, item) => {
4
- if (item.error) {
5
- console.error("Error in", group, id, item.error);
6
- }
7
- },
8
- log: (message) => {
9
- console.log(message);
10
- },
11
- };
12
- }
13
- //# sourceMappingURL=createSystemDisplay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemDisplay.js","sourceRoot":"","sources":["../src/createSystemDisplay.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,mBAAmB;IAClC,OAAO;QACN,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;YACzB,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;gBAChB,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YAClD,CAAC;QACF,CAAC;QACD,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE;YAChB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACtB,CAAC;KACD,CAAC;AACH,CAAC"}
@@ -1,6 +0,0 @@
1
- import { SystemFetchers } from "./types/fetchers.js";
2
- export interface SystemFetchersSettings {
3
- auth?: string;
4
- fetch?: typeof fetch;
5
- }
6
- export declare function createSystemFetchers({ auth, fetch, }: SystemFetchersSettings): SystemFetchers;
@@ -1,11 +0,0 @@
1
- import { Octokit } from "octokit";
2
- export function createSystemFetchers({ auth, fetch = globalThis.fetch, }) {
3
- return {
4
- fetch,
5
- octokit: new Octokit({
6
- auth,
7
- request: { fetch },
8
- }),
9
- };
10
- }
11
- //# sourceMappingURL=createSystemFetchers%20copy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemFetchers copy.js","sourceRoot":"","sources":["../src/createSystemFetchers copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AASlC,MAAM,UAAU,oBAAoB,CAAC,EACpC,IAAI,EACJ,KAAK,GAAG,UAAU,CAAC,KAAK,GACA;IACxB,OAAO;QACN,KAAK;QACL,OAAO,EAAE,IAAI,OAAO,CAAC;YACpB,IAAI;YACJ,OAAO,EAAE,EAAE,KAAK,EAAE;SAClB,CAAC;KACF,CAAC;AACH,CAAC"}
@@ -1,7 +0,0 @@
1
- import { SystemFetchers } from "./types/fetchers.js";
2
- export interface SystemFetchersSettings {
3
- auth?: string;
4
- fetch?: typeof fetch;
5
- }
6
- export declare function createSystemFetchers({ auth, fetch, }: SystemFetchersSettings): SystemFetchers;
7
- //# sourceMappingURL=createSystemFetchers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemFetchers.d.ts","sourceRoot":"","sources":["../src/createSystemFetchers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,sBAAsB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACrB;AAED,wBAAgB,oBAAoB,CAAC,EACpC,IAAI,EACJ,KAAwB,GACxB,EAAE,sBAAsB,GAAG,cAAc,CAQzC"}
@@ -1,11 +0,0 @@
1
- import { Octokit } from "octokit";
2
- export function createSystemFetchers({ auth, fetch = globalThis.fetch, }) {
3
- return {
4
- fetch,
5
- octokit: new Octokit({
6
- auth,
7
- request: { fetch },
8
- }),
9
- };
10
- }
11
- //# sourceMappingURL=createSystemFetchers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemFetchers.js","sourceRoot":"","sources":["../src/createSystemFetchers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AASlC,MAAM,UAAU,oBAAoB,CAAC,EACpC,IAAI,EACJ,KAAK,GAAG,UAAU,CAAC,KAAK,GACA;IACxB,OAAO;QACN,KAAK;QACL,OAAO,EAAE,IAAI,OAAO,CAAC;YACpB,IAAI;YACJ,OAAO,EAAE,EAAE,KAAK,EAAE;SAClB,CAAC;KACF,CAAC;AACH,CAAC"}
@@ -1,2 +0,0 @@
1
- import { SystemFetchers } from "./types/fetchers.js";
2
- export declare function createSystemFetchersOffline(): SystemFetchers;
@@ -1,7 +0,0 @@
1
- import { createSystemFetchers } from "./createSystemFetchers.js";
2
- export function createSystemFetchersOffline() {
3
- return createSystemFetchers({
4
- fetch: () => Promise.reject(new Error("Offline specified. This request should be caught by its Input.")),
5
- });
6
- }
7
- //# sourceMappingURL=createSystemFetchersOffline%20copy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemFetchersOffline copy.js","sourceRoot":"","sources":["../src/createSystemFetchersOffline copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,MAAM,UAAU,2BAA2B;IAC1C,OAAO,oBAAoB,CAAC;QAC3B,KAAK,EAAE,GAAG,EAAE,CACX,OAAO,CAAC,MAAM,CACb,IAAI,KAAK,CACR,gEAAgE,CAChE,CACD;KACF,CAAC,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- import { SystemFetchers } from "./types/fetchers.js";
2
- export declare function createSystemFetchersOffline(): SystemFetchers;
3
- //# sourceMappingURL=createSystemFetchersOffline.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemFetchersOffline.d.ts","sourceRoot":"","sources":["../src/createSystemFetchersOffline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,wBAAgB,2BAA2B,IAAI,cAAc,CAS5D"}
@@ -1,7 +0,0 @@
1
- import { createSystemFetchers } from "./createSystemFetchers.js";
2
- export function createSystemFetchersOffline() {
3
- return createSystemFetchers({
4
- fetch: () => Promise.reject(new Error("Offline specified. This request should be caught by its Input.")),
5
- });
6
- }
7
- //# sourceMappingURL=createSystemFetchersOffline.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemFetchersOffline.js","sourceRoot":"","sources":["../src/createSystemFetchersOffline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,MAAM,UAAU,2BAA2B;IAC1C,OAAO,oBAAoB,CAAC;QAC3B,KAAK,EAAE,GAAG,EAAE,CACX,OAAO,CAAC,MAAM,CACb,IAAI,KAAK,CACR,gEAAgE,CAChE,CACD;KACF,CAAC,CAAC;AACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=createSystemFetchersOffline.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemFetchersOffline.test.d.ts","sourceRoot":"","sources":["../src/createSystemFetchersOffline.test.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import { describe, expect, it } from "vitest";
2
- import { createSystemFetchersOffline } from "./createSystemFetchersOffline.js";
3
- describe("createSystemFetchersOffline", () => {
4
- it("rejects when called", async () => {
5
- const fetchers = createSystemFetchersOffline();
6
- await expect(async () => await fetchers.fetch("")).rejects.toMatchInlineSnapshot(`[Error: Offline specified. This request should be caught by its Input.]`);
7
- });
8
- });
9
- //# sourceMappingURL=createSystemFetchersOffline.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemFetchersOffline.test.js","sourceRoot":"","sources":["../src/createSystemFetchersOffline.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC5C,EAAE,CAAC,qBAAqB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,QAAQ,GAAG,2BAA2B,EAAE,CAAC;QAE/C,MAAM,MAAM,CACX,KAAK,IAAI,EAAE,CAAC,MAAM,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CACpC,CAAC,OAAO,CAAC,qBAAqB,CAC9B,yEAAyE,CACzE,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- import { SystemFetchersSettings } from "./createSystemFetchers.js";
2
- import { SystemFetchers } from "./types/fetchers.js";
3
- export declare function createSystemFetchersWithAuth(settings?: Omit<SystemFetchersSettings, "auth">): Promise<SystemFetchers>;
4
- //# sourceMappingURL=createSystemFetchersWithAuth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemFetchersWithAuth.d.ts","sourceRoot":"","sources":["../src/createSystemFetchersWithAuth.ts"],"names":[],"mappings":"AAEA,OAAO,EAEN,sBAAsB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,wBAAsB,4BAA4B,CACjD,QAAQ,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,MAAM,CAAC,GAC7C,OAAO,CAAC,cAAc,CAAC,CAOzB"}
@@ -1,10 +0,0 @@
1
- import { getGitHubAuthToken } from "get-github-auth-token";
2
- import { createSystemFetchers, } from "./createSystemFetchers.js";
3
- export async function createSystemFetchersWithAuth(settings) {
4
- const auth = await getGitHubAuthToken();
5
- return createSystemFetchers({
6
- ...settings,
7
- auth: auth.succeeded ? auth.token : undefined,
8
- });
9
- }
10
- //# sourceMappingURL=createSystemFetchersWithAuth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemFetchersWithAuth.js","sourceRoot":"","sources":["../src/createSystemFetchersWithAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EACN,oBAAoB,GAEpB,MAAM,2BAA2B,CAAC;AAGnC,MAAM,CAAC,KAAK,UAAU,4BAA4B,CACjD,QAA+C;IAE/C,MAAM,IAAI,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAExC,OAAO,oBAAoB,CAAC;QAC3B,GAAG,QAAQ;QACX,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;KAC7C,CAAC,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- import { SystemRunner } from "./runner/runner.js";
2
- export declare function createSystemRunner(directory: string): SystemRunner;
3
- //# sourceMappingURL=createSystemRunner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemRunner.d.ts","sourceRoot":"","sources":["../src/createSystemRunner.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,CAIlE"}
@@ -1,6 +0,0 @@
1
- import { execa, parseCommandString } from "execa";
2
- export function createSystemRunner(directory) {
3
- const executor = execa({ cwd: directory, reject: false });
4
- return (command) => executor `${parseCommandString(command)}`;
5
- }
6
- //# sourceMappingURL=createSystemRunner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createSystemRunner.js","sourceRoot":"","sources":["../src/createSystemRunner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAIlD,MAAM,UAAU,kBAAkB,CAAC,SAAiB;IACnD,MAAM,QAAQ,GAAG,KAAK,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAE1D,OAAO,CAAC,OAAe,EAAE,EAAE,CAAC,QAAQ,CAAA,GAAG,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC;AACtE,CAAC"}
@@ -1,8 +0,0 @@
1
- import { CreatedFileOptions } from "bingo-fs";
2
- export declare function createWritingFileSystem(): {
3
- writeDirectory: (directoryPath: string) => Promise<undefined>;
4
- writeFile: (filePath: string, contents: string, options?: CreatedFileOptions) => Promise<void>;
5
- readDirectory: import("./index.js").ReadDirectory;
6
- readFile: import("./index.js").ReadFile;
7
- };
8
- //# sourceMappingURL=createWritingFileSystem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createWritingFileSystem.d.ts","sourceRoot":"","sources":["../src/createWritingFileSystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAK9C,wBAAgB,uBAAuB;oCAGC,MAAM;0BAGjC,MAAM,YACN,MAAM,YACN,kBAAkB;;;EAS9B"}
@@ -1,12 +0,0 @@
1
- import * as fs from "node:fs/promises";
2
- import { createReadingFileSystem } from "./files/createReadingFileSystem.js";
3
- export function createWritingFileSystem() {
4
- return {
5
- ...createReadingFileSystem(),
6
- writeDirectory: async (directoryPath) => void (await fs.mkdir(directoryPath, { recursive: true })),
7
- writeFile: async (filePath, contents, options) => {
8
- await fs.writeFile(filePath, contents, options?.executable ? { mode: 0x755 } : undefined);
9
- },
10
- };
11
- }
12
- //# sourceMappingURL=createWritingFileSystem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createWritingFileSystem.js","sourceRoot":"","sources":["../src/createWritingFileSystem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,MAAM,UAAU,uBAAuB;IACtC,OAAO;QACN,GAAG,uBAAuB,EAAE;QAC5B,cAAc,EAAE,KAAK,EAAE,aAAqB,EAAE,EAAE,CAC/C,KAAK,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1D,SAAS,EAAE,KAAK,EACf,QAAgB,EAChB,QAAgB,EAChB,OAA4B,EAC3B,EAAE;YACH,MAAM,EAAE,CAAC,SAAS,CACjB,QAAQ,EACR,QAAQ,EACR,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CACjD,CAAC;QACH,CAAC;KACD,CAAC;AACH,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=createWritingFileSystem.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createWritingFileSystem.test.d.ts","sourceRoot":"","sources":["../src/createWritingFileSystem.test.ts"],"names":[],"mappings":""}
@@ -1,46 +0,0 @@
1
- import { describe, expect, it, vi } from "vitest";
2
- import { createWritingFileSystem } from "./createWritingFileSystem.js";
3
- const mockMkdir = vi.fn();
4
- const mockWriteFile = vi.fn();
5
- vi.mock("node:fs/promises", () => ({
6
- get mkdir() {
7
- return mockMkdir;
8
- },
9
- get writeFile() {
10
- return mockWriteFile;
11
- },
12
- }));
13
- const contents = "abc123";
14
- const directoryPath = "path/to/file";
15
- const filePath = "path/to/file";
16
- describe("createWritingFileSystem", () => {
17
- describe("writeDirectory", () => {
18
- it("writes with recursive: true", async () => {
19
- const system = createWritingFileSystem();
20
- await system.writeDirectory(directoryPath);
21
- expect(mockMkdir).toHaveBeenCalledWith(directoryPath, {
22
- recursive: true,
23
- });
24
- });
25
- });
26
- describe("writeFile", () => {
27
- it("writes without mode when options does not exist", async () => {
28
- const system = createWritingFileSystem();
29
- await system.writeFile(filePath, contents);
30
- expect(mockWriteFile).toHaveBeenCalledWith(filePath, contents, undefined);
31
- });
32
- it("writes without mode when options.executable is false", async () => {
33
- const system = createWritingFileSystem();
34
- await system.writeFile(filePath, contents, { executable: false });
35
- expect(mockWriteFile).toHaveBeenCalledWith(filePath, contents, undefined);
36
- });
37
- it("writes with mode 0x755 when options.executable is true", async () => {
38
- const system = createWritingFileSystem();
39
- await system.writeFile(filePath, contents, { executable: true });
40
- expect(mockWriteFile).toHaveBeenCalledWith(filePath, contents, {
41
- mode: 0x755,
42
- });
43
- });
44
- });
45
- });
46
- //# sourceMappingURL=createWritingFileSystem.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createWritingFileSystem.test.js","sourceRoot":"","sources":["../src/createWritingFileSystem.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAElD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,SAAS,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;AAC1B,MAAM,aAAa,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;AAE9B,EAAE,CAAC,IAAI,CAAC,kBAAkB,EAAE,GAAG,EAAE,CAAC,CAAC;IAClC,IAAI,KAAK;QACR,OAAO,SAAS,CAAC;IAClB,CAAC;IACD,IAAI,SAAS;QACZ,OAAO,aAAa,CAAC;IACtB,CAAC;CACD,CAAC,CAAC,CAAC;AAEJ,MAAM,QAAQ,GAAG,QAAQ,CAAC;AAC1B,MAAM,aAAa,GAAG,cAAc,CAAC;AACrC,MAAM,QAAQ,GAAG,cAAc,CAAC;AAEhC,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACxC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;QAC/B,EAAE,CAAC,6BAA6B,EAAE,KAAK,IAAI,EAAE;YAC5C,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;YAEzC,MAAM,MAAM,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;YAE3C,MAAM,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC,aAAa,EAAE;gBACrD,SAAS,EAAE,IAAI;aACf,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QAC1B,EAAE,CAAC,iDAAiD,EAAE,KAAK,IAAI,EAAE;YAChE,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;YAEzC,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAE3C,MAAM,CAAC,aAAa,CAAC,CAAC,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;QAC3E,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,sDAAsD,EAAE,KAAK,IAAI,EAAE;YACrE,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;YAEzC,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;YAElE,MAAM,CAAC,aAAa,CAAC,CAAC,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;QAC3E,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,wDAAwD,EAAE,KAAK,IAAI,EAAE;YACvE,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;YAEzC,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;YAEjE,MAAM,CAAC,aAAa,CAAC,CAAC,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,EAAE;gBAC9D,IAAI,EAAE,KAAK;aACX,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Octokit } from "octokit";
2
- export interface SystemFetchers {
3
- fetch: typeof fetch;
4
- octokit: Octokit;
5
- }
6
- //# sourceMappingURL=fetchers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchers.d.ts","sourceRoot":"","sources":["../../src/fetchers/fetchers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CACjB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=fetchers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchers.js","sourceRoot":"","sources":["../../src/fetchers/fetchers.ts"],"names":[],"mappings":""}
package/lib/files/fs.d.ts DELETED
@@ -1,20 +0,0 @@
1
- export interface DirectoryChild {
2
- name: string;
3
- type: "directory" | "file";
4
- }
5
- export type ReadDirectory = (filePath: string) => Promise<string[]>;
6
- export type ReadFile = (filePath: string) => Promise<string>;
7
- export interface ReadingFileSystem {
8
- readDirectory: ReadDirectory;
9
- readFile: ReadFile;
10
- }
11
- export type WriteDirectory = (directoryPath: string) => Promise<void>;
12
- export type WriteFile = (filePath: string, contents: string, options?: WriteFileOptions) => Promise<void>;
13
- export interface WriteFileOptions {
14
- executable?: boolean;
15
- }
16
- export interface WritingFileSystem extends ReadingFileSystem {
17
- writeDirectory: WriteDirectory;
18
- writeFile: WriteFile;
19
- }
20
- //# sourceMappingURL=fs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../src/files/fs.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAEpE,MAAM,MAAM,QAAQ,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,WAAW,iBAAiB;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE,QAAQ,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,CAAC,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEtE,MAAM,MAAM,SAAS,GAAG,CACvB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,gBAAgB,KACtB,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB,MAAM,WAAW,gBAAgB;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC3D,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,SAAS,CAAC;CACrB"}
package/lib/files/fs.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=fs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fs.js","sourceRoot":"","sources":["../../src/files/fs.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { ReadingFileSystem } from "../types/fs.js";
2
- export declare function createReadingFileSystem(): ReadingFileSystem;
3
- //# sourceMappingURL=createReadingFileSystem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createReadingFileSystem.d.ts","sourceRoot":"","sources":["../../src/fs/createReadingFileSystem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,wBAAgB,uBAAuB,IAAI,iBAAiB,CAM3D"}
@@ -1,8 +0,0 @@
1
- import * as fs from "node:fs/promises";
2
- export function createReadingFileSystem() {
3
- return {
4
- readDirectory: async (filePath) => await fs.readdir(filePath),
5
- readFile: async (filePath) => (await fs.readFile(filePath)).toString(),
6
- };
7
- }
8
- //# sourceMappingURL=createReadingFileSystem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createReadingFileSystem.js","sourceRoot":"","sources":["../../src/fs/createReadingFileSystem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAIvC,MAAM,UAAU,uBAAuB;IACtC,OAAO;QACN,aAAa,EAAE,KAAK,EAAE,QAAgB,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;QACrE,QAAQ,EAAE,KAAK,EAAE,QAAgB,EAAE,EAAE,CACpC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;KACzC,CAAC;AACH,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=createWritingFileSystem.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createWritingFileSystem.test.d.ts","sourceRoot":"","sources":["../../src/runner/createWritingFileSystem.test.ts"],"names":[],"mappings":""}
@@ -1,46 +0,0 @@
1
- import { describe, expect, it, vi } from "vitest";
2
- import { createWritingFileSystem } from "./createWritingFileSystem.js";
3
- const mockMkdir = vi.fn();
4
- const mockWriteFile = vi.fn();
5
- vi.mock("node:fs/promises", () => ({
6
- get mkdir() {
7
- return mockMkdir;
8
- },
9
- get writeFile() {
10
- return mockWriteFile;
11
- },
12
- }));
13
- const contents = "abc123";
14
- const directoryPath = "path/to/file";
15
- const filePath = "path/to/file";
16
- describe("createWritingFileSystem", () => {
17
- describe("writeDirectory", () => {
18
- it("writes with recursive: true", async () => {
19
- const system = createWritingFileSystem();
20
- await system.writeDirectory(directoryPath);
21
- expect(mockMkdir).toHaveBeenCalledWith(directoryPath, {
22
- recursive: true,
23
- });
24
- });
25
- });
26
- describe("writeFile", () => {
27
- it("writes without mode when options does not exist", async () => {
28
- const system = createWritingFileSystem();
29
- await system.writeFile(filePath, contents);
30
- expect(mockWriteFile).toHaveBeenCalledWith(filePath, contents, undefined);
31
- });
32
- it("writes without mode when options.executable is false", async () => {
33
- const system = createWritingFileSystem();
34
- await system.writeFile(filePath, contents, { executable: false });
35
- expect(mockWriteFile).toHaveBeenCalledWith(filePath, contents, undefined);
36
- });
37
- it("writes with mode 0x755 when options.executable is true", async () => {
38
- const system = createWritingFileSystem();
39
- await system.writeFile(filePath, contents, { executable: true });
40
- expect(mockWriteFile).toHaveBeenCalledWith(filePath, contents, {
41
- mode: 0x755,
42
- });
43
- });
44
- });
45
- });
46
- //# sourceMappingURL=createWritingFileSystem.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createWritingFileSystem.test.js","sourceRoot":"","sources":["../../src/runner/createWritingFileSystem.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAElD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,SAAS,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;AAC1B,MAAM,aAAa,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;AAE9B,EAAE,CAAC,IAAI,CAAC,kBAAkB,EAAE,GAAG,EAAE,CAAC,CAAC;IAClC,IAAI,KAAK;QACR,OAAO,SAAS,CAAC;IAClB,CAAC;IACD,IAAI,SAAS;QACZ,OAAO,aAAa,CAAC;IACtB,CAAC;CACD,CAAC,CAAC,CAAC;AAEJ,MAAM,QAAQ,GAAG,QAAQ,CAAC;AAC1B,MAAM,aAAa,GAAG,cAAc,CAAC;AACrC,MAAM,QAAQ,GAAG,cAAc,CAAC;AAEhC,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACxC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;QAC/B,EAAE,CAAC,6BAA6B,EAAE,KAAK,IAAI,EAAE;YAC5C,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;YAEzC,MAAM,MAAM,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;YAE3C,MAAM,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC,aAAa,EAAE;gBACrD,SAAS,EAAE,IAAI;aACf,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QAC1B,EAAE,CAAC,iDAAiD,EAAE,KAAK,IAAI,EAAE;YAChE,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;YAEzC,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAE3C,MAAM,CAAC,aAAa,CAAC,CAAC,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;QAC3E,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,sDAAsD,EAAE,KAAK,IAAI,EAAE;YACrE,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;YAEzC,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC;YAElE,MAAM,CAAC,aAAa,CAAC,CAAC,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;QAC3E,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,wDAAwD,EAAE,KAAK,IAAI,EAAE;YACvE,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;YAEzC,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;YAEjE,MAAM,CAAC,aAAa,CAAC,CAAC,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,EAAE;gBAC9D,IAAI,EAAE,KAAK;aACX,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ExecaError, Result } from "execa";
2
- export type SystemRunner = (command: string) => Promise<ExecaError | Result>;
3
- //# sourceMappingURL=runner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/runners/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runner.js","sourceRoot":"","sources":["../../src/runners/runner.ts"],"names":[],"mappings":""}
package/lib/system.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/lib/system.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=system.js.map
package/lib/system.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.js","sourceRoot":"","sources":["../src/system.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { Octokit } from "octokit";
2
- export interface SystemFetchers {
3
- fetch: typeof fetch;
4
- octokit: Octokit;
5
- }
6
- //# sourceMappingURL=fetchers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchers.d.ts","sourceRoot":"","sources":["../../src/types/fetchers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CACjB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=fetchers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchers.js","sourceRoot":"","sources":["../../src/types/fetchers.ts"],"names":[],"mappings":""}
package/lib/types/fs.d.ts DELETED
@@ -1,20 +0,0 @@
1
- export interface DirectoryChild {
2
- name: string;
3
- type: "directory" | "file";
4
- }
5
- export type ReadDirectory = (filePath: string) => Promise<string[]>;
6
- export type ReadFile = (filePath: string) => Promise<string>;
7
- export interface ReadingFileSystem {
8
- readDirectory: ReadDirectory;
9
- readFile: ReadFile;
10
- }
11
- export type WriteDirectory = (directoryPath: string) => Promise<void>;
12
- export type WriteFile = (filePath: string, contents: string, options?: WriteFileOptions) => Promise<void>;
13
- export interface WriteFileOptions {
14
- executable?: boolean;
15
- }
16
- export interface WritingFileSystem extends ReadingFileSystem {
17
- writeDirectory: WriteDirectory;
18
- writeFile: WriteFile;
19
- }
20
- //# sourceMappingURL=fs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../src/types/fs.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AAEpE,MAAM,MAAM,QAAQ,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,WAAW,iBAAiB;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE,QAAQ,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,CAAC,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEtE,MAAM,MAAM,SAAS,GAAG,CACvB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,gBAAgB,KACtB,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB,MAAM,WAAW,gBAAgB;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC3D,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,SAAS,CAAC;CACrB"}
package/lib/types/fs.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=fs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fs.js","sourceRoot":"","sources":["../../src/types/fs.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { ExecaError, Result } from "execa";
2
- export type SystemRunner = (command: string) => Promise<ExecaError | Result>;
3
- //# sourceMappingURL=runner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/types/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=runner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runner.js","sourceRoot":"","sources":["../../src/types/runner.ts"],"names":[],"mappings":""}
package/lib/types.d.ts DELETED
@@ -1,40 +0,0 @@
1
- import { ExecaError, Result } from "execa";
2
- import { Octokit } from "octokit";
3
- export interface DirectoryChild {
4
- name: string;
5
- type: "directory" | "file";
6
- }
7
- export interface NativeSystem {
8
- fetchers: SystemFetchers;
9
- fs: WritingFileSystem;
10
- runner: SystemRunner;
11
- }
12
- export type ReadDirectory = (filePath: string) => Promise<string[]>;
13
- export type ReadFile = (filePath: string) => Promise<string>;
14
- export interface ReadingFileSystem {
15
- readDirectory: ReadDirectory;
16
- readFile: ReadFile;
17
- }
18
- export interface SystemDisplay {
19
- item(group: string, id: string, item: Partial<SystemDisplayItem>): void;
20
- log(message: string): void;
21
- }
22
- export interface SystemDisplayItem {
23
- end?: number;
24
- error?: unknown;
25
- start?: number;
26
- }
27
- export interface SystemFetchers {
28
- fetch: typeof fetch;
29
- octokit: Octokit;
30
- }
31
- export type SystemRunner = (command: string) => Promise<ExecaError | Result>;
32
- export type WriteDirectory = (directoryPath: string) => Promise<void>;
33
- export type WriteFile = (filePath: string, contents: string, options?: WriteFileOptions) => Promise<void>;
34
- export interface WriteFileOptions {
35
- executable?: boolean;
36
- }
37
- export interface WritingFileSystem extends ReadingFileSystem {
38
- writeDirectory: WriteDirectory;
39
- writeFile: WriteFile;
40
- }
package/lib/types.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
package/lib/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}