netcore-blueprint 0.0.82 → 0.0.84

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.
Files changed (2) hide show
  1. package/lib/replacer.js +7 -3
  2. package/package.json +1 -1
package/lib/replacer.js CHANGED
@@ -1,4 +1,7 @@
1
- function buildReplaceMap({
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ function buildReplaceMap({
2
5
  sourceModuleName, // "ItemModule" or "__MODULE__"
3
6
  newModuleName // e.g. Product
4
7
  }) {
@@ -35,7 +38,7 @@ function copyAndRenameFiles(src, dest, replaceMap) {
35
38
  const renamed = applyReplacements(entry.name, replaceMap);
36
39
  const destPath = path.join(dest, renamed);
37
40
 
38
- copyAndRenameFiles(srcPath, destPath);
41
+ copyAndRenameFiles(srcPath, destPath, replaceMap);
39
42
  }
40
43
  } else {
41
44
  let content = fs.readFileSync(src, 'utf8');
@@ -151,7 +154,7 @@ function addProjectReferencesToCsproj(hostApiCsprojPath, refs) {
151
154
  }
152
155
 
153
156
  const projectRefXml = refs
154
- .map(r => `<ProjectReference Include="${r}" />`)
157
+ .map(r => ` <ProjectReference Include="${r}" />`)
155
158
  .join('\n');
156
159
 
157
160
  content = appendProjectReferences(content, projectRefXml);
@@ -179,6 +182,7 @@ function appendProjectReferences(content, projectRefXml) {
179
182
  }
180
183
 
181
184
  const newItemGroup = `
185
+
182
186
  <ItemGroup>
183
187
  ${projectRefXml}
184
188
  </ItemGroup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netcore-blueprint",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
4
4
  "description": "A custom project blueprint",
5
5
  "main": "create.js",
6
6
  "bin": {