@sprucelabs/spruce-templates 28.0.2 → 28.0.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/build/index.js
CHANGED
|
@@ -18,7 +18,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.importExtractorUtil = exports.templates = void 0;
|
|
21
|
-
const fs_1 = __importDefault(require("fs"));
|
|
22
21
|
const path_1 = __importDefault(require("path"));
|
|
23
22
|
const schema_1 = require("@sprucelabs/schema");
|
|
24
23
|
const spruce_skill_utils_1 = require("@sprucelabs/spruce-skill-utils");
|
|
@@ -212,12 +211,12 @@ exports.templates = {
|
|
|
212
211
|
async isValidTemplatedDirectory(options) {
|
|
213
212
|
const { kind, dir } = options;
|
|
214
213
|
if (kind === templates_types_1.DirectoryTemplateCode.Skill) {
|
|
215
|
-
return
|
|
214
|
+
return spruce_skill_utils_1.diskUtil.doesFileExist(path_1.default.join(dir, 'package.json'));
|
|
216
215
|
}
|
|
217
216
|
const filesToCheck = await DirectoryTemplateUtility_1.default.filesInTemplate(kind);
|
|
218
217
|
let filesMissing = false;
|
|
219
218
|
for (const file of filesToCheck) {
|
|
220
|
-
if (!
|
|
219
|
+
if (!spruce_skill_utils_1.diskUtil.doesDirExist(file.path)) {
|
|
221
220
|
filesMissing = true;
|
|
222
221
|
break;
|
|
223
222
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import fs from 'fs'
|
|
2
1
|
import pathUtil from 'path'
|
|
3
2
|
import globby from '@sprucelabs/globby'
|
|
4
3
|
import { SchemaError } from '@sprucelabs/schema'
|
|
@@ -54,7 +53,7 @@ class SchemaFeature implements SkillFeature {
|
|
|
54
53
|
'@sprucelabs/schema'
|
|
55
54
|
)
|
|
56
55
|
|
|
57
|
-
const isSchemaInstalled =
|
|
56
|
+
const isSchemaInstalled = diskUtil.doesFileExist(schemaPath)
|
|
58
57
|
|
|
59
58
|
return isSchemaInstalled
|
|
60
59
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "28.0.
|
|
6
|
+
"version": "28.0.4",
|
|
7
7
|
"files": [
|
|
8
8
|
"build/**/*",
|
|
9
9
|
"tsconfig.json",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"watch.tsc": "tsc -w"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@sprucelabs/mercury-types": "^48.0.
|
|
60
|
-
"@sprucelabs/schema": "^32.1.
|
|
61
|
-
"@sprucelabs/spruce-event-utils": "^41.0.
|
|
62
|
-
"@sprucelabs/spruce-skill-utils": "^32.0.
|
|
59
|
+
"@sprucelabs/mercury-types": "^48.0.59",
|
|
60
|
+
"@sprucelabs/schema": "^32.1.8",
|
|
61
|
+
"@sprucelabs/spruce-event-utils": "^41.0.66",
|
|
62
|
+
"@sprucelabs/spruce-skill-utils": "^32.0.60",
|
|
63
63
|
"fs-extra": "^11.2.0",
|
|
64
64
|
"handlebars": "^4.7.8",
|
|
65
65
|
"lodash": "^4.17.21",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/fs-extra": "^11.0.4",
|
|
70
70
|
"@types/lodash": "^4.17.20",
|
|
71
|
-
"@types/node": "^24.2.
|
|
71
|
+
"@types/node": "^24.2.1",
|
|
72
72
|
"chokidar-cli": "^3.0.0",
|
|
73
73
|
"concurrently": "^9.2.0",
|
|
74
74
|
"conventional-changelog-sprucelabs": "2.0.1",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"yarn-upgrade-all": {
|
|
79
79
|
"ignore": []
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "6d704dd5a3422892ed0ee43257ec801afa6bb217"
|
|
82
82
|
}
|