tnp-helpers 18.0.3 → 18.0.6
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/assets/shared/shared_folder_info.txt +1 -1
- package/browser/esm2022/lib/base/base-git.mjs +2 -2
- package/browser/esm2022/lib/base/base-library-build.mjs +19 -1
- package/browser/esm2022/lib/base/base-linked-projects.mjs +1 -1
- package/browser/esm2022/lib/base/base-npm-helpers.mjs +46 -13
- package/browser/esm2022/lib/base/base-project-resolver.mjs +3 -2
- package/browser/esm2022/lib/base/base-project.mjs +10 -1
- package/browser/esm2022/lib/base/base-release-process.mjs +2 -2
- package/browser/esm2022/lib/base/core-project.mjs +1 -1
- package/browser/esm2022/lib/models.mjs +1 -1
- package/browser/fesm2022/tnp-helpers.mjs +76 -15
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-git.d.ts +1 -1
- package/browser/lib/base/base-library-build.d.ts +1 -0
- package/browser/lib/base/base-npm-helpers.d.ts +4 -15
- package/browser/lib/base/base-project.d.ts +4 -0
- package/browser/lib/base/core-project.d.ts +2 -1
- package/browser/lib/models.d.ts +4 -0
- package/client/esm2022/lib/base/base-git.mjs +2 -2
- package/client/esm2022/lib/base/base-library-build.mjs +19 -1
- package/client/esm2022/lib/base/base-linked-projects.mjs +1 -1
- package/client/esm2022/lib/base/base-npm-helpers.mjs +46 -13
- package/client/esm2022/lib/base/base-project-resolver.mjs +3 -2
- package/client/esm2022/lib/base/base-project.mjs +10 -1
- package/client/esm2022/lib/base/base-release-process.mjs +2 -2
- package/client/esm2022/lib/base/core-project.mjs +1 -1
- package/client/esm2022/lib/models.mjs +1 -1
- package/client/fesm2022/tnp-helpers.mjs +76 -15
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-git.d.ts +1 -1
- package/client/lib/base/base-library-build.d.ts +1 -0
- package/client/lib/base/base-npm-helpers.d.ts +4 -15
- package/client/lib/base/base-project.d.ts +4 -0
- package/client/lib/base/core-project.d.ts +2 -1
- package/client/lib/models.d.ts +4 -0
- package/lib/base/base-command-line.backend.d.ts +16 -10
- package/lib/base/base-command-line.backend.js +381 -164
- package/lib/base/base-command-line.backend.js.map +1 -1
- package/lib/base/base-git.d.ts +1 -1
- package/lib/base/base-git.js +23 -18
- package/lib/base/base-git.js.map +1 -1
- package/lib/base/base-library-build.d.ts +1 -0
- package/lib/base/base-library-build.js +23 -8
- package/lib/base/base-library-build.js.map +1 -1
- package/lib/base/base-linked-projects.js +0 -1
- package/lib/base/base-linked-projects.js.map +1 -1
- package/lib/base/base-npm-helpers.d.ts +3 -10
- package/lib/base/base-npm-helpers.js +79 -38
- package/lib/base/base-npm-helpers.js.map +1 -1
- package/lib/base/base-project-resolver.js +3 -1
- package/lib/base/base-project-resolver.js.map +1 -1
- package/lib/base/base-project.d.ts +4 -0
- package/lib/base/base-project.js +16 -0
- package/lib/base/base-project.js.map +1 -1
- package/lib/base/base-release-process.js +9 -4
- package/lib/base/base-release-process.js.map +1 -1
- package/lib/base/core-project.d.ts +2 -1
- package/lib/base/core-project.js.map +1 -1
- package/lib/helpers/for-backend/helpers-cli-tool.backend.js +0 -1
- package/lib/helpers/for-backend/helpers-cli-tool.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-file-folders.backend.js +4 -4
- package/lib/helpers/for-backend/helpers-file-folders.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-git.backend.d.ts +2 -2
- package/lib/helpers/for-backend/helpers-git.backend.js +122 -89
- package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
- package/lib/helpers/for-backend/helpers-process.backend.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +2 -2
- package/lib/models.d.ts +4 -0
- package/lib/old/base-component.js +2 -2
- package/lib/old/base-formly-component.js +2 -2
- package/lib/old/dual-component-ctrl.js +2 -2
- package/package.json +4 -4
- package/tmp-environment.json +47 -44
- package/websql/esm2022/lib/base/base-git.mjs +2 -2
- package/websql/esm2022/lib/base/base-library-build.mjs +19 -1
- package/websql/esm2022/lib/base/base-linked-projects.mjs +1 -1
- package/websql/esm2022/lib/base/base-npm-helpers.mjs +46 -13
- package/websql/esm2022/lib/base/base-project-resolver.mjs +3 -2
- package/websql/esm2022/lib/base/base-project.mjs +10 -1
- package/websql/esm2022/lib/base/base-release-process.mjs +2 -2
- package/websql/esm2022/lib/base/core-project.mjs +1 -1
- package/websql/esm2022/lib/models.mjs +1 -1
- package/websql/fesm2022/tnp-helpers.mjs +76 -15
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-git.d.ts +1 -1
- package/websql/lib/base/base-library-build.d.ts +1 -0
- package/websql/lib/base/base-npm-helpers.d.ts +4 -13
- package/websql/lib/base/base-project.d.ts +4 -0
- package/websql/lib/base/core-project.d.ts +2 -1
- package/websql/lib/models.d.ts +4 -0
|
@@ -1366,7 +1366,8 @@ class BaseProjectResolver {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
unload(projectOrLocationOfProject) {
|
|
1368
1368
|
const location = _.isString(projectOrLocationOfProject)
|
|
1369
|
-
? projectOrLocationOfProject
|
|
1369
|
+
? projectOrLocationOfProject
|
|
1370
|
+
: projectOrLocationOfProject?.location;
|
|
1370
1371
|
this.projects = this.projects.filter(f => f.location !== location);
|
|
1371
1372
|
this.emptyLocations = this.emptyLocations.filter(f => f !== location);
|
|
1372
1373
|
}
|
|
@@ -1900,6 +1901,9 @@ class BaseProject {
|
|
|
1900
1901
|
/* */
|
|
1901
1902
|
/* */
|
|
1902
1903
|
/* */
|
|
1904
|
+
/* */
|
|
1905
|
+
/* */
|
|
1906
|
+
/* */
|
|
1903
1907
|
}
|
|
1904
1908
|
removeFolderByRelativePath(relativePathToFolder) {
|
|
1905
1909
|
/* */
|
|
@@ -2157,6 +2161,12 @@ class BaseProject {
|
|
|
2157
2161
|
async struct(initOptions) {
|
|
2158
2162
|
throw new Error('TODO IMPLEMENT');
|
|
2159
2163
|
}
|
|
2164
|
+
/**
|
|
2165
|
+
* init and build() project
|
|
2166
|
+
*/
|
|
2167
|
+
async test(testOptions) {
|
|
2168
|
+
throw new Error('TODO IMPLEMENT');
|
|
2169
|
+
}
|
|
2160
2170
|
/**
|
|
2161
2171
|
* init and build() project
|
|
2162
2172
|
*/
|
|
@@ -2330,6 +2340,18 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
2330
2340
|
/* */
|
|
2331
2341
|
/* */
|
|
2332
2342
|
/* */
|
|
2343
|
+
/* */
|
|
2344
|
+
/* */
|
|
2345
|
+
/* */
|
|
2346
|
+
/* */
|
|
2347
|
+
/* */
|
|
2348
|
+
/* */
|
|
2349
|
+
/* */
|
|
2350
|
+
/* */
|
|
2351
|
+
/* */
|
|
2352
|
+
/* */
|
|
2353
|
+
/* */
|
|
2354
|
+
/* */
|
|
2333
2355
|
return (void 0);
|
|
2334
2356
|
}
|
|
2335
2357
|
/**
|
|
@@ -2340,6 +2362,12 @@ class BaseLibraryBuild extends BaseFeatureForProject {
|
|
|
2340
2362
|
/* */
|
|
2341
2363
|
/* */
|
|
2342
2364
|
/* */
|
|
2365
|
+
/* */
|
|
2366
|
+
/* */
|
|
2367
|
+
/* */
|
|
2368
|
+
return (void 0);
|
|
2369
|
+
}
|
|
2370
|
+
getLibraries() {
|
|
2343
2371
|
/* */
|
|
2344
2372
|
/* */
|
|
2345
2373
|
/* */
|
|
@@ -2783,6 +2811,9 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
2783
2811
|
/* */
|
|
2784
2812
|
/* */
|
|
2785
2813
|
/* */
|
|
2814
|
+
/* */
|
|
2815
|
+
/* */
|
|
2816
|
+
/* */
|
|
2786
2817
|
return (void 0);
|
|
2787
2818
|
}
|
|
2788
2819
|
get versionWithPatchPlusOne() {
|
|
@@ -2930,13 +2961,42 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
2930
2961
|
}
|
|
2931
2962
|
async makeSureNodeModulesInstalled(options) {
|
|
2932
2963
|
if (this.emptyNodeModules) {
|
|
2933
|
-
this.
|
|
2964
|
+
await this.reinstallNodeModules(options);
|
|
2934
2965
|
}
|
|
2935
2966
|
}
|
|
2936
2967
|
deleteNodeModules() {
|
|
2937
2968
|
this.project.remove(config.folder.node_modules);
|
|
2938
2969
|
}
|
|
2939
|
-
async reinstallNodeModules(
|
|
2970
|
+
async reinstallNodeModules(options) {
|
|
2971
|
+
/* */
|
|
2972
|
+
/* */
|
|
2973
|
+
/* */
|
|
2974
|
+
/* */
|
|
2975
|
+
/* */
|
|
2976
|
+
/* */
|
|
2977
|
+
/* */
|
|
2978
|
+
/* */
|
|
2979
|
+
/* */
|
|
2980
|
+
/* */
|
|
2981
|
+
/* */
|
|
2982
|
+
/* */
|
|
2983
|
+
/* */
|
|
2984
|
+
/* */
|
|
2985
|
+
/* */
|
|
2986
|
+
/* */
|
|
2987
|
+
/* */
|
|
2988
|
+
/* */
|
|
2989
|
+
/* */
|
|
2990
|
+
/* */
|
|
2991
|
+
/* */
|
|
2992
|
+
/* */
|
|
2993
|
+
/* */
|
|
2994
|
+
/* */
|
|
2995
|
+
/* */
|
|
2996
|
+
/* */
|
|
2997
|
+
/* */
|
|
2998
|
+
/* */
|
|
2999
|
+
/* */
|
|
2940
3000
|
/* */
|
|
2941
3001
|
/* */
|
|
2942
3002
|
/* */
|
|
@@ -2957,9 +3017,6 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
2957
3017
|
/* */
|
|
2958
3018
|
/* */
|
|
2959
3019
|
/* */
|
|
2960
|
-
return (void 0);
|
|
2961
|
-
}
|
|
2962
|
-
reinstalNodeModules(options) {
|
|
2963
3020
|
/* */
|
|
2964
3021
|
/* */
|
|
2965
3022
|
/* */
|
|
@@ -3078,8 +3135,8 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
3078
3135
|
biggerBuffer: true,
|
|
3079
3136
|
});
|
|
3080
3137
|
}
|
|
3081
|
-
async prepareCommand(
|
|
3082
|
-
let { pkg,
|
|
3138
|
+
async prepareCommand(options) {
|
|
3139
|
+
let { pkg, silent, useYarn, force, removeYarnOrPackageJsonLock, generateYarnOrPackageJsonLock, } = options || {};
|
|
3083
3140
|
force = true; // TODO QUICK_FIX
|
|
3084
3141
|
let command = '';
|
|
3085
3142
|
const commonOptions = `--ignore-engines`;
|
|
@@ -3087,10 +3144,10 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
3087
3144
|
const argsForFasterInstall = `${force ? '--force' : ''} ${commonOptions} `;
|
|
3088
3145
|
command =
|
|
3089
3146
|
`${removeYarnOrPackageJsonLock
|
|
3090
|
-
? `rm ${config.file.yarn_lock} ` +
|
|
3147
|
+
? `(rm ${config.file.yarn_lock} || true) ` +
|
|
3091
3148
|
`&& touch ${config.file.yarn_lock} && `
|
|
3092
3149
|
: ''}` +
|
|
3093
|
-
`yarn ${pkg ? (remove ? 'remove' : 'add') : 'install'} ${pkg ? pkg.name : ''} ` +
|
|
3150
|
+
`yarn ${pkg ? (pkg?.installType === 'remove' ? 'remove' : 'add') : 'install'} ${pkg ? pkg.name : ''} ` +
|
|
3094
3151
|
` ${generateYarnOrPackageJsonLock ? '' : '--no-lockfile'} ` +
|
|
3095
3152
|
` ${argsForFasterInstall} ` +
|
|
3096
3153
|
` ${pkg && pkg.installType && pkg.installType === '--save-dev' ? '-dev' : ''} `;
|
|
@@ -3100,16 +3157,20 @@ class BaseNpmHelpers extends BaseFeatureForProject {
|
|
|
3100
3157
|
`${silent ? '--silent --no-progress' : ''} `;
|
|
3101
3158
|
command =
|
|
3102
3159
|
`${removeYarnOrPackageJsonLock
|
|
3103
|
-
? `rm ${config.file.package_lock_json} ` +
|
|
3160
|
+
? `(rm ${config.file.package_lock_json} || true) ` +
|
|
3104
3161
|
`&& touch ${config.file.package_lock_json} && `
|
|
3105
3162
|
: ''}` +
|
|
3106
3163
|
`npx --node-options=--max-old-space-size=8000 npm ` +
|
|
3107
|
-
`${remove ? 'uninstall' : 'install'} ${pkg ? pkg.name : ''} ` +
|
|
3164
|
+
`${pkg?.installType === 'remove' ? 'uninstall' : 'install'} ${pkg ? pkg.name : ''} ` +
|
|
3108
3165
|
` ${generateYarnOrPackageJsonLock ? '' : '--no-package-lock'} ` +
|
|
3109
|
-
` ${ignoreOptional ? '--ignore-optional' : ''} ` +
|
|
3110
3166
|
` ${pkg && pkg.installType ? pkg.installType : ''} ` +
|
|
3111
3167
|
` ${argsForFasterInstall} `;
|
|
3112
3168
|
}
|
|
3169
|
+
Helpers.info(`Command for npm install:
|
|
3170
|
+
|
|
3171
|
+
${command}
|
|
3172
|
+
|
|
3173
|
+
`);
|
|
3113
3174
|
return command;
|
|
3114
3175
|
}
|
|
3115
3176
|
/**
|
|
@@ -3569,7 +3630,7 @@ class BaseGit extends BaseFeatureForProject {
|
|
|
3569
3630
|
/* */
|
|
3570
3631
|
return (void 0);
|
|
3571
3632
|
}
|
|
3572
|
-
fetch() {
|
|
3633
|
+
fetch(all = false) {
|
|
3573
3634
|
/* */
|
|
3574
3635
|
/* */
|
|
3575
3636
|
return (void 0);
|
|
@@ -4371,7 +4432,7 @@ class BaseReleaseProcess extends BaseFeatureForProject {
|
|
|
4371
4432
|
}
|
|
4372
4433
|
async reinstallNodeModules() {
|
|
4373
4434
|
Helpers.taskStarted(`Reinstalling node_modules to recreate package-lock.json`);
|
|
4374
|
-
this.project.npmHelpers.
|
|
4435
|
+
await this.project.npmHelpers.reinstallNodeModules();
|
|
4375
4436
|
Helpers.taskDone(`Reinstalling node_modules to recreate package-lock.json`);
|
|
4376
4437
|
}
|
|
4377
4438
|
async selectChangelogCommits() {
|