@slicemachine/adapter-nuxt 0.3.10 → 0.3.11-dev-next-release.2

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 (207) hide show
  1. package/dist/hooks/project-init.cjs +26 -29
  2. package/dist/hooks/project-init.cjs.map +1 -1
  3. package/dist/hooks/project-init.js +26 -28
  4. package/dist/hooks/project-init.js.map +1 -1
  5. package/dist/hooks/slice-create.cjs +28 -46
  6. package/dist/hooks/slice-create.cjs.map +1 -1
  7. package/dist/hooks/slice-create.js +28 -28
  8. package/dist/hooks/slice-create.js.map +1 -1
  9. package/dist/lib/checkHasSrcDirectory.cjs +5 -2
  10. package/dist/lib/checkHasSrcDirectory.cjs.map +1 -1
  11. package/dist/lib/checkHasSrcDirectory.js +5 -2
  12. package/dist/lib/checkHasSrcDirectory.js.map +1 -1
  13. package/dist/lib/checkIsTypeScriptProject.cjs +2 -3
  14. package/dist/lib/checkIsTypeScriptProject.cjs.map +1 -1
  15. package/dist/lib/checkIsTypeScriptProject.js +2 -3
  16. package/dist/lib/checkIsTypeScriptProject.js.map +1 -1
  17. package/dist/lib/getJSFileExtension.cjs +12 -0
  18. package/dist/lib/getJSFileExtension.cjs.map +1 -0
  19. package/dist/lib/getJSFileExtension.d.ts +5 -0
  20. package/dist/lib/getJSFileExtension.js +12 -0
  21. package/dist/lib/getJSFileExtension.js.map +1 -0
  22. package/dist/lib/upsertSliceLibraryIndexFile.cjs +30 -22
  23. package/dist/lib/upsertSliceLibraryIndexFile.cjs.map +1 -1
  24. package/dist/lib/upsertSliceLibraryIndexFile.js +30 -21
  25. package/dist/lib/upsertSliceLibraryIndexFile.js.map +1 -1
  26. package/dist/plugin.cjs +178 -36
  27. package/dist/plugin.cjs.map +1 -1
  28. package/dist/plugin.js +178 -36
  29. package/dist/plugin.js.map +1 -1
  30. package/dist/types.d.ts +22 -0
  31. package/package.json +4 -6
  32. package/src/hooks/project-init.ts +32 -36
  33. package/src/hooks/slice-create.ts +39 -34
  34. package/src/lib/checkHasSrcDirectory.ts +5 -2
  35. package/src/lib/checkIsTypeScriptProject.ts +5 -4
  36. package/src/lib/getJSFileExtension.ts +22 -0
  37. package/src/lib/upsertSliceLibraryIndexFile.ts +55 -36
  38. package/src/plugin.ts +247 -37
  39. package/src/types.ts +25 -0
  40. package/dist/hooks/customType-asset-delete.cjs +0 -31
  41. package/dist/hooks/customType-asset-delete.cjs.map +0 -1
  42. package/dist/hooks/customType-asset-delete.d.ts +0 -3
  43. package/dist/hooks/customType-asset-delete.js +0 -14
  44. package/dist/hooks/customType-asset-delete.js.map +0 -1
  45. package/dist/hooks/customType-asset-read.cjs +0 -34
  46. package/dist/hooks/customType-asset-read.cjs.map +0 -1
  47. package/dist/hooks/customType-asset-read.d.ts +0 -3
  48. package/dist/hooks/customType-asset-read.js +0 -17
  49. package/dist/hooks/customType-asset-read.js.map +0 -1
  50. package/dist/hooks/customType-asset-update.cjs +0 -34
  51. package/dist/hooks/customType-asset-update.cjs.map +0 -1
  52. package/dist/hooks/customType-asset-update.d.ts +0 -3
  53. package/dist/hooks/customType-asset-update.js +0 -16
  54. package/dist/hooks/customType-asset-update.js.map +0 -1
  55. package/dist/hooks/customType-create.cjs +0 -43
  56. package/dist/hooks/customType-create.cjs.map +0 -1
  57. package/dist/hooks/customType-create.d.ts +0 -3
  58. package/dist/hooks/customType-create.js +0 -25
  59. package/dist/hooks/customType-create.js.map +0 -1
  60. package/dist/hooks/customType-delete.cjs +0 -32
  61. package/dist/hooks/customType-delete.cjs.map +0 -1
  62. package/dist/hooks/customType-delete.d.ts +0 -3
  63. package/dist/hooks/customType-delete.js +0 -15
  64. package/dist/hooks/customType-delete.js.map +0 -1
  65. package/dist/hooks/customType-read.cjs +0 -31
  66. package/dist/hooks/customType-read.cjs.map +0 -1
  67. package/dist/hooks/customType-read.d.ts +0 -3
  68. package/dist/hooks/customType-read.js +0 -14
  69. package/dist/hooks/customType-read.js.map +0 -1
  70. package/dist/hooks/customType-rename.cjs +0 -6
  71. package/dist/hooks/customType-rename.cjs.map +0 -1
  72. package/dist/hooks/customType-rename.d.ts +0 -1
  73. package/dist/hooks/customType-rename.js +0 -6
  74. package/dist/hooks/customType-rename.js.map +0 -1
  75. package/dist/hooks/customType-update.cjs +0 -6
  76. package/dist/hooks/customType-update.cjs.map +0 -1
  77. package/dist/hooks/customType-update.d.ts +0 -1
  78. package/dist/hooks/customType-update.js +0 -6
  79. package/dist/hooks/customType-update.js.map +0 -1
  80. package/dist/hooks/customTypeLibrary-read.cjs +0 -55
  81. package/dist/hooks/customTypeLibrary-read.cjs.map +0 -1
  82. package/dist/hooks/customTypeLibrary-read.d.ts +0 -3
  83. package/dist/hooks/customTypeLibrary-read.js +0 -37
  84. package/dist/hooks/customTypeLibrary-read.js.map +0 -1
  85. package/dist/hooks/slice-asset-delete.cjs +0 -33
  86. package/dist/hooks/slice-asset-delete.cjs.map +0 -1
  87. package/dist/hooks/slice-asset-delete.d.ts +0 -3
  88. package/dist/hooks/slice-asset-delete.js +0 -16
  89. package/dist/hooks/slice-asset-delete.js.map +0 -1
  90. package/dist/hooks/slice-asset-read.cjs +0 -36
  91. package/dist/hooks/slice-asset-read.cjs.map +0 -1
  92. package/dist/hooks/slice-asset-read.d.ts +0 -3
  93. package/dist/hooks/slice-asset-read.js +0 -19
  94. package/dist/hooks/slice-asset-read.js.map +0 -1
  95. package/dist/hooks/slice-asset-update.cjs +0 -36
  96. package/dist/hooks/slice-asset-update.cjs.map +0 -1
  97. package/dist/hooks/slice-asset-update.d.ts +0 -3
  98. package/dist/hooks/slice-asset-update.js +0 -18
  99. package/dist/hooks/slice-asset-update.js.map +0 -1
  100. package/dist/hooks/slice-delete.cjs +0 -41
  101. package/dist/hooks/slice-delete.cjs.map +0 -1
  102. package/dist/hooks/slice-delete.d.ts +0 -3
  103. package/dist/hooks/slice-delete.js +0 -24
  104. package/dist/hooks/slice-delete.js.map +0 -1
  105. package/dist/hooks/slice-read.cjs +0 -62
  106. package/dist/hooks/slice-read.cjs.map +0 -1
  107. package/dist/hooks/slice-read.d.ts +0 -3
  108. package/dist/hooks/slice-read.js +0 -44
  109. package/dist/hooks/slice-read.js.map +0 -1
  110. package/dist/hooks/slice-rename.cjs +0 -51
  111. package/dist/hooks/slice-rename.cjs.map +0 -1
  112. package/dist/hooks/slice-rename.d.ts +0 -3
  113. package/dist/hooks/slice-rename.js +0 -34
  114. package/dist/hooks/slice-rename.js.map +0 -1
  115. package/dist/hooks/slice-update.cjs +0 -14
  116. package/dist/hooks/slice-update.cjs.map +0 -1
  117. package/dist/hooks/slice-update.d.ts +0 -3
  118. package/dist/hooks/slice-update.js +0 -14
  119. package/dist/hooks/slice-update.js.map +0 -1
  120. package/dist/hooks/sliceLibrary-read.cjs +0 -52
  121. package/dist/hooks/sliceLibrary-read.cjs.map +0 -1
  122. package/dist/hooks/sliceLibrary-read.d.ts +0 -3
  123. package/dist/hooks/sliceLibrary-read.js +0 -34
  124. package/dist/hooks/sliceLibrary-read.js.map +0 -1
  125. package/dist/lib/buildCustomTypeAssetPath.cjs +0 -29
  126. package/dist/lib/buildCustomTypeAssetPath.cjs.map +0 -1
  127. package/dist/lib/buildCustomTypeAssetPath.d.ts +0 -9
  128. package/dist/lib/buildCustomTypeAssetPath.js +0 -12
  129. package/dist/lib/buildCustomTypeAssetPath.js.map +0 -1
  130. package/dist/lib/buildCustomTypeDirectoryPath.cjs +0 -26
  131. package/dist/lib/buildCustomTypeDirectoryPath.cjs.map +0 -1
  132. package/dist/lib/buildCustomTypeDirectoryPath.d.ts +0 -8
  133. package/dist/lib/buildCustomTypeDirectoryPath.js +0 -9
  134. package/dist/lib/buildCustomTypeDirectoryPath.js.map +0 -1
  135. package/dist/lib/buildCustomTypeLibraryDirectoryPath.cjs +0 -7
  136. package/dist/lib/buildCustomTypeLibraryDirectoryPath.cjs.map +0 -1
  137. package/dist/lib/buildCustomTypeLibraryDirectoryPath.d.ts +0 -7
  138. package/dist/lib/buildCustomTypeLibraryDirectoryPath.js +0 -7
  139. package/dist/lib/buildCustomTypeLibraryDirectoryPath.js.map +0 -1
  140. package/dist/lib/buildSliceAssetPath.cjs +0 -34
  141. package/dist/lib/buildSliceAssetPath.cjs.map +0 -1
  142. package/dist/lib/buildSliceAssetPath.d.ts +0 -11
  143. package/dist/lib/buildSliceAssetPath.js +0 -17
  144. package/dist/lib/buildSliceAssetPath.js.map +0 -1
  145. package/dist/lib/buildSliceDirectoryPath.cjs +0 -30
  146. package/dist/lib/buildSliceDirectoryPath.cjs.map +0 -1
  147. package/dist/lib/buildSliceDirectoryPath.d.ts +0 -10
  148. package/dist/lib/buildSliceDirectoryPath.js +0 -13
  149. package/dist/lib/buildSliceDirectoryPath.js.map +0 -1
  150. package/dist/lib/buildSliceLibraryDirectoryPath.cjs +0 -7
  151. package/dist/lib/buildSliceLibraryDirectoryPath.cjs.map +0 -1
  152. package/dist/lib/buildSliceLibraryDirectoryPath.d.ts +0 -8
  153. package/dist/lib/buildSliceLibraryDirectoryPath.js +0 -7
  154. package/dist/lib/buildSliceLibraryDirectoryPath.js.map +0 -1
  155. package/dist/lib/checkPathExists.cjs +0 -30
  156. package/dist/lib/checkPathExists.cjs.map +0 -1
  157. package/dist/lib/checkPathExists.d.ts +0 -2
  158. package/dist/lib/checkPathExists.js +0 -13
  159. package/dist/lib/checkPathExists.js.map +0 -1
  160. package/dist/lib/isSharedSliceModel.cjs +0 -7
  161. package/dist/lib/isSharedSliceModel.cjs.map +0 -1
  162. package/dist/lib/isSharedSliceModel.d.ts +0 -335
  163. package/dist/lib/isSharedSliceModel.js +0 -7
  164. package/dist/lib/isSharedSliceModel.js.map +0 -1
  165. package/dist/lib/readJSONFile.cjs +0 -26
  166. package/dist/lib/readJSONFile.cjs.map +0 -1
  167. package/dist/lib/readJSONFile.d.ts +0 -1
  168. package/dist/lib/readJSONFile.js +0 -9
  169. package/dist/lib/readJSONFile.js.map +0 -1
  170. package/dist/lib/updateSliceModelFile.cjs +0 -33
  171. package/dist/lib/updateSliceModelFile.cjs.map +0 -1
  172. package/dist/lib/updateSliceModelFile.d.ts +0 -9
  173. package/dist/lib/updateSliceModelFile.js +0 -15
  174. package/dist/lib/updateSliceModelFile.js.map +0 -1
  175. package/dist/lib/upsertGlobalContentTypes.cjs +0 -56
  176. package/dist/lib/upsertGlobalContentTypes.cjs.map +0 -1
  177. package/dist/lib/upsertGlobalContentTypes.d.ts +0 -12
  178. package/dist/lib/upsertGlobalContentTypes.js +0 -38
  179. package/dist/lib/upsertGlobalContentTypes.js.map +0 -1
  180. package/src/hooks/customType-asset-delete.ts +0 -18
  181. package/src/hooks/customType-asset-read.ts +0 -22
  182. package/src/hooks/customType-asset-update.ts +0 -20
  183. package/src/hooks/customType-create.ts +0 -45
  184. package/src/hooks/customType-delete.ts +0 -21
  185. package/src/hooks/customType-read.ts +0 -24
  186. package/src/hooks/customType-rename.ts +0 -3
  187. package/src/hooks/customType-update.ts +0 -3
  188. package/src/hooks/customTypeLibrary-read.ts +0 -58
  189. package/src/hooks/slice-asset-delete.ts +0 -21
  190. package/src/hooks/slice-asset-read.ts +0 -25
  191. package/src/hooks/slice-asset-update.ts +0 -23
  192. package/src/hooks/slice-delete.ts +0 -41
  193. package/src/hooks/slice-read.ts +0 -69
  194. package/src/hooks/slice-rename.ts +0 -46
  195. package/src/hooks/slice-update.ts +0 -19
  196. package/src/hooks/sliceLibrary-read.ts +0 -48
  197. package/src/lib/buildCustomTypeAssetPath.ts +0 -24
  198. package/src/lib/buildCustomTypeDirectoryPath.ts +0 -20
  199. package/src/lib/buildCustomTypeLibraryDirectoryPath.ts +0 -13
  200. package/src/lib/buildSliceAssetPath.ts +0 -32
  201. package/src/lib/buildSliceDirectoryPath.ts +0 -26
  202. package/src/lib/buildSliceLibraryDirectoryPath.ts +0 -14
  203. package/src/lib/checkPathExists.ts +0 -12
  204. package/src/lib/isSharedSliceModel.ts +0 -14
  205. package/src/lib/readJSONFile.ts +0 -7
  206. package/src/lib/updateSliceModelFile.ts +0 -33
  207. package/src/lib/upsertGlobalContentTypes.ts +0 -61
