lincd-cli 0.2.6 → 0.2.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.
@@ -0,0 +1 @@
1
+ nodeLinker: "node-modules"
package/lib/cli.js CHANGED
@@ -983,7 +983,7 @@ var createPackage = function (name, uriBase, basePath) {
983
983
  var createApp = function (name, basePath) {
984
984
  if (basePath === void 0) { basePath = process.cwd(); }
985
985
  return __awaiter(void 0, void 0, void 0, function () {
986
- var _a, hyphenName, camelCaseName, underscoreName, targetFolder, hasYarn, installCommand, runCommand;
986
+ var _a, hyphenName, camelCaseName, underscoreName, targetFolder, hasYarn, installCommand;
987
987
  return __generator(this, function (_b) {
988
988
  switch (_b.label) {
989
989
  case 0:
@@ -996,6 +996,7 @@ var createApp = function (name, basePath) {
996
996
  fs.mkdirSync(targetFolder);
997
997
  }
998
998
  fs.copySync(path.join(__dirname, '..', 'defaults', 'app-with-backend'), targetFolder);
999
+ fs.renameSync(path.join(targetFolder, '.yarnrc.yml.template'), path.join(targetFolder, '.yarnrc.yml'));
999
1000
  // fs.copySync(path.join(__dirname, '..', 'defaults', 'app'), targetFolder);
1000
1001
  log("Creating new LINCD application '" + name + "'");
1001
1002
  //replace variables in some copied files
@@ -1004,7 +1005,6 @@ var createApp = function (name, basePath) {
1004
1005
  case 1:
1005
1006
  hasYarn = _b.sent();
1006
1007
  installCommand = hasYarn ? 'yarn install' : 'npm install';
1007
- runCommand = hasYarn ? 'yarn' : 'npm run';
1008
1008
  return [4 /*yield*/, execp("cd ".concat(hyphenName, " && ").concat(installCommand), true)["catch"](function (err) {
1009
1009
  console.warn('Could not install dependencies or start application');
1010
1010
  })];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lincd-cli",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Command line tools for the lincd.js library",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {