tnp 13.1.172 → 13.1.174
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/app.js +3 -3
- package/cli.js +95 -33
- package/lib/project/features/files-recreation/files-structure.backend.d.ts +1 -0
- package/lib/project/features/files-recreation/files-structure.backend.js +15 -1
- package/lib/project/features/files-recreation/files-templates/index.js +3 -3
- package/lib/project/features/smart-node-modules.backend.js +31 -18
- package/package.json +2 -2
- package/package.json_tnp.json5 +1 -1
- package/tmp-environment.json +8 -8
package/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
5
|
-
exports.
|
|
3
|
+
exports.dummy1678262156961 = void 0;
|
|
4
|
+
function dummy1678262156961() { }
|
|
5
|
+
exports.dummy1678262156961 = dummy1678262156961;
|
|
6
6
|
//# sourceMappingURL=app.js.map
|
package/cli.js
CHANGED
|
@@ -369368,7 +369368,7 @@ var HelpersCliTool = /** @class */ (function () {
|
|
|
369368
369368
|
return argsv;
|
|
369369
369369
|
};
|
|
369370
369370
|
HelpersCliTool.prototype.removeArgFromString = function (argsString, argsToClear) {
|
|
369371
|
-
if (argsToClear === void 0) { argsToClear = ['websql', 'skipNodeModules', 'skipCopyToSelection', 'skipSmartContainerDistBundleInit', 'copyto']; }
|
|
369371
|
+
if (argsToClear === void 0) { argsToClear = ['websql', 'serveApp', 'skipNodeModules', 'skipCopyToSelection', 'skipSmartContainerDistBundleInit', 'copyto']; }
|
|
369372
369372
|
var argsObj = __nccwpck_require__(34486)(argsString.split(' '));
|
|
369373
369373
|
var _loop_1 = function (index) {
|
|
369374
369374
|
var element = argsToClear[index];
|
|
@@ -369711,7 +369711,7 @@ var HelpersFileFolders = /** @class */ (function () {
|
|
|
369711
369711
|
var fileContent = tnp_core_1.fse.readFileSync(jsFilePath).toLocaleString();
|
|
369712
369712
|
(function () {
|
|
369713
369713
|
var stringForRegex = "require\\((\"|')\\.\\/([a-zA-Z0-9]|\\/|\\-|\\_|\\+|\\.)*(\"|')\\)";
|
|
369714
|
-
index_1.Helpers.log("[
|
|
369714
|
+
index_1.Helpers.log("[firedev-helpre][require][".concat(jsFilePath, "] stringForRegex: ").concat(stringForRegex), 1);
|
|
369715
369715
|
fileContent = fileContent.split('\n').map(function (line) {
|
|
369716
369716
|
var matches = line.match(new RegExp(stringForRegex));
|
|
369717
369717
|
if (matches !== null) {
|
|
@@ -369729,7 +369729,7 @@ var HelpersFileFolders = /** @class */ (function () {
|
|
|
369729
369729
|
})();
|
|
369730
369730
|
(function () {
|
|
369731
369731
|
var stringForRegex = "require\\((\"|')([a-zA-Z0-9]|\\/|\\-|\\_|\\+|\\.)*(\"|')\\)";
|
|
369732
|
-
index_1.Helpers.log("[
|
|
369732
|
+
index_1.Helpers.log("[firedev-helpre][require][".concat(jsFilePath, "] stringForRegex: ").concat(stringForRegex), 1);
|
|
369733
369733
|
fileContent = fileContent.split('\n').map(function (line) {
|
|
369734
369734
|
// console.log(`LINE: "${line}"`)
|
|
369735
369735
|
var matches = line.match(new RegExp(stringForRegex));
|
|
@@ -369834,7 +369834,7 @@ var HelpersFileFolders = /** @class */ (function () {
|
|
|
369834
369834
|
index_1.Helpers.log("[helpers] Remove folder: ".concat(absoluteFolderPath));
|
|
369835
369835
|
if (process.platform === 'win32') {
|
|
369836
369836
|
// rimraf.sync(absoluteFolderPath);
|
|
369837
|
-
this.tryRemoveDir(absoluteFolderPath);
|
|
369837
|
+
this.tryRemoveDir(absoluteFolderPath, false, true);
|
|
369838
369838
|
return;
|
|
369839
369839
|
}
|
|
369840
369840
|
var modifiedFiles = (options || { modifiedFiles: { modifiedFiles: [] } }).modifiedFiles;
|
|
@@ -369856,10 +369856,13 @@ var HelpersFileFolders = /** @class */ (function () {
|
|
|
369856
369856
|
// fs.rmdirSync(pathToFolder);
|
|
369857
369857
|
// }
|
|
369858
369858
|
// };
|
|
369859
|
-
HelpersFileFolders.prototype.tryRemoveDir = function (dirpath, contentOnly) {
|
|
369859
|
+
HelpersFileFolders.prototype.tryRemoveDir = function (dirpath, contentOnly, omitWarningNotExisted) {
|
|
369860
369860
|
if (contentOnly === void 0) { contentOnly = false; }
|
|
369861
|
+
if (omitWarningNotExisted === void 0) { omitWarningNotExisted = false; }
|
|
369861
369862
|
if (!tnp_core_1.fse.existsSync(dirpath)) {
|
|
369862
|
-
|
|
369863
|
+
if (!omitWarningNotExisted) {
|
|
369864
|
+
index_1.Helpers.warn("[firedev-helper][tryRemoveDir] Folder ".concat(tnp_core_1.path.basename(dirpath), " doesn't exist."));
|
|
369865
|
+
}
|
|
369863
369866
|
return;
|
|
369864
369867
|
}
|
|
369865
369868
|
index_1.Helpers.log("[firedev-helpers][tryRemoveDir]: ".concat(dirpath));
|
|
@@ -370074,7 +370077,7 @@ var HelpersFileFolders = /** @class */ (function () {
|
|
|
370074
370077
|
// sourceDir = sourceDir ? (sourceDir.replace(/\/$/, '')) : sourceDir;
|
|
370075
370078
|
// destinationDir = destinationDir ? (destinationDir.replace(/\/$/, '')) : destinationDir;
|
|
370076
370079
|
if (!tnp_core_1.fse.existsSync(sourceDir)) {
|
|
370077
|
-
index_1.Helpers.warn("[
|
|
370080
|
+
index_1.Helpers.warn("[firedev -helper][copy] Source dir doesnt exist: ".concat(sourceDir, " for destination: ").concat(destinationDir));
|
|
370078
370081
|
return;
|
|
370079
370082
|
}
|
|
370080
370083
|
if (!tnp_core_1.fse.existsSync(tnp_core_1.path.dirname(destinationDir))) {
|
|
@@ -370109,7 +370112,7 @@ var HelpersFileFolders = /** @class */ (function () {
|
|
|
370109
370112
|
// fse.existsSync(destinationDir) && fse.statSync(destinationDir),
|
|
370110
370113
|
// ];
|
|
370111
370114
|
// if (destStat && destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev) {
|
|
370112
|
-
// Helpers.warn(`[
|
|
370115
|
+
// Helpers.warn(`[firedev-helper][copy] Same location stats.. Trying to copy same source and destination:
|
|
370113
370116
|
// from: ${sourceDir}
|
|
370114
370117
|
// to: ${destinationDir}
|
|
370115
370118
|
// `);
|
|
@@ -370121,7 +370124,7 @@ var HelpersFileFolders = /** @class */ (function () {
|
|
|
370121
370124
|
options.filter = index_1.Helpers.filterDontCopy(options.omitFolders, options.omitFoldersBaseFolder);
|
|
370122
370125
|
}
|
|
370123
370126
|
if (sourceDir === destinationDir || tnp_core_1.path.resolve(sourceDir) === tnp_core_1.path.resolve(destinationDir)) {
|
|
370124
|
-
index_1.Helpers.warn("[
|
|
370127
|
+
index_1.Helpers.warn("[firedev-helper][copy] Trying to copy same source and destination\n from: ".concat(sourceDir, "\n to: ").concat(destinationDir, "\n "));
|
|
370125
370128
|
}
|
|
370126
370129
|
else {
|
|
370127
370130
|
// Helpers.warn('filter', _.isFunction(options.filter));
|
|
@@ -370195,7 +370198,7 @@ var HelpersFileFolders = /** @class */ (function () {
|
|
|
370195
370198
|
catch (error) {
|
|
370196
370199
|
var exitOnError = global['tnpNonInteractive'];
|
|
370197
370200
|
index_1.Helpers.log(error);
|
|
370198
|
-
index_1.Helpers.error("[
|
|
370201
|
+
index_1.Helpers.error("[firedev-helper] Not able to copy folder:\n from: ".concat(sourceDir, "\n to: ").concat(destinationDir, "\n options: ").concat(tnp_core_1.json5.stringify(options), "\n error: ").concat(error === null || error === void 0 ? void 0 : error.message, "\n "), !exitOnError);
|
|
370199
370202
|
index_1.Helpers.pressKeyAndContinue("Press any key to repeat copy action...");
|
|
370200
370203
|
copyFn_1();
|
|
370201
370204
|
}
|
|
@@ -370605,7 +370608,7 @@ var HelpersGit = /** @class */ (function () {
|
|
|
370605
370608
|
}
|
|
370606
370609
|
catch (error) {
|
|
370607
370610
|
index_1.Helpers.log(error);
|
|
370608
|
-
index_1.Helpers.
|
|
370611
|
+
index_1.Helpers.log("[firedev-helpers][git][commit] not able to commit what is with command: ".concat(cmdddd));
|
|
370609
370612
|
}
|
|
370610
370613
|
};
|
|
370611
370614
|
//#endregion
|
|
@@ -371535,9 +371538,6 @@ var HelpersProcess = /** @class */ (function () {
|
|
|
371535
371538
|
HelpersProcess.prototype.terminalLine = function () {
|
|
371536
371539
|
return tnp_core_1._.times(process.stdout.columns, function () { return '-'; }).join('');
|
|
371537
371540
|
};
|
|
371538
|
-
HelpersProcess.prototype.killProcess = function (byPid) {
|
|
371539
|
-
index_1.Helpers.run("kill -9 ".concat(byPid)).sync();
|
|
371540
|
-
};
|
|
371541
371541
|
HelpersProcess.prototype.killProcessByPort = function (portOrPortsToKill) {
|
|
371542
371542
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
371543
371543
|
var index, port, org, e_1;
|
|
@@ -371660,6 +371660,36 @@ var HelpersProcess = /** @class */ (function () {
|
|
|
371660
371660
|
return void 0;
|
|
371661
371661
|
}
|
|
371662
371662
|
};
|
|
371663
|
+
HelpersProcess.prototype.waitForMessegeInStdout = function (proc, message) {
|
|
371664
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
371665
|
+
return tslib_1.__generator(this, function (_a) {
|
|
371666
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
371667
|
+
var resolved = false;
|
|
371668
|
+
proc.stdout.on('data', function (data) {
|
|
371669
|
+
// console.log(`
|
|
371670
|
+
// [waitForMessegeInStdout] data: ${data}
|
|
371671
|
+
// [waitForMessegeInStdout] data typeof: ${typeof data}
|
|
371672
|
+
// `);
|
|
371673
|
+
if (tnp_core_1._.isObject(data) && tnp_core_1._.isFunction(data.toString)) {
|
|
371674
|
+
data = data.toString();
|
|
371675
|
+
}
|
|
371676
|
+
if (tnp_core_1._.isString(data) && data.search(message) !== -1) {
|
|
371677
|
+
resolved = true;
|
|
371678
|
+
resolve(void 0);
|
|
371679
|
+
}
|
|
371680
|
+
});
|
|
371681
|
+
proc.once('exit', function () {
|
|
371682
|
+
// console.log(`
|
|
371683
|
+
// [waitForMessegeInStdout] exit: ${code}
|
|
371684
|
+
// `);
|
|
371685
|
+
if (!resolved) {
|
|
371686
|
+
reject();
|
|
371687
|
+
}
|
|
371688
|
+
});
|
|
371689
|
+
})];
|
|
371690
|
+
});
|
|
371691
|
+
});
|
|
371692
|
+
};
|
|
371663
371693
|
return HelpersProcess;
|
|
371664
371694
|
}());
|
|
371665
371695
|
exports.HelpersProcess = HelpersProcess;
|
|
@@ -372135,6 +372165,10 @@ var typescript_class_helpers_1 = __nccwpck_require__(52468);
|
|
|
372135
372165
|
var morphi_1 = __nccwpck_require__(54552);
|
|
372136
372166
|
var tnp_core_4 = __nccwpck_require__(76776);
|
|
372137
372167
|
var helpers_numbers_1 = __nccwpck_require__(38437);
|
|
372168
|
+
/* */
|
|
372169
|
+
/* */
|
|
372170
|
+
/* */
|
|
372171
|
+
/* */
|
|
372138
372172
|
function applyMixins(derivedCtor, baseCtors) {
|
|
372139
372173
|
baseCtors.forEach(function (baseCtor) {
|
|
372140
372174
|
Object.getOwnPropertyNames(baseCtor.prototype).forEach(function (name) {
|
|
@@ -372518,6 +372552,7 @@ tslib_1.__exportStar(__nccwpck_require__(79550), exports);
|
|
|
372518
372552
|
/* */
|
|
372519
372553
|
/* */
|
|
372520
372554
|
/* */
|
|
372555
|
+
/* */
|
|
372521
372556
|
//# sourceMappingURL=index.js.map
|
|
372522
372557
|
|
|
372523
372558
|
/***/ }),
|
|
@@ -567373,7 +567408,20 @@ var FilesStructure = /** @class */ (function (_super) {
|
|
|
567373
567408
|
this.project.quickFixes.missingLibs(tnp_config_1.config.quickFixes.missingLibs);
|
|
567374
567409
|
}
|
|
567375
567410
|
if (this.project.isWorkspace || this.project.isStandaloneProject) {
|
|
567376
|
-
|
|
567411
|
+
//#region TODO BIG QUICK_FIX
|
|
567412
|
+
if (tnp_config_1.config.frameworkName === 'firedev') {
|
|
567413
|
+
if (!FilesStructure.INITED_PROECT_SHOW_LOG[this.project.genericName]) { // TODO QUICK
|
|
567414
|
+
tnp_helpers_1.Helpers.info("Initing project: ".concat(chalk_1.default.bold(this.project.genericName)));
|
|
567415
|
+
FilesStructure.INITED_PROECT_SHOW_LOG[this.project.genericName] = true;
|
|
567416
|
+
}
|
|
567417
|
+
else {
|
|
567418
|
+
tnp_helpers_1.Helpers.log("Initing project: ".concat(chalk_1.default.bold(this.project.genericName)));
|
|
567419
|
+
}
|
|
567420
|
+
}
|
|
567421
|
+
else {
|
|
567422
|
+
tnp_helpers_1.Helpers.info("Initing project: ".concat(chalk_1.default.bold(this.project.genericName)));
|
|
567423
|
+
}
|
|
567424
|
+
//#endregion
|
|
567377
567425
|
tnp_helpers_1.Helpers.log(" (from locaiton: ".concat(this.project.location, ")"));
|
|
567378
567426
|
tnp_helpers_1.Helpers.log("Init mode: ".concat(websql ? '[WEBSQL]' : ''));
|
|
567379
567427
|
}
|
|
@@ -567874,6 +567922,7 @@ var FilesStructure = /** @class */ (function (_super) {
|
|
|
567874
567922
|
enumerable: false,
|
|
567875
567923
|
configurable: true
|
|
567876
567924
|
});
|
|
567925
|
+
FilesStructure.INITED_PROECT_SHOW_LOG = {};
|
|
567877
567926
|
return FilesStructure;
|
|
567878
567927
|
}(abstract_1.FeatureForProject));
|
|
567879
567928
|
exports.FilesStructure = FilesStructure;
|
|
@@ -574376,24 +574425,37 @@ var SmartNodeModules = /** @class */ (function (_super) {
|
|
|
574376
574425
|
SmartNodeModules.prototype.updateFromReleaseBundle = function (destination) {
|
|
574377
574426
|
var _this = this;
|
|
574378
574427
|
var source = tnp_core_2.path.join(destination.location, 'tmp-bundle-release', 'bundle', 'project', destination.name, tnp_config_1.config.folder.bundle);
|
|
574379
|
-
|
|
574380
|
-
|
|
574381
|
-
|
|
574382
|
-
|
|
574383
|
-
|
|
574384
|
-
|
|
574385
|
-
|
|
574386
|
-
|
|
574387
|
-
|
|
574388
|
-
|
|
574389
|
-
|
|
574390
|
-
|
|
574391
|
-
|
|
574392
|
-
|
|
574393
|
-
|
|
574394
|
-
|
|
574395
|
-
|
|
574396
|
-
|
|
574428
|
+
if (destination.npmPackages.useSmartInstall) {
|
|
574429
|
+
(function () {
|
|
574430
|
+
var dest = tnp_core_2.path.join(_this.project.node_modules.path, destination.name);
|
|
574431
|
+
tnp_helpers_1.Helpers.removeIfExists(dest);
|
|
574432
|
+
tnp_helpers_1.Helpers.copy(source, dest, {
|
|
574433
|
+
copySymlinksAsFiles: true,
|
|
574434
|
+
omitFolders: [tnp_config_1.config.folder.node_modules],
|
|
574435
|
+
omitFoldersBaseFolder: source
|
|
574436
|
+
});
|
|
574437
|
+
})();
|
|
574438
|
+
(function () {
|
|
574439
|
+
var dest = tnp_core_2.path.join(_this.project.smartNodeModules.path, destination.name);
|
|
574440
|
+
tnp_helpers_1.Helpers.removeIfExists(dest);
|
|
574441
|
+
tnp_helpers_1.Helpers.copy(source, dest, {
|
|
574442
|
+
copySymlinksAsFiles: true,
|
|
574443
|
+
omitFolders: [tnp_config_1.config.folder.node_modules],
|
|
574444
|
+
omitFoldersBaseFolder: source
|
|
574445
|
+
});
|
|
574446
|
+
})();
|
|
574447
|
+
}
|
|
574448
|
+
else {
|
|
574449
|
+
(function () {
|
|
574450
|
+
var dest = tnp_core_2.path.join(_this.project.node_modules.path, destination.name);
|
|
574451
|
+
tnp_helpers_1.Helpers.removeIfExists(dest);
|
|
574452
|
+
tnp_helpers_1.Helpers.copy(source, dest, {
|
|
574453
|
+
copySymlinksAsFiles: true,
|
|
574454
|
+
omitFolders: [tnp_config_1.config.folder.node_modules],
|
|
574455
|
+
omitFoldersBaseFolder: source
|
|
574456
|
+
});
|
|
574457
|
+
})();
|
|
574458
|
+
}
|
|
574397
574459
|
};
|
|
574398
574460
|
//#region getters/private methods
|
|
574399
574461
|
//#region project from smart node_modules package
|
|
@@ -11,6 +11,7 @@ export declare class FilesStructure extends FeatureForProject {
|
|
|
11
11
|
private fixOptionsArgs;
|
|
12
12
|
private get taskNames();
|
|
13
13
|
struct(args?: string): Promise<void>;
|
|
14
|
+
static INITED_PROECT_SHOW_LOG: {};
|
|
14
15
|
init(args: string, options?: InitOptions): Promise<void>;
|
|
15
16
|
recreateSiteChildren(): Project[];
|
|
16
17
|
private recrusiveOperation;
|
|
@@ -151,7 +151,20 @@ var FilesStructure = /** @class */ (function (_super) {
|
|
|
151
151
|
this.project.quickFixes.missingLibs(tnp_config_1.config.quickFixes.missingLibs);
|
|
152
152
|
}
|
|
153
153
|
if (this.project.isWorkspace || this.project.isStandaloneProject) {
|
|
154
|
-
|
|
154
|
+
//#region TODO BIG QUICK_FIX
|
|
155
|
+
if (tnp_config_1.config.frameworkName === 'firedev') {
|
|
156
|
+
if (!FilesStructure.INITED_PROECT_SHOW_LOG[this.project.genericName]) { // TODO QUICK
|
|
157
|
+
tnp_helpers_1.Helpers.info("Initing project: ".concat(chalk_1.default.bold(this.project.genericName)));
|
|
158
|
+
FilesStructure.INITED_PROECT_SHOW_LOG[this.project.genericName] = true;
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
tnp_helpers_1.Helpers.log("Initing project: ".concat(chalk_1.default.bold(this.project.genericName)));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
tnp_helpers_1.Helpers.info("Initing project: ".concat(chalk_1.default.bold(this.project.genericName)));
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
155
168
|
tnp_helpers_1.Helpers.log(" (from locaiton: ".concat(this.project.location, ")"));
|
|
156
169
|
tnp_helpers_1.Helpers.log("Init mode: ".concat(websql ? '[WEBSQL]' : ''));
|
|
157
170
|
}
|
|
@@ -652,6 +665,7 @@ var FilesStructure = /** @class */ (function (_super) {
|
|
|
652
665
|
enumerable: false,
|
|
653
666
|
configurable: true
|
|
654
667
|
});
|
|
668
|
+
FilesStructure.INITED_PROECT_SHOW_LOG = {};
|
|
655
669
|
return FilesStructure;
|
|
656
670
|
}(abstract_1.FeatureForProject));
|
|
657
671
|
exports.FilesStructure = FilesStructure;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
5
|
-
exports.
|
|
3
|
+
exports.dummy1678262157171 = void 0;
|
|
4
|
+
function dummy1678262157171() { }
|
|
5
|
+
exports.dummy1678262157171 = dummy1678262157171;
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -25,24 +25,37 @@ var SmartNodeModules = /** @class */ (function (_super) {
|
|
|
25
25
|
SmartNodeModules.prototype.updateFromReleaseBundle = function (destination) {
|
|
26
26
|
var _this = this;
|
|
27
27
|
var source = tnp_core_2.path.join(destination.location, 'tmp-bundle-release', 'bundle', 'project', destination.name, tnp_config_1.config.folder.bundle);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
28
|
+
if (destination.npmPackages.useSmartInstall) {
|
|
29
|
+
(function () {
|
|
30
|
+
var dest = tnp_core_2.path.join(_this.project.node_modules.path, destination.name);
|
|
31
|
+
tnp_helpers_1.Helpers.removeIfExists(dest);
|
|
32
|
+
tnp_helpers_1.Helpers.copy(source, dest, {
|
|
33
|
+
copySymlinksAsFiles: true,
|
|
34
|
+
omitFolders: [tnp_config_1.config.folder.node_modules],
|
|
35
|
+
omitFoldersBaseFolder: source
|
|
36
|
+
});
|
|
37
|
+
})();
|
|
38
|
+
(function () {
|
|
39
|
+
var dest = tnp_core_2.path.join(_this.project.smartNodeModules.path, destination.name);
|
|
40
|
+
tnp_helpers_1.Helpers.removeIfExists(dest);
|
|
41
|
+
tnp_helpers_1.Helpers.copy(source, dest, {
|
|
42
|
+
copySymlinksAsFiles: true,
|
|
43
|
+
omitFolders: [tnp_config_1.config.folder.node_modules],
|
|
44
|
+
omitFoldersBaseFolder: source
|
|
45
|
+
});
|
|
46
|
+
})();
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
(function () {
|
|
50
|
+
var dest = tnp_core_2.path.join(_this.project.node_modules.path, destination.name);
|
|
51
|
+
tnp_helpers_1.Helpers.removeIfExists(dest);
|
|
52
|
+
tnp_helpers_1.Helpers.copy(source, dest, {
|
|
53
|
+
copySymlinksAsFiles: true,
|
|
54
|
+
omitFolders: [tnp_config_1.config.folder.node_modules],
|
|
55
|
+
omitFoldersBaseFolder: source
|
|
56
|
+
});
|
|
57
|
+
})();
|
|
58
|
+
}
|
|
46
59
|
};
|
|
47
60
|
//#region getters/private methods
|
|
48
61
|
//#region project from smart node_modules package
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tnp",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.174",
|
|
4
4
|
"bin": {
|
|
5
5
|
"tnp": "bin/tnp",
|
|
6
6
|
"tnp-debug": "bin/tnp-debug",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"ora": "3.4.0"
|
|
11
11
|
},
|
|
12
|
-
"lastBuildTagHash": "
|
|
12
|
+
"lastBuildTagHash": "8b1a16783f142a1987d7548024926607cbefb097",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"activate": "npm i --force && firedev dedupe && npx tsc && firedev link && tnp bd"
|
|
15
15
|
},
|
package/package.json_tnp.json5
CHANGED
package/tmp-environment.json
CHANGED
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
"common": {
|
|
215
215
|
"tnp-config": "13.1.55",
|
|
216
216
|
"tnp-models": "13.1.9",
|
|
217
|
-
"tnp-helpers": "13.1.
|
|
217
|
+
"tnp-helpers": "13.1.17",
|
|
218
218
|
"tnp-db": "13.1.8",
|
|
219
219
|
"firedev-typeorm": "13.1.12",
|
|
220
220
|
"firedev-crud": "13.1.37",
|
|
@@ -564,7 +564,7 @@
|
|
|
564
564
|
"private": false
|
|
565
565
|
},
|
|
566
566
|
"name": "tnp",
|
|
567
|
-
"version": "13.1.
|
|
567
|
+
"version": "13.1.174",
|
|
568
568
|
"bin": {
|
|
569
569
|
"tnp": "bin/tnp",
|
|
570
570
|
"tnp-debug": "bin/tnp-debug",
|
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
"progress": "2.0.3",
|
|
578
578
|
"tnp-db": "~13.1.8"
|
|
579
579
|
},
|
|
580
|
-
"lastBuildTagHash": "
|
|
580
|
+
"lastBuildTagHash": "8b1a16783f142a1987d7548024926607cbefb097",
|
|
581
581
|
"scripts": {
|
|
582
582
|
"activate": "npm i --force && firedev dedupe && npx tsc && firedev link && tnp bd"
|
|
583
583
|
},
|
|
@@ -790,7 +790,7 @@
|
|
|
790
790
|
"tnp-cli": "~13.1.44",
|
|
791
791
|
"tnp-config": "~13.1.55",
|
|
792
792
|
"tnp-core": "~13.1.61",
|
|
793
|
-
"tnp-helpers": "~13.1.
|
|
793
|
+
"tnp-helpers": "~13.1.17",
|
|
794
794
|
"tnp-models": "~13.1.9",
|
|
795
795
|
"tnp-ui": "~13.1.27",
|
|
796
796
|
"ts-debug": "1.3.0",
|
|
@@ -810,9 +810,9 @@
|
|
|
810
810
|
}
|
|
811
811
|
},
|
|
812
812
|
"build": {
|
|
813
|
-
"number":
|
|
814
|
-
"date": "2023-03-
|
|
815
|
-
"hash": "
|
|
813
|
+
"number": 2735,
|
|
814
|
+
"date": "2023-03-08T07:55:51.000Z",
|
|
815
|
+
"hash": "b79024f6f478d8be544b8c6e2bf7576b6f85f2f8",
|
|
816
816
|
"options": {}
|
|
817
817
|
},
|
|
818
818
|
"currentProjectName": "tnp",
|
|
@@ -820,7 +820,7 @@
|
|
|
820
820
|
"currentProjectLaunchConfiguration": "{\"version\":\"0.2.0\",\"configurations\":[{\"type\":\"node\",\"request\":\"launch\",\"name\":\"Launch Server standalone\",\"program\":\"${workspaceFolder}/run.js\",\"args\":[\"--ENVoverride=%7B%0A%20%20%20%20%22clientProjectName%22%3A%20%22tnp%22%0A%7D\"],\"runtimeArgs\":[\"--nolazy\",\"-r\",\"ts-node/register\",\"--experimental-worker\"]},{\"name\":\"Debugger with ng serve\",\"type\":\"chrome\",\"request\":\"launch\",\"preLaunchTask\":\"Ng Serve\",\"postDebugTask\":\"terminateall\",\"sourceMaps\":true,\"webRoot\":\"${workspaceFolder}\",\"sourceMapPathOverrides\":{\"webpack:/*\":\"${webRoot}/*\",\"/./*\":\"${webRoot}/*\",\"/tmp-src/*\":\"${webRoot}/*\",\"/*\":\"*\",\"/./~/*\":\"${webRoot}/node_modules/*\"}},{\"type\":\"node\",\"request\":\"attach\",\"name\":\"Attach to global cli tool\",\"port\":9229,\"skipFiles\":[\"<node_internals>/**\"]}],\"compounds\":[{\"name\":\"Debug backend/frontend\",\"configurations\":[\"Launch Server standalone\",\"Debugger with ng serve\"]}]}",
|
|
821
821
|
"currentProjectTasksConfiguration": "{\"version\":\"2.0.0\",\"tasks\":[{\"label\":\"terminateall\",\"command\":\"echo ${input:terminate}\",\"type\":\"shell\",\"problemMatcher\":[]},{\"label\":\"Ng Serve\",\"type\":\"shell\",\"command\":\"tnp build\",\"isBackground\":true,\"presentation\":{\"reveal\":\"always\"},\"group\":{\"kind\":\"build\",\"isDefault\":true},\"problemMatcher\":{\"owner\":\"typescript\",\"source\":\"ts\",\"applyTo\":\"closedDocuments\",\"fileLocation\":[\"relative\",\"${cwd}\"],\"pattern\":\"$tsc\",\"background\":{\"activeOnStart\":true,\"beginsPattern\":{\"regexp\":\"(.*?)\"},\"endsPattern\":{\"regexp\":\"Compiled |Failed to compile.\"}}}}],\"inputs\":[{\"id\":\"terminate\",\"type\":\"command\",\"command\":\"workbench.action.tasks.terminate\",\"args\":\"terminateAll\"}]}",
|
|
822
822
|
"currentProjectType": "isomorphic-lib",
|
|
823
|
-
"currentFrameworkVersion": "13.1.
|
|
823
|
+
"currentFrameworkVersion": "13.1.174",
|
|
824
824
|
"currentProjectIsStrictSite": false,
|
|
825
825
|
"currentProjectIsDependencySite": false,
|
|
826
826
|
"currentProjectIsStatic": false,
|