@pega/custom-dx-components 8.8.6 → 8.8.7

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": "8.8.6",
3
+ "version": "8.8.7",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -47,6 +47,7 @@ const copyProjectTemplate = async options => {
47
47
  clobber: false
48
48
  });
49
49
  const packageJsonPath = path.join(options.targetDirectory, 'package.json.mustache');
50
+ const templateNPMRCPath = path.join(options.targetDirectory, 'templateNPMRC.txt');
50
51
 
51
52
  let { organization, projectName } = options;
52
53
 
@@ -65,6 +66,10 @@ const copyProjectTemplate = async options => {
65
66
  const output = compileMustacheTemplate(packageJsonPath, options);
66
67
  fs.writeFileSync(packageJsonPath, output);
67
68
  fs.renameSync(packageJsonPath, packageJsonPath.replace('.mustache', ''));
69
+
70
+ // rename template NPMRC to .npmrc, need to do this because npmjs won't publish an .npmrc file
71
+ fs.renameSync(templateNPMRCPath, templateNPMRCPath.replace('templateNPMRC.txt', '.npmrc'));
72
+
68
73
  await createLicense(options);
69
74
  };
70
75
 
@@ -123,7 +128,8 @@ export default async options => {
123
128
  },
124
129
  {
125
130
  title: installDependenciesText,
126
- task: () => execPromise('npm i --force --production=false', { cwd: options.targetDirectory })
131
+ task: () =>
132
+ execPromise('npm i --force --production=false', { cwd: options.targetDirectory })
127
133
  }
128
134
  ],
129
135
  {
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@pega/configs": "^0.5.3",
60
- "@pega/custom-dx-components": "^8.8.6",
60
+ "@pega/custom-dx-components": "^8.8.7",
61
61
  "@pega/eslint-config": "^0.3.2",
62
62
  "@storybook/addon-actions": "^6.5.12",
63
63
  "@storybook/addon-essentials": "^6.5.12",
@@ -0,0 +1,8 @@
1
+ # Use default npmjs registry for the SDKs
2
+ registry = https://registry.npmjs.org/
3
+ # For now, turn off npm auto-install of peer dependencies to get rid of warnings
4
+ legacy-peer-deps=true
5
+ # Turn off messages such as > react-sdk@0.1.0 list and > dx-component-builder-sdk list
6
+ loglevel=silent
7
+ #
8
+ #