@pega/custom-dx-components 0.242.8 → 0.242.10
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
|
@@ -91,14 +91,12 @@ export default async options => {
|
|
|
91
91
|
|
|
92
92
|
const questions = getInitProjectQuestions();
|
|
93
93
|
|
|
94
|
-
let projectDirectory;
|
|
95
|
-
|
|
96
94
|
await inquirer.prompt(questions).then(async answers => {
|
|
97
95
|
projectName = answers.projectName;
|
|
98
96
|
projectName = sanitize(projectName).toLowerCase();
|
|
99
97
|
options = { ...options, ...answers };
|
|
100
98
|
|
|
101
|
-
projectDirectory = `./${projectName}`;
|
|
99
|
+
const projectDirectory = `./${projectName}`;
|
|
102
100
|
|
|
103
101
|
if (!fs.existsSync(projectDirectory)) {
|
|
104
102
|
fs.mkdirSync(projectDirectory);
|
|
@@ -113,6 +111,10 @@ export default async options => {
|
|
|
113
111
|
options.targetDirectory,
|
|
114
112
|
'node_modules/@pega/custom-dx-components'
|
|
115
113
|
);
|
|
114
|
+
options.componentLibraryUtilsDirectory = path.join(
|
|
115
|
+
options.targetDirectory,
|
|
116
|
+
'node_modules/@pega/constellation-dx-components-build-utils'
|
|
117
|
+
);
|
|
116
118
|
});
|
|
117
119
|
|
|
118
120
|
const installDependenciesText = `Installing dependencies. This will take a couple of minutes.`;
|
|
@@ -141,6 +143,17 @@ export default async options => {
|
|
|
141
143
|
title: 'Installing tasks dependencies',
|
|
142
144
|
task: () =>
|
|
143
145
|
execPromise('npm i --force --production=false', { cwd: options.componentDirectory })
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
title: 'Installing tasks library dependencies',
|
|
149
|
+
task: () =>
|
|
150
|
+
execPromise('npm i --force --production=false', {
|
|
151
|
+
cwd: options.componentLibraryUtilsDirectory
|
|
152
|
+
})
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
title: 'Updating',
|
|
156
|
+
task: () => execPromise('npm update --dev', { cwd: options.targetDirectory })
|
|
144
157
|
}
|
|
145
158
|
/* {
|
|
146
159
|
title: 'Installing quick run',
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@babel/preset-env": "^7.24.7",
|
|
91
91
|
"@babel/preset-react": "^7.24.7",
|
|
92
92
|
"@pega/configs": "^0.6.0",
|
|
93
|
-
"@pega/custom-dx-components": "0.242.
|
|
93
|
+
"@pega/custom-dx-components": "0.242.10",
|
|
94
94
|
"@pega/pcore-pconnect-typedefs": "2.0.0",
|
|
95
95
|
"@storybook/addon-actions": "^7.6.7",
|
|
96
96
|
"@storybook/addon-essentials": "^7.6.19",
|