@pega/custom-dx-components 0.25.49-TEST-0.5 → 0.25.49-TEST-0.6
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/package.json
CHANGED
package/src/tasks/init/index.js
CHANGED
|
@@ -107,20 +107,12 @@ export default async options => {
|
|
|
107
107
|
'node_modules/@pega/custom-dx-components'
|
|
108
108
|
);
|
|
109
109
|
|
|
110
|
-
if (!fs.existsSync(options.componentDirectory)){
|
|
111
|
-
fs.mkdirSync(options.componentDirectory, { recursive: true });
|
|
112
|
-
};
|
|
113
|
-
|
|
114
110
|
|
|
115
111
|
options.componentLibraryUtilsDirectory = path.join(
|
|
116
112
|
options.targetDirectory,
|
|
117
113
|
'node_modules/@pega/constellation-dx-components-build-utils'
|
|
118
114
|
);
|
|
119
115
|
|
|
120
|
-
if (!fs.existsSync(options.componentLibraryUtilsDirectory)){
|
|
121
|
-
fs.mkdirSync(options.componentLibraryUtilsDirectory, { recursive: true });
|
|
122
|
-
};
|
|
123
|
-
|
|
124
116
|
const installDependenciesText = `Installing dependencies. This will take a couple of minutes.`;
|
|
125
117
|
|
|
126
118
|
const tasks = new Listr(
|
|
@@ -153,15 +145,25 @@ export default async options => {
|
|
|
153
145
|
|
|
154
146
|
{
|
|
155
147
|
title: 'Installing tasks dependencies',
|
|
156
|
-
task: () =>
|
|
157
|
-
|
|
148
|
+
task: () => {
|
|
149
|
+
if (!fs.existsSync(options.componentDirectory)){
|
|
150
|
+
fs.mkdirSync(options.componentDirectory, { recursive: true });
|
|
151
|
+
};
|
|
152
|
+
execa('npm', ['i', '--force', '--no-audit', '--no-fund', '--loglevel=error'], { cwd: options.componentDirectory });
|
|
153
|
+
}
|
|
154
|
+
|
|
158
155
|
},
|
|
159
156
|
{
|
|
160
157
|
title: 'Installing tasks library dependencies',
|
|
161
|
-
task: () =>
|
|
158
|
+
task: () => {
|
|
159
|
+
if (!fs.existsSync(options.componentLibraryUtilsDirectory)){
|
|
160
|
+
fs.mkdirSync(options.componentLibraryUtilsDirectory, { recursive: true });
|
|
161
|
+
};
|
|
162
162
|
execa('npm', ['i', '--force', '--no-audit', '--no-fund', '--loglevel=error'], {
|
|
163
163
|
cwd: options.componentLibraryUtilsDirectory
|
|
164
|
-
})
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
|
|
165
167
|
},
|
|
166
168
|
|
|
167
169
|
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@babel/preset-react": "^7.27.1",
|
|
108
108
|
"@babel/preset-typescript": "^7.27.1",
|
|
109
109
|
"@pega/configs": "^0.16.3",
|
|
110
|
-
"@pega/custom-dx-components": "~0.25.49-TEST-0.
|
|
110
|
+
"@pega/custom-dx-components": "~0.25.49-TEST-0.6",
|
|
111
111
|
"@pega/pcore-pconnect-typedefs": "^4.1.0-alpha.1",
|
|
112
112
|
"@storybook/addon-actions": "^8.6.14",
|
|
113
113
|
"@storybook/addon-essentials": "^8.6.14",
|