@sitecore-jss/sitecore-jss-dev-tools 22.12.1 → 22.12.3
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.
|
@@ -15,12 +15,17 @@ function packageGenerate(options) {
|
|
|
15
15
|
fs_extra_1.default.emptyDirSync(options.outputPath);
|
|
16
16
|
const datepath = `${new Date().getTime()}`;
|
|
17
17
|
// manifest at temp path, need to save path for adding to metadata
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
18
|
+
const manifestTargetRelativePath = path_1.default.join('.', 'temp', options.appName, datepath);
|
|
19
|
+
const manifestTargetPath = path_1.default.isAbsolute(options.outputPath)
|
|
20
|
+
? path_1.default.join(options.outputPath, manifestTargetRelativePath)
|
|
21
|
+
: path_1.default.join('.', options.outputPath, manifestTargetRelativePath);
|
|
22
|
+
const manifestSourcePath = path_1.default.isAbsolute(options.manifestPath)
|
|
23
|
+
? options.manifestPath
|
|
24
|
+
: path_1.default.join('.', options.manifestPath);
|
|
25
|
+
fs_extra_1.default.copySync(manifestSourcePath, manifestTargetPath);
|
|
21
26
|
// generate manifest package
|
|
22
27
|
const updatePackage = path_1.default.join(options.outputPath, `${options.appName}.${datepath}.manifest.zip`);
|
|
23
28
|
return new Promise((resolve) => {
|
|
24
|
-
(0, update_1.createPackage)(
|
|
29
|
+
(0, update_1.createPackage)(manifestTargetPath, updatePackage, () => resolve(null));
|
|
25
30
|
});
|
|
26
31
|
}
|
package/dist/cjs/update/index.js
CHANGED
|
@@ -24,7 +24,7 @@ const getEntries = (folder) => {
|
|
|
24
24
|
const files = walkSync(folder);
|
|
25
25
|
const entries = [];
|
|
26
26
|
files.forEach((entry) => {
|
|
27
|
-
const entryPath = path_1.default.join('.', entry);
|
|
27
|
+
const entryPath = path_1.default.isAbsolute(entry) ? entry : path_1.default.join('.', entry);
|
|
28
28
|
// remove initial folder and convert to fwd slash
|
|
29
29
|
let name = path_1.default.relative(folder, entryPath);
|
|
30
30
|
if (entryPath.endsWith(path_1.default.sep)) {
|
|
@@ -9,12 +9,17 @@ export function packageGenerate(options) {
|
|
|
9
9
|
fsExtra.emptyDirSync(options.outputPath);
|
|
10
10
|
const datepath = `${new Date().getTime()}`;
|
|
11
11
|
// manifest at temp path, need to save path for adding to metadata
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
12
|
+
const manifestTargetRelativePath = path.join('.', 'temp', options.appName, datepath);
|
|
13
|
+
const manifestTargetPath = path.isAbsolute(options.outputPath)
|
|
14
|
+
? path.join(options.outputPath, manifestTargetRelativePath)
|
|
15
|
+
: path.join('.', options.outputPath, manifestTargetRelativePath);
|
|
16
|
+
const manifestSourcePath = path.isAbsolute(options.manifestPath)
|
|
17
|
+
? options.manifestPath
|
|
18
|
+
: path.join('.', options.manifestPath);
|
|
19
|
+
fsExtra.copySync(manifestSourcePath, manifestTargetPath);
|
|
15
20
|
// generate manifest package
|
|
16
21
|
const updatePackage = path.join(options.outputPath, `${options.appName}.${datepath}.manifest.zip`);
|
|
17
22
|
return new Promise((resolve) => {
|
|
18
|
-
createPackage(
|
|
23
|
+
createPackage(manifestTargetPath, updatePackage, () => resolve(null));
|
|
19
24
|
});
|
|
20
25
|
}
|
package/dist/esm/update/index.js
CHANGED
|
@@ -18,7 +18,7 @@ const getEntries = (folder) => {
|
|
|
18
18
|
const files = walkSync(folder);
|
|
19
19
|
const entries = [];
|
|
20
20
|
files.forEach((entry) => {
|
|
21
|
-
const entryPath = path.join('.', entry);
|
|
21
|
+
const entryPath = path.isAbsolute(entry) ? entry : path.join('.', entry);
|
|
22
22
|
// remove initial folder and convert to fwd slash
|
|
23
23
|
let name = path.relative(folder, entryPath);
|
|
24
24
|
if (entryPath.endsWith(path.sep)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-dev-tools",
|
|
3
|
-
"version": "22.12.
|
|
3
|
+
"version": "22.12.3",
|
|
4
4
|
"description": "Utilities to assist in the development and deployment of Sitecore JSS apps.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/parser": "^7.28.0",
|
|
36
|
-
"@sitecore-jss/sitecore-jss": "22.12.
|
|
36
|
+
"@sitecore-jss/sitecore-jss": "22.12.3",
|
|
37
37
|
"chalk": "^4.1.2",
|
|
38
38
|
"chokidar": "^4.0.3",
|
|
39
39
|
"del": "^6.0.0",
|
|
40
40
|
"express": "^5.1.0",
|
|
41
41
|
"form-data": "^4.0.4",
|
|
42
42
|
"fs-extra": "^11.3.1",
|
|
43
|
-
"glob": "^
|
|
43
|
+
"glob": "^13.0.6",
|
|
44
44
|
"import-fresh": "^3.3.1",
|
|
45
45
|
"joi": "^18.0.0",
|
|
46
46
|
"js-yaml": "^4.1.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"typescript": "~5.9.2"
|
|
84
84
|
},
|
|
85
85
|
"types": "types/index.d.ts",
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "90ccd80a8796bed90ab5500f27e9c35b90b114be",
|
|
87
87
|
"files": [
|
|
88
88
|
"dist",
|
|
89
89
|
"types",
|