@pega/custom-dx-components 0.242.8 → 0.242.9

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "0.242.8",
3
+ "version": "0.242.9",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -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,13 @@ 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
+ })
144
153
  }
145
154
  /* {
146
155
  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.8",
93
+ "@pega/custom-dx-components": "0.242.9",
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",