tnp 13.1.150 → 13.1.152
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/bin/start.js +1 -1
- package/index.js +32 -15
- package/lib/project/features/files-recreation/files-recreator.d.ts +2 -2
- package/package.json +2 -2
- package/tmp-environment.json +6 -6
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.dummy1673253490457 = void 0;
|
|
4
|
+
function dummy1673253490457() { }
|
|
5
|
+
exports.dummy1673253490457 = dummy1673253490457;
|
|
6
6
|
//# sourceMappingURL=app.js.map
|
package/bin/start.js
CHANGED
|
@@ -146,7 +146,7 @@ if (startSpinner) {
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
const cwd = process.cwd();
|
|
149
|
-
const argsToCHildProc = (`${orgArgvForChild.slice(2).join(' ')}
|
|
149
|
+
const argsToCHildProc = (`${orgArgvForChild.slice(2).join(' ')} ${global.verbose ? '-verbose': ''} ${global.skipCoreCheck ? '--skipCoreCheck':''} `
|
|
150
150
|
+ `${spinnerOnInArgs ? '-spinner' : (spinnerOffInArgs ? '-spinner=off' : '')} ${childprocsecretarg}`).split(' ');
|
|
151
151
|
|
|
152
152
|
const proc = child_process.fork(crossPlatofrmPath(__filename), argsToCHildProc, {
|
package/index.js
CHANGED
|
@@ -565935,7 +565935,7 @@ var FilesRecreator = /** @class */ (function (_super) {
|
|
|
565935
565935
|
});
|
|
565936
565936
|
};
|
|
565937
565937
|
FilesRecreator.prototype.initVscode = function () {
|
|
565938
|
-
this.vscode.settings.
|
|
565938
|
+
this.vscode.settings.hideOrShowFilesInVscode(true);
|
|
565939
565939
|
this.vscode.settings.colorsFromWorkspace();
|
|
565940
565940
|
};
|
|
565941
565941
|
Object.defineProperty(FilesRecreator.prototype, "commonFilesForAllProjects", {
|
|
@@ -566107,7 +566107,7 @@ var FilesRecreator = /** @class */ (function (_super) {
|
|
|
566107
566107
|
return {
|
|
566108
566108
|
get settings() {
|
|
566109
566109
|
return {
|
|
566110
|
-
|
|
566110
|
+
toogleHideOrShowDeps: function () {
|
|
566111
566111
|
var action;
|
|
566112
566112
|
self.modifyVscode(function (settings) {
|
|
566113
566113
|
var exclude = settings['files.exclude'];
|
|
@@ -566124,11 +566124,11 @@ var FilesRecreator = /** @class */ (function (_super) {
|
|
|
566124
566124
|
});
|
|
566125
566125
|
if (action === 'hide') {
|
|
566126
566126
|
tnp_helpers_1.Helpers.log("Auto hiding while init");
|
|
566127
|
-
self.vscode.settings.
|
|
566127
|
+
self.vscode.settings.hideOrShowFilesInVscode(true);
|
|
566128
566128
|
}
|
|
566129
566129
|
if (action === 'show') {
|
|
566130
566130
|
tnp_helpers_1.Helpers.info("Auto showing while init");
|
|
566131
|
-
self.vscode.settings.
|
|
566131
|
+
self.vscode.settings.hideOrShowFilesInVscode(false);
|
|
566132
566132
|
}
|
|
566133
566133
|
},
|
|
566134
566134
|
gitReset: function () {
|
|
@@ -566170,7 +566170,7 @@ var FilesRecreator = /** @class */ (function (_super) {
|
|
|
566170
566170
|
return settings;
|
|
566171
566171
|
});
|
|
566172
566172
|
},
|
|
566173
|
-
|
|
566173
|
+
hideOrShowFilesInVscode: function (hide) {
|
|
566174
566174
|
if (hide === void 0) { hide = true; }
|
|
566175
566175
|
self.modifyVscode(function (settings) {
|
|
566176
566176
|
settings['files.exclude'] = {};
|
|
@@ -566890,7 +566890,7 @@ var FilesStructure = /** @class */ (function (_super) {
|
|
|
566890
566890
|
return [4 /*yield*/, this.project.recreate.init()];
|
|
566891
566891
|
case 17:
|
|
566892
566892
|
_d.sent();
|
|
566893
|
-
this.project.recreate.vscode.settings.
|
|
566893
|
+
this.project.recreate.vscode.settings.toogleHideOrShowDeps();
|
|
566894
566894
|
if (!this.project.isStandaloneProject) return [3 /*break*/, 19];
|
|
566895
566895
|
if (tnp_core_2._.isNil(this.project.buildOptions)) { // TODO QUICK_FIX
|
|
566896
566896
|
this.project.buildOptions = {};
|
|
@@ -570515,7 +570515,7 @@ function prepareCommand(pkg, remove, useYarn, project) {
|
|
|
570515
570515
|
}
|
|
570516
570516
|
else {
|
|
570517
570517
|
// --no-progress
|
|
570518
|
-
var argsForFasterInstall = "--force --ignore-engines --
|
|
570518
|
+
var argsForFasterInstall = "--force --ignore-engines --silent --no-audit "
|
|
570519
570519
|
+ " ".concat(noPackageLock, " ");
|
|
570520
570520
|
command = "npm ".concat(install, " ").concat(pkg ? pkg.name : '', " ")
|
|
570521
570521
|
+ " ".concat((pkg && pkg.installType) ? pkg.installType : '', " ")
|
|
@@ -578479,7 +578479,12 @@ var ProjectFactory = /** @class */ (function () {
|
|
|
578479
578479
|
}
|
|
578480
578480
|
parentContainer = currentContainer;
|
|
578481
578481
|
if (isLastContainer && smart && isBrandNew && (!parentContainer || !parentContainer.isSmartContainer)) {
|
|
578482
|
-
|
|
578482
|
+
try {
|
|
578483
|
+
currentContainer.run('git init').sync();
|
|
578484
|
+
}
|
|
578485
|
+
catch (error) {
|
|
578486
|
+
tnp_helpers_1.Helpers.warn("Not able to git init inside: ".concat(currentContainer === null || currentContainer === void 0 ? void 0 : currentContainer.location));
|
|
578487
|
+
}
|
|
578483
578488
|
}
|
|
578484
578489
|
if (!firstContainer) {
|
|
578485
578490
|
firstContainer = currentContainer;
|
|
@@ -578509,7 +578514,13 @@ var ProjectFactory = /** @class */ (function () {
|
|
|
578509
578514
|
});
|
|
578510
578515
|
appProj = project_1.Project.From(appLocation);
|
|
578511
578516
|
if (lastContainer && lastContainer.isContainer && !lastContainer.isMonorepo) {
|
|
578512
|
-
|
|
578517
|
+
try {
|
|
578518
|
+
appProj.run('git init').sync();
|
|
578519
|
+
}
|
|
578520
|
+
catch (error) {
|
|
578521
|
+
console.log(error);
|
|
578522
|
+
tnp_helpers_1.Helpers.warn("Not able to git init inside: ".concat(appProj.location));
|
|
578523
|
+
}
|
|
578513
578524
|
}
|
|
578514
578525
|
appProj.addSourcesFromCore();
|
|
578515
578526
|
// console.log({
|
|
@@ -578541,6 +578552,7 @@ var ProjectFactory = /** @class */ (function () {
|
|
|
578541
578552
|
// if (grandpa && (grandpa.isContainer || grandpa.isStandaloneProject)) {
|
|
578542
578553
|
// await grandpa.filesStructure.init(grandpa.isSmartContainer ? appProj.name : '')
|
|
578543
578554
|
// }
|
|
578555
|
+
appProj.recreate.vscode.settings.hideOrShowFilesInVscode(false);
|
|
578544
578556
|
return [2 /*return*/, { containers: containers, firstContainer: firstContainer, lastContainer: lastContainer, lastIsBrandNew: lastIsBrandNew, appProj: appProj }];
|
|
578545
578557
|
}
|
|
578546
578558
|
});
|
|
@@ -578643,7 +578655,12 @@ var ProjectFactory = /** @class */ (function () {
|
|
|
578643
578655
|
return [4 /*yield*/, containerProj.filesStructure.init(smart ? projName : '')];
|
|
578644
578656
|
case 4:
|
|
578645
578657
|
_e.sent();
|
|
578646
|
-
|
|
578658
|
+
try {
|
|
578659
|
+
containerProj.run('git init').sync();
|
|
578660
|
+
}
|
|
578661
|
+
catch (error) {
|
|
578662
|
+
tnp_helpers_1.Helpers.warn("Not able to git init inside: ".concat(containerProj === null || containerProj === void 0 ? void 0 : containerProj.location));
|
|
578663
|
+
}
|
|
578647
578664
|
if (!firstContainer) {
|
|
578648
578665
|
firstContainer = containerProj;
|
|
578649
578666
|
}
|
|
@@ -578768,7 +578785,7 @@ var ProjectFactory = /** @class */ (function () {
|
|
|
578768
578785
|
// }
|
|
578769
578786
|
tnp_helpers_1.Helpers.log("[create] Project from create method: ".concat(newCreatedProject && newCreatedProject.genericName, " "));
|
|
578770
578787
|
if (!newCreatedProject) return [3 /*break*/, 19];
|
|
578771
|
-
newCreatedProject.recreate.vscode.settings.
|
|
578788
|
+
newCreatedProject.recreate.vscode.settings.hideOrShowFilesInVscode();
|
|
578772
578789
|
newCreatedProject.recreate.vscode.settings.colorsFromWorkspace();
|
|
578773
578790
|
if (siteProjectMode === 'dependency') {
|
|
578774
578791
|
newCreatedProject.packageJson.data.tnp.dependsOn = [
|
|
@@ -581557,7 +581574,7 @@ function $INIT_CORE() {
|
|
|
581557
581574
|
}
|
|
581558
581575
|
function $UPDATE(args) {
|
|
581559
581576
|
if (tnp_config_1.config.frameworkName === 'firedev') {
|
|
581560
|
-
tnp_helpers_1.Helpers.run('npm i -g firedev').sync();
|
|
581577
|
+
tnp_helpers_1.Helpers.run('npm i -g firedev --force').sync();
|
|
581561
581578
|
var morphiPathUserInUserDir = tnp_config_1.config.morphiPathUserInUserDir;
|
|
581562
581579
|
try {
|
|
581563
581580
|
tnp_helpers_1.Helpers.run("git reset --hard && git pull origin master", { cwd: morphiPathUserInUserDir }).sync();
|
|
@@ -582218,11 +582235,11 @@ function $VSCODE_EXT(args, exit) {
|
|
|
582218
582235
|
}
|
|
582219
582236
|
exports.$VSCODE_EXT = $VSCODE_EXT;
|
|
582220
582237
|
function showfilesfor(project) {
|
|
582221
|
-
project.recreate.vscode.settings.
|
|
582238
|
+
project.recreate.vscode.settings.hideOrShowFilesInVscode(false);
|
|
582222
582239
|
project.recreate.vscode.settings.colorsFromWorkspace();
|
|
582223
582240
|
}
|
|
582224
582241
|
function hidefilesfor(project) {
|
|
582225
|
-
project.recreate.vscode.settings.
|
|
582242
|
+
project.recreate.vscode.settings.hideOrShowFilesInVscode(true);
|
|
582226
582243
|
project.recreate.vscode.settings.colorsFromWorkspace();
|
|
582227
582244
|
}
|
|
582228
582245
|
function $VSCODE_TEMP_SHOW(args, exit) {
|
|
@@ -582242,7 +582259,7 @@ function $VSCODE_TEMP_HIDE(args, exit) {
|
|
|
582242
582259
|
}
|
|
582243
582260
|
exports.$VSCODE_TEMP_HIDE = $VSCODE_TEMP_HIDE;
|
|
582244
582261
|
function $INIT_VSCODE() {
|
|
582245
|
-
project_1.Project.Current.recreate.vscode.settings.
|
|
582262
|
+
project_1.Project.Current.recreate.vscode.settings.hideOrShowFilesInVscode();
|
|
582246
582263
|
project_1.Project.Current.recreate.vscode.settings.colorsFromWorkspace();
|
|
582247
582264
|
process.exit(0);
|
|
582248
582265
|
}
|
|
@@ -11,11 +11,11 @@ export declare class FilesRecreator extends FeatureForProject {
|
|
|
11
11
|
private modifyVscode;
|
|
12
12
|
get vscode(): {
|
|
13
13
|
readonly settings: {
|
|
14
|
-
|
|
14
|
+
toogleHideOrShowDeps(): void;
|
|
15
15
|
gitReset(): void;
|
|
16
16
|
changeColorTheme(white?: boolean): void;
|
|
17
17
|
colorsFromWorkspace(): void;
|
|
18
|
-
|
|
18
|
+
hideOrShowFilesInVscode(hide?: boolean): void;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
customFolder(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tnp",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.152",
|
|
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": "85ccdca0d8950465a7118c3ae9a717893d9c3522",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"activate": "npm i --force && firedev dedupe && npx tsc && firedev link && tnp bd"
|
|
15
15
|
},
|
package/tmp-environment.json
CHANGED
|
@@ -559,7 +559,7 @@
|
|
|
559
559
|
"private": false
|
|
560
560
|
},
|
|
561
561
|
"name": "tnp",
|
|
562
|
-
"version": "13.1.
|
|
562
|
+
"version": "13.1.152",
|
|
563
563
|
"bin": {
|
|
564
564
|
"tnp": "bin/tnp",
|
|
565
565
|
"tnp-debug": "bin/tnp-debug",
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
"progress": "2.0.3",
|
|
573
573
|
"tnp-db": "~13.1.7"
|
|
574
574
|
},
|
|
575
|
-
"lastBuildTagHash": "
|
|
575
|
+
"lastBuildTagHash": "85ccdca0d8950465a7118c3ae9a717893d9c3522",
|
|
576
576
|
"scripts": {
|
|
577
577
|
"activate": "npm i --force && firedev dedupe && npx tsc && firedev link && tnp bd"
|
|
578
578
|
},
|
|
@@ -804,9 +804,9 @@
|
|
|
804
804
|
}
|
|
805
805
|
},
|
|
806
806
|
"build": {
|
|
807
|
-
"number":
|
|
808
|
-
"date": "2023-01-
|
|
809
|
-
"hash": "
|
|
807
|
+
"number": 2684,
|
|
808
|
+
"date": "2023-01-09T08:38:04.000Z",
|
|
809
|
+
"hash": "34aed05e3284b5ee0e1c500cfb5ba67a07082332",
|
|
810
810
|
"options": {}
|
|
811
811
|
},
|
|
812
812
|
"currentProjectName": "tnp",
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
"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\"]}]}",
|
|
815
815
|
"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\"}]}",
|
|
816
816
|
"currentProjectType": "isomorphic-lib",
|
|
817
|
-
"currentFrameworkVersion": "13.1.
|
|
817
|
+
"currentFrameworkVersion": "13.1.152",
|
|
818
818
|
"currentProjectIsStrictSite": false,
|
|
819
819
|
"currentProjectIsDependencySite": false,
|
|
820
820
|
"currentProjectIsStatic": false,
|