@smapiot/pilet-template-angular 0.15.0-beta.4609 → 0.15.0-beta.4610

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/index.js +8 -8
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -1069,10 +1069,12 @@ var require_utils2 = __commonJS({
1069
1069
  const absPath = path_1.posix.join(targetDir, fileName);
1070
1070
  const path = (0, path_1.isAbsolute)(absPath) ? (0, path_1.relative)(root2, absPath) : absPath;
1071
1071
  (0, log_1.log)("verbose", `Adding "source" to package.json: "${path}"`);
1072
- return Promise.resolve({
1073
- content: Buffer.from(`{"source": ${JSON.stringify(path)}}`, "utf8"),
1074
- path: "package.json"
1075
- });
1072
+ return {
1073
+ languages: ["ts", "js"],
1074
+ name: "package.json",
1075
+ content: JSON.stringify({ source: path }),
1076
+ target: "<root>/package.json"
1077
+ };
1076
1078
  }
1077
1079
  exports.getPackageJsonWithSource = getPackageJsonWithSource;
1078
1080
  function getPiralInstance2(root2, sourceName) {
@@ -1195,10 +1197,8 @@ var require_factory = __commonJS({
1195
1197
  src,
1196
1198
  mocks
1197
1199
  });
1198
- const files = yield Promise.all([
1199
- ...sources.map((source) => (0, template_1.getFileFromTemplate)(sourceDir, source, data)),
1200
- (0, utils_1.getPackageJsonWithSource)(data.projectRoot, data.src, `index${data.extension}`)
1201
- ]);
1200
+ const defaultSource = (0, utils_1.getPackageJsonWithSource)(data.projectRoot, data.src, `index${data.extension}`);
1201
+ const files = yield Promise.all([...sources, defaultSource].map((source) => (0, template_1.getFileFromTemplate)(sourceDir, source, data)));
1202
1202
  return (0, merge_1.mergeFiles)(files);
1203
1203
  });
1204
1204
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smapiot/pilet-template-angular",
3
- "version": "0.15.0-beta.4609",
3
+ "version": "0.15.0-beta.4610",
4
4
  "description": "Official scaffolding template for pilets: 'angular'.",
5
5
  "keywords": [
6
6
  "piral-cli",
@@ -54,7 +54,7 @@
54
54
  "test": "echo \"Error: run tests from root\" && exit 1"
55
55
  },
56
56
  "devDependencies": {
57
- "@smapiot/template-utils": "0.15.0-beta.4609"
57
+ "@smapiot/template-utils": "0.15.0-beta.4610"
58
58
  },
59
- "gitHead": "0a67402816ae1bb52e8313c21497bcd655e73c88"
59
+ "gitHead": "198b49c082726c9d902fb4a1530199c0939c2eca"
60
60
  }