@@ -1,7 +0,0 @@
1
- const buildCustomTypeLibraryDirectoryPath = (args) => {
2
- return args.helpers.joinPathFromRoot("customtypes");
3
- };
4
- export {
5
- buildCustomTypeLibraryDirectoryPath
6
- };
7
- //# sourceMappingURL=buildCustomTypeLibraryDirectoryPath.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildCustomTypeLibraryDirectoryPath.js","sources":["../../../src/lib/buildCustomTypeLibraryDirectoryPath.ts"],"sourcesContent":["import { SliceMachineContext } from \"@slicemachine/plugin-kit\";\n\nimport { PluginOptions } from \"../types\";\n\ntype BuildCustomTypeLibraryDirectoryPathArgs = {\n\thelpers: SliceMachineContext<PluginOptions>[\"helpers\"];\n};\n\nexport const buildCustomTypeLibraryDirectoryPath = (\n\targs: BuildCustomTypeLibraryDirectoryPathArgs,\n): string => {\n\treturn args.helpers.joinPathFromRoot(\"customtypes\");\n};\n"],"names":[],"mappings":"AAQa,MAAA,sCAAsC,CAClD,SACW;AACJ,SAAA,KAAK,QAAQ,iBAAiB,aAAa;AACnD;"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const path = require("node:path");
4
- const buildSliceDirectoryPath = require("./buildSliceDirectoryPath.cjs");
5
- function _interopNamespaceDefault(e) {
6
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
7
- if (e) {
8
- for (const k in e) {
9
- if (k !== "default") {
10
- const d = Object.getOwnPropertyDescriptor(e, k);
11
- Object.defineProperty(n, k, d.get ? d : {
12
- enumerable: true,
13
- get: () => e[k]
14
- });
15
- }
16
- }
17
- }
18
- n.default = e;
19
- return Object.freeze(n);
20
- }
21
- const path__namespace = /* @__PURE__ */ _interopNamespaceDefault(path);
22
- const buildSliceAssetPath = async (args) => {
23
- const { model } = await args.actions.readSliceModel({
24
- libraryID: args.libraryID,
25
- sliceID: args.sliceID
26
- });
27
- return path__namespace.join(buildSliceDirectoryPath.buildSliceDirectoryPath({
28
- libraryID: args.libraryID,
29
- model,
30
- helpers: args.helpers
31
- }), args.assetID);
32
- };
33
- exports.buildSliceAssetPath = buildSliceAssetPath;
34
- //# sourceMappingURL=buildSliceAssetPath.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildSliceAssetPath.cjs","sources":["../../../src/lib/buildSliceAssetPath.ts"],"sourcesContent":["import { SliceMachineContext } from \"@slicemachine/plugin-kit\";\nimport * as path from \"node:path\";\n\nimport { PluginOptions } from \"../types\";\n\nimport { buildSliceDirectoryPath } from \"./buildSliceDirectoryPath\";\n\ntype BuildSliceAssetPathArgs = {\n\tlibraryID: string;\n\tsliceID: string;\n\tassetID: string;\n\tactions: SliceMachineContext<PluginOptions>[\"actions\"];\n\thelpers: SliceMachineContext<PluginOptions>[\"helpers\"];\n};\n\nexport const buildSliceAssetPath = async (\n\targs: BuildSliceAssetPathArgs,\n): Promise<string> => {\n\tconst { model } = await args.actions.readSliceModel({\n\t\tlibraryID: args.libraryID,\n\t\tsliceID: args.sliceID,\n\t});\n\n\treturn path.join(\n\t\tbuildSliceDirectoryPath({\n\t\t\tlibraryID: args.libraryID,\n\t\t\tmodel,\n\t\t\thelpers: args.helpers,\n\t\t}),\n\t\targs.assetID,\n\t);\n};\n"],"names":["path","buildSliceDirectoryPath"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAea,MAAA,sBAAsB,OAClC,SACoB;AACpB,QAAM,EAAE,MAAK,IAAK,MAAM,KAAK,QAAQ,eAAe;AAAA,IACnD,WAAW,KAAK;AAAA,IAChB,SAAS,KAAK;AAAA,EAAA,CACd;AAEM,SAAAA,gBAAK,KACXC,gDAAwB;AAAA,IACvB,WAAW,KAAK;AAAA,IAChB;AAAA,IACA,SAAS,KAAK;AAAA,EAAA,CACd,GACD,KAAK,OAAO;AAEd;;"}
@@ -1,11 +0,0 @@
1
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
- import { PluginOptions } from "../types";
3
- type BuildSliceAssetPathArgs = {
4
- libraryID: string;
5
- sliceID: string;
6
- assetID: string;
7
- actions: SliceMachineContext<PluginOptions>["actions"];
8
- helpers: SliceMachineContext<PluginOptions>["helpers"];
9
- };
10
- export declare const buildSliceAssetPath: (args: BuildSliceAssetPathArgs) => Promise<string>;
11
- export {};
@@ -1,17 +0,0 @@
1
- import * as path from "node:path";
2
- import { buildSliceDirectoryPath } from "./buildSliceDirectoryPath.js";
3
- const buildSliceAssetPath = async (args) => {
4
- const { model } = await args.actions.readSliceModel({
5
- libraryID: args.libraryID,
6
- sliceID: args.sliceID
7
- });
8
- return path.join(buildSliceDirectoryPath({
9
- libraryID: args.libraryID,
10
- model,
11
- helpers: args.helpers
12
- }), args.assetID);
13
- };
14
- export {
15
- buildSliceAssetPath
16
- };
17
- //# sourceMappingURL=buildSliceAssetPath.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildSliceAssetPath.js","sources":["../../../src/lib/buildSliceAssetPath.ts"],"sourcesContent":["import { SliceMachineContext } from \"@slicemachine/plugin-kit\";\nimport * as path from \"node:path\";\n\nimport { PluginOptions } from \"../types\";\n\nimport { buildSliceDirectoryPath } from \"./buildSliceDirectoryPath\";\n\ntype BuildSliceAssetPathArgs = {\n\tlibraryID: string;\n\tsliceID: string;\n\tassetID: string;\n\tactions: SliceMachineContext<PluginOptions>[\"actions\"];\n\thelpers: SliceMachineContext<PluginOptions>[\"helpers\"];\n};\n\nexport const buildSliceAssetPath = async (\n\targs: BuildSliceAssetPathArgs,\n): Promise<string> => {\n\tconst { model } = await args.actions.readSliceModel({\n\t\tlibraryID: args.libraryID,\n\t\tsliceID: args.sliceID,\n\t});\n\n\treturn path.join(\n\t\tbuildSliceDirectoryPath({\n\t\t\tlibraryID: args.libraryID,\n\t\t\tmodel,\n\t\t\thelpers: args.helpers,\n\t\t}),\n\t\targs.assetID,\n\t);\n};\n"],"names":[],"mappings":";;AAea,MAAA,sBAAsB,OAClC,SACoB;AACpB,QAAM,EAAE,MAAK,IAAK,MAAM,KAAK,QAAQ,eAAe;AAAA,IACnD,WAAW,KAAK;AAAA,IAChB,SAAS,KAAK;AAAA,EAAA,CACd;AAEM,SAAA,KAAK,KACX,wBAAwB;AAAA,IACvB,WAAW,KAAK;AAAA,IAChB;AAAA,IACA,SAAS,KAAK;AAAA,EAAA,CACd,GACD,KAAK,OAAO;AAEd;"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const path = require("node:path");
4
- const buildSliceLibraryDirectoryPath = require("./buildSliceLibraryDirectoryPath.cjs");
5
- const pascalCase = require("./pascalCase.cjs");
6
- function _interopNamespaceDefault(e) {
7
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
8
- if (e) {
9
- for (const k in e) {
10
- if (k !== "default") {
11
- const d = Object.getOwnPropertyDescriptor(e, k);
12
- Object.defineProperty(n, k, d.get ? d : {
13
- enumerable: true,
14
- get: () => e[k]
15
- });
16
- }
17
- }
18
- }
19
- n.default = e;
20
- return Object.freeze(n);
21
- }
22
- const path__namespace = /* @__PURE__ */ _interopNamespaceDefault(path);
23
- const buildSliceDirectoryPath = (args) => {
24
- return path__namespace.join(buildSliceLibraryDirectoryPath.buildSliceLibraryDirectoryPath({
25
- libraryID: args.libraryID,
26
- helpers: args.helpers
27
- }), pascalCase.pascalCase(args.model.name));
28
- };
29
- exports.buildSliceDirectoryPath = buildSliceDirectoryPath;
30
- //# sourceMappingURL=buildSliceDirectoryPath.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildSliceDirectoryPath.cjs","sources":["../../../src/lib/buildSliceDirectoryPath.ts"],"sourcesContent":["import type { SharedSlice } from \"@prismicio/types-internal/lib/customtypes\";\nimport { SliceMachineContext } from \"@slicemachine/plugin-kit\";\nimport * as path from \"node:path\";\n\nimport { PluginOptions } from \"../types\";\n\nimport { buildSliceLibraryDirectoryPath } from \"./buildSliceLibraryDirectoryPath\";\nimport { pascalCase } from \"./pascalCase\";\n\ntype BuildSliceDirectoryPathArgs = {\n\tlibraryID: string;\n\tmodel: SharedSlice;\n\thelpers: SliceMachineContext<PluginOptions>[\"helpers\"];\n};\n\nexport const buildSliceDirectoryPath = (\n\targs: BuildSliceDirectoryPathArgs,\n): string => {\n\treturn path.join(\n\t\tbuildSliceLibraryDirectoryPath({\n\t\t\tlibraryID: args.libraryID,\n\t\t\thelpers: args.helpers,\n\t\t}),\n\t\tpascalCase(args.model.name),\n\t);\n};\n"],"names":["path","buildSliceLibraryDirectoryPath","pascalCase"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAea,MAAA,0BAA0B,CACtC,SACW;AACJ,SAAAA,gBAAK,KACXC,8DAA+B;AAAA,IAC9B,WAAW,KAAK;AAAA,IAChB,SAAS,KAAK;AAAA,EACd,CAAA,GACDC,WAAAA,WAAW,KAAK,MAAM,IAAI,CAAC;AAE7B;;"}
@@ -1,10 +0,0 @@
1
- import type { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
2
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
3
- import { PluginOptions } from "../types";
4
- type BuildSliceDirectoryPathArgs = {
5
- libraryID: string;
6
- model: SharedSlice;
7
- helpers: SliceMachineContext<PluginOptions>["helpers"];
8
- };
9
- export declare const buildSliceDirectoryPath: (args: BuildSliceDirectoryPathArgs) => string;
10
- export {};
@@ -1,13 +0,0 @@
1
- import * as path from "node:path";
2
- import { buildSliceLibraryDirectoryPath } from "./buildSliceLibraryDirectoryPath.js";
3
- import { pascalCase } from "./pascalCase.js";
4
- const buildSliceDirectoryPath = (args) => {
5
- return path.join(buildSliceLibraryDirectoryPath({
6
- libraryID: args.libraryID,
7
- helpers: args.helpers
8
- }), pascalCase(args.model.name));
9
- };
10
- export {
11
- buildSliceDirectoryPath
12
- };
13
- //# sourceMappingURL=buildSliceDirectoryPath.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildSliceDirectoryPath.js","sources":["../../../src/lib/buildSliceDirectoryPath.ts"],"sourcesContent":["import type { SharedSlice } from \"@prismicio/types-internal/lib/customtypes\";\nimport { SliceMachineContext } from \"@slicemachine/plugin-kit\";\nimport * as path from \"node:path\";\n\nimport { PluginOptions } from \"../types\";\n\nimport { buildSliceLibraryDirectoryPath } from \"./buildSliceLibraryDirectoryPath\";\nimport { pascalCase } from \"./pascalCase\";\n\ntype BuildSliceDirectoryPathArgs = {\n\tlibraryID: string;\n\tmodel: SharedSlice;\n\thelpers: SliceMachineContext<PluginOptions>[\"helpers\"];\n};\n\nexport const buildSliceDirectoryPath = (\n\targs: BuildSliceDirectoryPathArgs,\n): string => {\n\treturn path.join(\n\t\tbuildSliceLibraryDirectoryPath({\n\t\t\tlibraryID: args.libraryID,\n\t\t\thelpers: args.helpers,\n\t\t}),\n\t\tpascalCase(args.model.name),\n\t);\n};\n"],"names":[],"mappings":";;;AAea,MAAA,0BAA0B,CACtC,SACW;AACJ,SAAA,KAAK,KACX,+BAA+B;AAAA,IAC9B,WAAW,KAAK;AAAA,IAChB,SAAS,KAAK;AAAA,EACd,CAAA,GACD,WAAW,KAAK,MAAM,IAAI,CAAC;AAE7B;"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const buildSliceLibraryDirectoryPath = (args) => {
4
- return args.helpers.joinPathFromRoot(args.libraryID);
5
- };
6
- exports.buildSliceLibraryDirectoryPath = buildSliceLibraryDirectoryPath;
7
- //# sourceMappingURL=buildSliceLibraryDirectoryPath.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildSliceLibraryDirectoryPath.cjs","sources":["../../../src/lib/buildSliceLibraryDirectoryPath.ts"],"sourcesContent":["import { SliceMachineContext } from \"@slicemachine/plugin-kit\";\n\nimport { PluginOptions } from \"../types\";\n\ntype BuildSliceLibraryDirectoryPathArgs = {\n\tlibraryID: string;\n\thelpers: SliceMachineContext<PluginOptions>[\"helpers\"];\n};\n\nexport const buildSliceLibraryDirectoryPath = (\n\targs: BuildSliceLibraryDirectoryPathArgs,\n): string => {\n\treturn args.helpers.joinPathFromRoot(args.libraryID);\n};\n"],"names":[],"mappings":";;AASa,MAAA,iCAAiC,CAC7C,SACW;AACX,SAAO,KAAK,QAAQ,iBAAiB,KAAK,SAAS;AACpD;;"}
@@ -1,8 +0,0 @@
1
- import { SliceMachineContext } from "@slicemachine/plugin-kit";
2
- import { PluginOptions } from "../types";
3
- type BuildSliceLibraryDirectoryPathArgs = {
4
- libraryID: string;
5
- helpers: SliceMachineContext<PluginOptions>["helpers"];
6
- };
7
- export declare const buildSliceLibraryDirectoryPath: (args: BuildSliceLibraryDirectoryPathArgs) => string;
8
- export {};
@@ -1,7 +0,0 @@
1
- const buildSliceLibraryDirectoryPath = (args) => {
2
- return args.helpers.joinPathFromRoot(args.libraryID);
3
- };
4
- export {
5
- buildSliceLibraryDirectoryPath
6
- };
7
- //# sourceMappingURL=buildSliceLibraryDirectoryPath.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildSliceLibraryDirectoryPath.js","sources":["../../../src/lib/buildSliceLibraryDirectoryPath.ts"],"sourcesContent":["import { SliceMachineContext } from \"@slicemachine/plugin-kit\";\n\nimport { PluginOptions } from \"../types\";\n\ntype BuildSliceLibraryDirectoryPathArgs = {\n\tlibraryID: string;\n\thelpers: SliceMachineContext<PluginOptions>[\"helpers\"];\n};\n\nexport const buildSliceLibraryDirectoryPath = (\n\targs: BuildSliceLibraryDirectoryPathArgs,\n): string => {\n\treturn args.helpers.joinPathFromRoot(args.libraryID);\n};\n"],"names":[],"mappings":"AASa,MAAA,iCAAiC,CAC7C,SACW;AACX,SAAO,KAAK,QAAQ,iBAAiB,KAAK,SAAS;AACpD;"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const fs = require("node:fs/promises");
4
- function _interopNamespaceDefault(e) {
5
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
6
- if (e) {
7
- for (const k in e) {
8
- if (k !== "default") {
9
- const d = Object.getOwnPropertyDescriptor(e, k);
10
- Object.defineProperty(n, k, d.get ? d : {
11
- enumerable: true,
12
- get: () => e[k]
13
- });
14
- }
15
- }
16
- }
17
- n.default = e;
18
- return Object.freeze(n);
19
- }
20
- const fs__namespace = /* @__PURE__ */ _interopNamespaceDefault(fs);
21
- const checkPathExists = async (path) => {
22
- try {
23
- await fs__namespace.access(path);
24
- return true;
25
- } catch {
26
- return false;
27
- }
28
- };
29
- exports.checkPathExists = checkPathExists;
30
- //# sourceMappingURL=checkPathExists.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkPathExists.cjs","sources":["../../../src/lib/checkPathExists.ts"],"sourcesContent":["import * as fs from \"node:fs/promises\";\nimport { PathLike } from \"node:fs\";\n\nexport const checkPathExists = async (path: PathLike): Promise<boolean> => {\n\ttry {\n\t\tawait fs.access(path);\n\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n};\n"],"names":["fs"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGa,MAAA,kBAAkB,OAAO,SAAoC;AACrE,MAAA;AACG,UAAAA,cAAG,OAAO,IAAI;AAEb,WAAA;AAAA,EAAA,QACN;AACM,WAAA;AAAA,EACP;AACF;;"}
@@ -1,2 +0,0 @@
1
- import { PathLike } from "node:fs";
2
- export declare const checkPathExists: (path: PathLike) => Promise<boolean>;
@@ -1,13 +0,0 @@
1
- import * as fs from "node:fs/promises";
2
- const checkPathExists = async (path) => {
3
- try {
4
- await fs.access(path);
5
- return true;
6
- } catch {
7
- return false;
8
- }
9
- };
10
- export {
11
- checkPathExists
12
- };
13
- //# sourceMappingURL=checkPathExists.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkPathExists.js","sources":["../../../src/lib/checkPathExists.ts"],"sourcesContent":["import * as fs from \"node:fs/promises\";\nimport { PathLike } from \"node:fs\";\n\nexport const checkPathExists = async (path: PathLike): Promise<boolean> => {\n\ttry {\n\t\tawait fs.access(path);\n\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n};\n"],"names":[],"mappings":";AAGa,MAAA,kBAAkB,OAAO,SAAoC;AACrE,MAAA;AACG,UAAA,GAAG,OAAO,IAAI;AAEb,WAAA;AAAA,EAAA,QACN;AACM,WAAA;AAAA,EACP;AACF;"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const isSharedSliceModel = (input) => {
4
- return typeof input === "object" && input !== null && "type" in input && input.type === "SharedSlice" && typeof input.id === "string";
5
- };
6
- exports.isSharedSliceModel = isSharedSliceModel;
7
- //# sourceMappingURL=isSharedSliceModel.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSharedSliceModel.cjs","sources":["../../../src/lib/isSharedSliceModel.ts"],"sourcesContent":["import type { SharedSlice } from \"@prismicio/types-internal/lib/customtypes\";\n\nexport const isSharedSliceModel = (\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n\tinput: any,\n): input is SharedSlice => {\n\treturn (\n\t\ttypeof input === \"object\" &&\n\t\tinput !== null &&\n\t\t\"type\" in input &&\n\t\tinput.type === \"SharedSlice\" &&\n\t\ttypeof input.id === \"string\"\n\t);\n};\n"],"names":[],"mappings":";;AAEa,MAAA,qBAAqB,CAEjC,UACyB;AACzB,SACC,OAAO,UAAU,YACjB,UAAU,QACV,UAAU,SACV,MAAM,SAAS,iBACf,OAAO,MAAM,OAAO;AAEtB;;"}
@@ -1,335 +0,0 @@
1
- export declare const isSharedSliceModel: (input: any) => input is {
2
- id: string;
3
- type: "SharedSlice";
4
- name: string;
5
- variations: readonly ({
6
- id: string;
7
- name: string;
8
- description: string;
9
- imageUrl: string;
10
- docURL: string;
11
- version: string;
12
- } & {
13
- display?: string | undefined;
14
- primary?: {
15
- [x: string]: ({
16
- type: "Color";
17
- } & {
18
- fieldset?: string | null | undefined;
19
- config?: {
20
- label?: string | null | undefined;
21
- placeholder?: string | undefined;
22
- } | undefined;
23
- }) | ({
24
- type: "Boolean";
25
- } & {
26
- config?: {
27
- label?: string | null | undefined;
28
- default_value?: boolean | undefined;
29
- placeholder_true?: string | undefined;
30
- placeholder_false?: string | undefined;
31
- } | undefined;
32
- }) | ({
33
- type: "Embed";
34
- } & {
35
- fieldset?: string | null | undefined;
36
- config?: {
37
- label?: string | null | undefined;
38
- placeholder?: string | undefined;
39
- useAsTitle?: boolean | undefined;
40
- } | undefined;
41
- }) | ({
42
- type: "GeoPoint";
43
- } & {
44
- fieldset?: string | null | undefined;
45
- config?: {
46
- label?: string | null | undefined;
47
- } | undefined;
48
- }) | ({
49
- type: "Date";
50
- } & {
51
- fieldset?: string | null | undefined;
52
- config?: {
53
- label?: string | null | undefined;
54
- placeholder?: string | undefined;
55
- default?: string | undefined;
56
- } | undefined;
57
- }) | ({
58
- type: "Number";
59
- } & {
60
- fieldset?: string | null | undefined;
61
- config?: {
62
- label?: string | null | undefined;
63
- placeholder?: string | undefined;
64
- min?: number | undefined;
65
- max?: number | undefined;
66
- step?: number | undefined;
67
- } | undefined;
68
- }) | ({
69
- type: "Range";
70
- } & {
71
- fieldset?: string | null | undefined;
72
- config?: {
73
- label?: string | null | undefined;
74
- placeholder?: string | undefined;
75
- min?: number | undefined;
76
- max?: number | undefined;
77
- step?: number | undefined;
78
- } | undefined;
79
- }) | ({
80
- type: "StructuredText";
81
- } & {
82
- fieldset?: string | null | undefined;
83
- config?: {
84
- label?: string | null | undefined;
85
- placeholder?: string | undefined;
86
- useAsTitle?: boolean | undefined;
87
- single?: string | undefined;
88
- multi?: string | undefined;
89
- imageConstraint?: {
90
- width?: number | null | undefined;
91
- height?: number | null | undefined;
92
- } | undefined;
93
- labels?: readonly string[] | undefined;
94
- allowTargetBlank?: boolean | undefined;
95
- } | undefined;
96
- }) | ({
97
- type: "Select";
98
- } & {
99
- fieldset?: string | null | undefined;
100
- config?: {
101
- label?: string | null | undefined;
102
- placeholder?: string | undefined;
103
- default_value?: string | undefined;
104
- options?: readonly string[] | undefined;
105
- } | undefined;
106
- }) | ({
107
- type: "Separator";
108
- } & {
109
- config?: {
110
- label?: string | null | undefined;
111
- } | undefined;
112
- }) | ({
113
- type: "Text";
114
- } & {
115
- fieldset?: string | null | undefined;
116
- config?: {
117
- label?: string | null | undefined;
118
- useAsTitle?: boolean | undefined;
119
- placeholder?: string | undefined;
120
- } | undefined;
121
- }) | ({
122
- type: "Timestamp";
123
- } & {
124
- fieldset?: string | null | undefined;
125
- config?: {
126
- label?: string | null | undefined;
127
- placeholder?: string | undefined;
128
- default?: string | undefined;
129
- } | undefined;
130
- }) | ({
131
- type: "Link";
132
- } & {
133
- fieldset?: string | null | undefined;
134
- config?: {
135
- label?: string | null | undefined;
136
- useAsTitle?: boolean | undefined;
137
- placeholder?: string | undefined;
138
- select?: "document" | "media" | "web" | null | undefined;
139
- customtypes?: readonly string[] | undefined;
140
- masks?: readonly string[] | undefined;
141
- tags?: readonly string[] | undefined;
142
- allowTargetBlank?: boolean | undefined;
143
- } | undefined;
144
- }) | ({
145
- type: "Image";
146
- } & {
147
- fieldset?: string | null | undefined;
148
- config?: {
149
- label?: string | null | undefined;
150
- placeholder?: string | undefined;
151
- constraint?: {
152
- width?: number | null | undefined;
153
- height?: number | null | undefined;
154
- } | undefined;
155
- thumbnails?: readonly ({
156
- name: string;
157
- } & {
158
- width?: number | null | undefined;
159
- height?: number | null | undefined;
160
- })[] | undefined;
161
- } | undefined;
162
- }) | ({
163
- type: "IntegrationFields";
164
- } & {
165
- fieldset?: string | null | undefined;
166
- config?: {
167
- label?: string | null | undefined;
168
- placeholder?: string | undefined;
169
- catalog?: string | undefined;
170
- } | undefined;
171
- });
172
- } | undefined;
173
- items?: {
174
- [x: string]: ({
175
- type: "Color";
176
- } & {
177
- fieldset?: string | null | undefined;
178
- config?: {
179
- label?: string | null | undefined;
180
- placeholder?: string | undefined;
181
- } | undefined;
182
- }) | ({
183
- type: "Boolean";
184
- } & {
185
- config?: {
186
- label?: string | null | undefined;
187
- default_value?: boolean | undefined;
188
- placeholder_true?: string | undefined;
189
- placeholder_false?: string | undefined;
190
- } | undefined;
191
- }) | ({
192
- type: "Embed";
193
- } & {
194
- fieldset?: string | null | undefined;
195
- config?: {
196
- label?: string | null | undefined;
197
- placeholder?: string | undefined;
198
- useAsTitle?: boolean | undefined;
199
- } | undefined;
200
- }) | ({
201
- type: "GeoPoint";
202
- } & {
203
- fieldset?: string | null | undefined;
204
- config?: {
205
- label?: string | null | undefined;
206
- } | undefined;
207
- }) | ({
208
- type: "Date";
209
- } & {
210
- fieldset?: string | null | undefined;
211
- config?: {
212
- label?: string | null | undefined;
213
- placeholder?: string | undefined;
214
- default?: string | undefined;
215
- } | undefined;
216
- }) | ({
217
- type: "Number";
218
- } & {
219
- fieldset?: string | null | undefined;
220
- config?: {
221
- label?: string | null | undefined;
222
- placeholder?: string | undefined;
223
- min?: number | undefined;
224
- max?: number | undefined;
225
- step?: number | undefined;
226
- } | undefined;
227
- }) | ({
228
- type: "Range";
229
- } & {
230
- fieldset?: string | null | undefined;
231
- config?: {
232
- label?: string | null | undefined;
233
- placeholder?: string | undefined;
234
- min?: number | undefined;
235
- max?: number | undefined;
236
- step?: number | undefined;
237
- } | undefined;
238
- }) | ({
239
- type: "StructuredText";
240
- } & {
241
- fieldset?: string | null | undefined;
242
- config?: {
243
- label?: string | null | undefined;
244
- placeholder?: string | undefined;
245
- useAsTitle?: boolean | undefined;
246
- single?: string | undefined;
247
- multi?: string | undefined;
248
- imageConstraint?: {
249
- width?: number | null | undefined;
250
- height?: number | null | undefined;
251
- } | undefined;
252
- labels?: readonly string[] | undefined;
253
- allowTargetBlank?: boolean | undefined;
254
- } | undefined;
255
- }) | ({
256
- type: "Select";
257
- } & {
258
- fieldset?: string | null | undefined;
259
- config?: {
260
- label?: string | null | undefined;
261
- placeholder?: string | undefined;
262
- default_value?: string | undefined;
263
- options?: readonly string[] | undefined;
264
- } | undefined;
265
- }) | ({
266
- type: "Separator";
267
- } & {
268
- config?: {
269
- label?: string | null | undefined;
270
- } | undefined;
271
- }) | ({
272
- type: "Text";
273
- } & {
274
- fieldset?: string | null | undefined;
275
- config?: {
276
- label?: string | null | undefined;
277
- useAsTitle?: boolean | undefined;
278
- placeholder?: string | undefined;
279
- } | undefined;
280
- }) | ({
281
- type: "Timestamp";
282
- } & {
283
- fieldset?: string | null | undefined;
284
- config?: {
285
- label?: string | null | undefined;
286
- placeholder?: string | undefined;
287
- default?: string | undefined;
288
- } | undefined;
289
- }) | ({
290
- type: "Link";
291
- } & {
292
- fieldset?: string | null | undefined;
293
- config?: {
294
- label?: string | null | undefined;
295
- useAsTitle?: boolean | undefined;
296
- placeholder?: string | undefined;
297
- select?: "document" | "media" | "web" | null | undefined;
298
- customtypes?: readonly string[] | undefined;
299
- masks?: readonly string[] | undefined;
300
- tags?: readonly string[] | undefined;
301
- allowTargetBlank?: boolean | undefined;
302
- } | undefined;
303
- }) | ({
304
- type: "Image";
305
- } & {
306
- fieldset?: string | null | undefined;
307
- config?: {
308
- label?: string | null | undefined;
309
- placeholder?: string | undefined;
310
- constraint?: {
311
- width?: number | null | undefined;
312
- height?: number | null | undefined;
313
- } | undefined;
314
- thumbnails?: readonly ({
315
- name: string;
316
- } & {
317
- width?: number | null | undefined;
318
- height?: number | null | undefined;
319
- })[] | undefined;
320
- } | undefined;
321
- }) | ({
322
- type: "IntegrationFields";
323
- } & {
324
- fieldset?: string | null | undefined;
325
- config?: {
326
- label?: string | null | undefined;
327
- placeholder?: string | undefined;
328
- catalog?: string | undefined;
329
- } | undefined;
330
- });
331
- } | undefined;
332
- })[];
333
- } & {
334
- description?: string | undefined;
335
- };
@@ -1,7 +0,0 @@
1
- const isSharedSliceModel = (input) => {
2
- return typeof input === "object" && input !== null && "type" in input && input.type === "SharedSlice" && typeof input.id === "string";
3
- };
4
- export {
5
- isSharedSliceModel
6
- };
7
- //# sourceMappingURL=isSharedSliceModel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSharedSliceModel.js","sources":["../../../src/lib/isSharedSliceModel.ts"],"sourcesContent":["import type { SharedSlice } from \"@prismicio/types-internal/lib/customtypes\";\n\nexport const isSharedSliceModel = (\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\n\tinput: any,\n): input is SharedSlice => {\n\treturn (\n\t\ttypeof input === \"object\" &&\n\t\tinput !== null &&\n\t\t\"type\" in input &&\n\t\tinput.type === \"SharedSlice\" &&\n\t\ttypeof input.id === \"string\"\n\t);\n};\n"],"names":[],"mappings":"AAEa,MAAA,qBAAqB,CAEjC,UACyB;AACzB,SACC,OAAO,UAAU,YACjB,UAAU,QACV,UAAU,SACV,MAAM,SAAS,iBACf,OAAO,MAAM,OAAO;AAEtB;"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const fs = require("node:fs/promises");
4
- function _interopNamespaceDefault(e) {
5
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
6
- if (e) {
7
- for (const k in e) {
8
- if (k !== "default") {
9
- const d = Object.getOwnPropertyDescriptor(e, k);
10
- Object.defineProperty(n, k, d.get ? d : {
11
- enumerable: true,
12
- get: () => e[k]
13
- });
14
- }
15
- }
16
- }
17
- n.default = e;
18
- return Object.freeze(n);
19
- }
20
- const fs__namespace = /* @__PURE__ */ _interopNamespaceDefault(fs);
21
- const readJSONFile = async (path) => {
22
- const contents = await fs__namespace.readFile(path, "utf8");
23
- return JSON.parse(contents);
24
- };
25
- exports.readJSONFile = readJSONFile;
26
- //# sourceMappingURL=readJSONFile.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"readJSONFile.cjs","sources":["../../../src/lib/readJSONFile.ts"],"sourcesContent":["import * as fs from \"node:fs/promises\";\n\nexport const readJSONFile = async <T = unknown>(path: string): Promise<T> => {\n\tconst contents = await fs.readFile(path, \"utf8\");\n\n\treturn JSON.parse(contents);\n};\n"],"names":["fs"],"mappings":";;;;;;;;;;;;;;;;;;;;AAEa,MAAA,eAAe,OAAoB,SAA4B;AAC3E,QAAM,WAAW,MAAMA,cAAG,SAAS,MAAM,MAAM;AAExC,SAAA,KAAK,MAAM,QAAQ;AAC3B;;"}
@@ -1 +0,0 @@
1
- export declare const readJSONFile: <T = unknown>(path: string) => Promise<T>;