@slicemachine/plugin-kit 0.4.42-alpha.lh-support-nuxt-4.2 → 0.4.42-alpha.lh-support-nuxt-4.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.
- package/dist/fs/index.cjs +0 -2
- package/dist/fs/index.cjs.map +1 -1
- package/dist/fs/index.d.ts +0 -2
- package/dist/fs/index.js +0 -2
- package/dist/fs/index.js.map +1 -1
- package/package.json +1 -1
- package/src/fs/index.ts +0 -3
- package/dist/fs/joinAppPath.cjs +0 -35
- package/dist/fs/joinAppPath.cjs.map +0 -1
- package/dist/fs/joinAppPath.d.ts +0 -6
- package/dist/fs/joinAppPath.js +0 -18
- package/dist/fs/joinAppPath.js.map +0 -1
- package/src/fs/joinAppPath.ts +0 -28
package/dist/fs/index.cjs
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const checkIsTypeScriptProject = require("./checkIsTypeScriptProject.cjs");
|
|
4
4
|
const upsertGlobalTypeScriptTypes = require("./upsertGlobalTypeScriptTypes.cjs");
|
|
5
5
|
const checkHasProjectFile = require("./checkHasProjectFile.cjs");
|
|
6
|
-
const joinAppPath = require("./joinAppPath.cjs");
|
|
7
6
|
const writeProjectFile = require("./writeProjectFile.cjs");
|
|
8
7
|
const readProjectFile = require("./readProjectFile.cjs");
|
|
9
8
|
const deleteProjectFile = require("./deleteProjectFile.cjs");
|
|
@@ -35,7 +34,6 @@ const readSliceTemplateLibrary = require("./readSliceTemplateLibrary.cjs");
|
|
|
35
34
|
exports.checkIsTypeScriptProject = checkIsTypeScriptProject.checkIsTypeScriptProject;
|
|
36
35
|
exports.upsertGlobalTypeScriptTypes = upsertGlobalTypeScriptTypes.upsertGlobalTypeScriptTypes;
|
|
37
36
|
exports.checkHasProjectFile = checkHasProjectFile.checkHasProjectFile;
|
|
38
|
-
exports.joinAppPath = joinAppPath.joinAppPath;
|
|
39
37
|
exports.writeProjectFile = writeProjectFile.writeProjectFile;
|
|
40
38
|
exports.readProjectFile = readProjectFile.readProjectFile;
|
|
41
39
|
exports.deleteProjectFile = deleteProjectFile.deleteProjectFile;
|
package/dist/fs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/fs/index.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ export { upsertGlobalTypeScriptTypes } from "./upsertGlobalTypeScriptTypes";
|
|
|
3
3
|
export type { UpsertGlobalTypeScriptTypesArgs } from "./upsertGlobalTypeScriptTypes";
|
|
4
4
|
export { checkHasProjectFile } from "./checkHasProjectFile";
|
|
5
5
|
export type { CheckHasProjectFileArgs } from "./checkHasProjectFile";
|
|
6
|
-
export { joinAppPath } from "./joinAppPath";
|
|
7
|
-
export type { JoinAppPathArgs } from "./joinAppPath";
|
|
8
6
|
export { writeProjectFile } from "./writeProjectFile";
|
|
9
7
|
export type { WriteProjectFileArgs } from "./writeProjectFile";
|
|
10
8
|
export { readProjectFile } from "./readProjectFile";
|
package/dist/fs/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { checkIsTypeScriptProject } from "./checkIsTypeScriptProject.js";
|
|
2
2
|
import { upsertGlobalTypeScriptTypes } from "./upsertGlobalTypeScriptTypes.js";
|
|
3
3
|
import { checkHasProjectFile } from "./checkHasProjectFile.js";
|
|
4
|
-
import { joinAppPath } from "./joinAppPath.js";
|
|
5
4
|
import { writeProjectFile } from "./writeProjectFile.js";
|
|
6
5
|
import { readProjectFile } from "./readProjectFile.js";
|
|
7
6
|
import { deleteProjectFile } from "./deleteProjectFile.js";
|
|
@@ -44,7 +43,6 @@ export {
|
|
|
44
43
|
deleteProjectFile,
|
|
45
44
|
deleteSliceDirectory,
|
|
46
45
|
deleteSliceFile,
|
|
47
|
-
joinAppPath,
|
|
48
46
|
readCustomTypeFile,
|
|
49
47
|
readCustomTypeLibrary,
|
|
50
48
|
readCustomTypeModel,
|
package/dist/fs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
package/src/fs/index.ts
CHANGED
|
@@ -12,9 +12,6 @@ export type { UpsertGlobalTypeScriptTypesArgs } from "./upsertGlobalTypeScriptTy
|
|
|
12
12
|
export { checkHasProjectFile } from "./checkHasProjectFile";
|
|
13
13
|
export type { CheckHasProjectFileArgs } from "./checkHasProjectFile";
|
|
14
14
|
|
|
15
|
-
export { joinAppPath } from "./joinAppPath";
|
|
16
|
-
export type { JoinAppPathArgs } from "./joinAppPath";
|
|
17
|
-
|
|
18
15
|
export { writeProjectFile } from "./writeProjectFile";
|
|
19
16
|
export type { WriteProjectFileArgs } from "./writeProjectFile";
|
|
20
17
|
|
package/dist/fs/joinAppPath.cjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const path = require("node:path");
|
|
4
|
-
const checkHasProjectFile = require("./checkHasProjectFile.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 joinAppPath = async (args, ...segments) => {
|
|
23
|
-
for (const appDir of args.appDirs) {
|
|
24
|
-
const hasAppDir = await checkHasProjectFile.checkHasProjectFile({
|
|
25
|
-
filename: appDir,
|
|
26
|
-
helpers: args.helpers
|
|
27
|
-
});
|
|
28
|
-
if (hasAppDir) {
|
|
29
|
-
return path__namespace.join(appDir, ...segments);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return path__namespace.join(...segments);
|
|
33
|
-
};
|
|
34
|
-
exports.joinAppPath = joinAppPath;
|
|
35
|
-
//# sourceMappingURL=joinAppPath.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"joinAppPath.cjs","sources":["../../../src/fs/joinAppPath.ts"],"sourcesContent":["import * as path from \"node:path\";\n\nimport { SliceMachineHelpers } from \"../createSliceMachineHelpers\";\n\nimport { checkHasProjectFile } from \"./checkHasProjectFile\";\n\nexport type JoinAppPathArgs = {\n\tappDirs: string[];\n\thelpers: SliceMachineHelpers;\n};\n\nexport const joinAppPath = async (\n\targs: JoinAppPathArgs,\n\t...segments: string[]\n): Promise<string> => {\n\tfor (const appDir of args.appDirs) {\n\t\tconst hasAppDir = await checkHasProjectFile({\n\t\t\tfilename: appDir,\n\t\t\thelpers: args.helpers,\n\t\t});\n\n\t\tif (hasAppDir) {\n\t\t\treturn path.join(appDir, ...segments);\n\t\t}\n\t}\n\n\treturn path.join(...segments);\n};\n"],"names":["checkHasProjectFile","path"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAWa,MAAA,cAAc,OAC1B,SACG,aACiB;AACT,aAAA,UAAU,KAAK,SAAS;AAC5B,UAAA,YAAY,MAAMA,wCAAoB;AAAA,MAC3C,UAAU;AAAA,MACV,SAAS,KAAK;AAAA,IAAA,CACd;AAED,QAAI,WAAW;AACd,aAAOC,gBAAK,KAAK,QAAQ,GAAG,QAAQ;AAAA,IACpC;AAAA,EACD;AAEM,SAAAA,gBAAK,KAAK,GAAG,QAAQ;AAC7B;;"}
|
package/dist/fs/joinAppPath.d.ts
DELETED
package/dist/fs/joinAppPath.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as path from "node:path";
|
|
2
|
-
import { checkHasProjectFile } from "./checkHasProjectFile.js";
|
|
3
|
-
const joinAppPath = async (args, ...segments) => {
|
|
4
|
-
for (const appDir of args.appDirs) {
|
|
5
|
-
const hasAppDir = await checkHasProjectFile({
|
|
6
|
-
filename: appDir,
|
|
7
|
-
helpers: args.helpers
|
|
8
|
-
});
|
|
9
|
-
if (hasAppDir) {
|
|
10
|
-
return path.join(appDir, ...segments);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return path.join(...segments);
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
joinAppPath
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=joinAppPath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"joinAppPath.js","sources":["../../../src/fs/joinAppPath.ts"],"sourcesContent":["import * as path from \"node:path\";\n\nimport { SliceMachineHelpers } from \"../createSliceMachineHelpers\";\n\nimport { checkHasProjectFile } from \"./checkHasProjectFile\";\n\nexport type JoinAppPathArgs = {\n\tappDirs: string[];\n\thelpers: SliceMachineHelpers;\n};\n\nexport const joinAppPath = async (\n\targs: JoinAppPathArgs,\n\t...segments: string[]\n): Promise<string> => {\n\tfor (const appDir of args.appDirs) {\n\t\tconst hasAppDir = await checkHasProjectFile({\n\t\t\tfilename: appDir,\n\t\t\thelpers: args.helpers,\n\t\t});\n\n\t\tif (hasAppDir) {\n\t\t\treturn path.join(appDir, ...segments);\n\t\t}\n\t}\n\n\treturn path.join(...segments);\n};\n"],"names":[],"mappings":";;AAWa,MAAA,cAAc,OAC1B,SACG,aACiB;AACT,aAAA,UAAU,KAAK,SAAS;AAC5B,UAAA,YAAY,MAAM,oBAAoB;AAAA,MAC3C,UAAU;AAAA,MACV,SAAS,KAAK;AAAA,IAAA,CACd;AAED,QAAI,WAAW;AACd,aAAO,KAAK,KAAK,QAAQ,GAAG,QAAQ;AAAA,IACpC;AAAA,EACD;AAEM,SAAA,KAAK,KAAK,GAAG,QAAQ;AAC7B;"}
|
package/src/fs/joinAppPath.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as path from "node:path";
|
|
2
|
-
|
|
3
|
-
import { SliceMachineHelpers } from "../createSliceMachineHelpers";
|
|
4
|
-
|
|
5
|
-
import { checkHasProjectFile } from "./checkHasProjectFile";
|
|
6
|
-
|
|
7
|
-
export type JoinAppPathArgs = {
|
|
8
|
-
appDirs: string[];
|
|
9
|
-
helpers: SliceMachineHelpers;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const joinAppPath = async (
|
|
13
|
-
args: JoinAppPathArgs,
|
|
14
|
-
...segments: string[]
|
|
15
|
-
): Promise<string> => {
|
|
16
|
-
for (const appDir of args.appDirs) {
|
|
17
|
-
const hasAppDir = await checkHasProjectFile({
|
|
18
|
-
filename: appDir,
|
|
19
|
-
helpers: args.helpers,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
if (hasAppDir) {
|
|
23
|
-
return path.join(appDir, ...segments);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return path.join(...segments);
|
|
28
|
-
};
|