@pega/custom-dx-components 0.242.5 → 0.242.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "0.242.5",
3
+ "version": "0.242.6",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -91,12 +91,14 @@ export default async options => {
91
91
 
92
92
  const questions = getInitProjectQuestions();
93
93
 
94
+ let projectDirectory;
95
+
94
96
  await inquirer.prompt(questions).then(async answers => {
95
97
  projectName = answers.projectName;
96
98
  projectName = sanitize(projectName).toLowerCase();
97
99
  options = { ...options, ...answers };
98
100
 
99
- const projectDirectory = `./${projectName}`;
101
+ projectDirectory = `./${projectName}`;
100
102
 
101
103
  if (!fs.existsSync(projectDirectory)) {
102
104
  fs.mkdirSync(projectDirectory);
@@ -142,8 +144,7 @@ export default async options => {
142
144
  },
143
145
  {
144
146
  title: 'Updating',
145
- task: () =>
146
- execPromise('npm update', { cwd: options.componentDirectory })
147
+ task: () => execPromise('npm update', { cwd: projectDirectory })
147
148
  }
148
149
  /* {
149
150
  title: 'Installing quick run',
@@ -90,7 +90,7 @@
90
90
  "@babel/preset-env": "^7.23.3",
91
91
  "@babel/preset-react": "^7.23.3",
92
92
  "@pega/configs": "^0.6.0",
93
- "@pega/custom-dx-components": "0.242.5",
93
+ "@pega/custom-dx-components": "0.242.6",
94
94
  "@pega/pcore-pconnect-typedefs": "2.0.0",
95
95
  "@storybook/addon-actions": "^7.6.7",
96
96
  "@storybook/addon-essentials": "^7.6.7",