@pega/custom-dx-components 23.1.13 → 23.1.14

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": "23.1.13",
3
+ "version": "23.1.14",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@pega/configs": "^0.6.0",
72
- "@pega/custom-dx-components": "23.1.13",
72
+ "@pega/custom-dx-components": "23.1.14",
73
73
  "@pega/pcore-pconnect-typedefs": "~2.1.1",
74
74
  "@storybook/addon-actions": "^7.6.7",
75
75
  "@storybook/addon-essentials": "^7.6.7",
@@ -1,50 +1,32 @@
1
-
2
1
  import fs from 'fs';
3
- import path, { join } from 'path';
4
- import { URL, fileURLToPath } from 'url';
2
+ import path from 'path';
5
3
 
6
4
  import chalk from 'chalk';
7
- import { up } from 'inquirer/lib/utils/readline.js';
8
-
9
- import {
10
- convertIntoPascalCase,
11
- showVersion,
12
- updateUseWebPackPromotion
13
- } from '../../util.js';
14
- import {
15
- WEBPACK_CONFIG_JS_FILENAME,
16
- BUILDER_INDEX_FILE_PATH
17
- } from '../../constants.js';
18
-
19
5
 
6
+ import { showVersion, updateUseWebPackPromotion } from '../../util.js';
7
+ import { WEBPACK_CONFIG_JS_FILENAME } from '../../constants.js';
20
8
 
21
9
  export const renamePromotedWebPack = async () => {
22
-
23
10
  // call this function from top level
24
11
  // fs.copyFileSync("./webpack.config.js", "webpack.config.js")
25
12
 
26
13
  const promoteWebPackDir = path.resolve(WEBPACK_CONFIG_JS_FILENAME);
27
- const renamedPromoteWebPackDir = path.resolve(`${WEBPACK_CONFIG_JS_FILENAME }.notused`);
14
+ const renamedPromoteWebPackDir = path.resolve(`${WEBPACK_CONFIG_JS_FILENAME}.notused`);
28
15
 
29
16
  try {
30
17
  fs.renameSync(promoteWebPackDir, renamedPromoteWebPackDir);
31
- }
32
- catch (ex) {
18
+ } catch (ex) {
33
19
  console.log(chalk.bold.red(`File ${promoteWebPackDir} not found.`));
34
20
  process.exit();
35
21
  }
36
22
 
37
- console.log(chalk.bold.green("Bundler reverted to using internal webpack.config.js."));
23
+ console.log(chalk.bold.green('Bundler reverted to using internal webpack.config.js.'));
38
24
  console.log(chalk.bold.green(`File ${promoteWebPackDir} marked as not used.`));
25
+ };
39
26
 
40
- }
41
-
42
-
43
-
44
- export default async options => {
27
+ export default async () => {
45
28
  showVersion();
46
29
 
47
30
  await renamePromotedWebPack();
48
31
  await updateUseWebPackPromotion(false);
49
-
50
32
  };