@nu-art/build-and-install 0.400.2 → 0.400.4
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/build-and-install-v3.js +1 -2
- package/build-and-install.js +0 -1
- package/core/consts.js +0 -1
- package/core/exceptions/PhaseAggregatedException.js +0 -1
- package/core/package/consts.js +0 -1
- package/core/params/params.d.ts +3 -2
- package/core/params/params.js +18 -9
- package/core/types/configs/firebasejson.js +0 -1
- package/core/types/configs/firebaserc.js +0 -1
- package/core/types/configs/index.js +0 -1
- package/core/types/configs/package-json.js +0 -1
- package/core/types/core.js +0 -1
- package/core/types/index.js +0 -1
- package/core/types/package/index.js +0 -1
- package/core/types/package/package.js +0 -1
- package/core/types/package/runtime-package.js +0 -1
- package/core/types/project-config.js +0 -1
- package/defaults/consts.js +0 -1
- package/old/PhaseRunnerDispatcher.js +0 -1
- package/old/runner-dispatchers.js +0 -1
- package/package.json +3 -3
- package/v3/PhaseManager.js +0 -1
- package/v3/RunningStatusHandler.js +0 -1
- package/v3/UnitsDependencyMapper/UnitsDependencyMapper.js +1 -2
- package/v3/UnitsMapper/UnitsMapper.js +0 -1
- package/v3/UnitsMapper/resolvers/UnitMapper_Base.js +0 -1
- package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseFunction.js +0 -1
- package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseHosting.js +0 -1
- package/v3/UnitsMapper/resolvers/UnitMapper_Node.js +1 -2
- package/v3/UnitsMapper/resolvers/UnitMapper_NodeLib.js +0 -1
- package/v3/UnitsMapper/resolvers/UnitMapper_NodeProject.js +0 -1
- package/v3/UnitsMapper/resolvers/index.js +0 -1
- package/v3/UnitsMapper/types.js +0 -1
- package/v3/core/FilesCache.js +0 -1
- package/v3/core/Unit_HelpPrinter.d.ts +1 -1
- package/v3/core/Unit_HelpPrinter.js +0 -1
- package/v3/core/types.js +0 -1
- package/v3/phase/consts.d.ts +3 -3
- package/v3/phase/consts.js +8 -9
- package/v3/phase/index.js +0 -1
- package/v3/phase/types.js +0 -1
- package/v3/units/BaseUnit.js +0 -1
- package/v3/units/ProjectUnit.js +0 -1
- package/v3/units/Unit_NodeProject.js +1 -2
- package/v3/units/Unit_PackageJson.js +1 -2
- package/v3/units/Unit_TypescriptLib.d.ts +3 -3
- package/v3/units/Unit_TypescriptLib.js +146 -22
- package/v3/units/firebase/Unit_FirebaseFunctionsApp.js +1 -2
- package/v3/units/firebase/Unit_FirebaseHostingApp.js +0 -1
- package/v3/units/index.js +0 -1
- package/build-and-install-v3.js.map +0 -1
- package/build-and-install.js.map +0 -1
- package/core/consts.js.map +0 -1
- package/core/exceptions/PhaseAggregatedException.js.map +0 -1
- package/core/package/consts.js.map +0 -1
- package/core/params/params.js.map +0 -1
- package/core/types/configs/firebasejson.js.map +0 -1
- package/core/types/configs/firebaserc.js.map +0 -1
- package/core/types/configs/index.js.map +0 -1
- package/core/types/configs/package-json.js.map +0 -1
- package/core/types/core.js.map +0 -1
- package/core/types/index.js.map +0 -1
- package/core/types/package/index.js.map +0 -1
- package/core/types/package/package.js.map +0 -1
- package/core/types/package/runtime-package.js.map +0 -1
- package/core/types/project-config.js.map +0 -1
- package/defaults/consts.js.map +0 -1
- package/old/PhaseRunnerDispatcher.js.map +0 -1
- package/old/runner-dispatchers.js.map +0 -1
- package/v3/PhaseManager.js.map +0 -1
- package/v3/RunningStatusHandler.js.map +0 -1
- package/v3/UnitsDependencyMapper/UnitsDependencyMapper.js.map +0 -1
- package/v3/UnitsMapper/UnitsMapper.js.map +0 -1
- package/v3/UnitsMapper/resolvers/UnitMapper_Base.js.map +0 -1
- package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseFunction.js.map +0 -1
- package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseHosting.js.map +0 -1
- package/v3/UnitsMapper/resolvers/UnitMapper_Node.js.map +0 -1
- package/v3/UnitsMapper/resolvers/UnitMapper_NodeLib.js.map +0 -1
- package/v3/UnitsMapper/resolvers/UnitMapper_NodeProject.js.map +0 -1
- package/v3/UnitsMapper/resolvers/index.js.map +0 -1
- package/v3/UnitsMapper/types.js.map +0 -1
- package/v3/core/FileSystemUtils.d.ts +0 -34
- package/v3/core/FileSystemUtils.js +0 -152
- package/v3/core/FileSystemUtils.js.map +0 -1
- package/v3/core/FilesCache.js.map +0 -1
- package/v3/core/Unit_HelpPrinter.js.map +0 -1
- package/v3/core/types.js.map +0 -1
- package/v3/phase/consts.js.map +0 -1
- package/v3/phase/index.js.map +0 -1
- package/v3/phase/types.js.map +0 -1
- package/v3/units/BaseUnit.js.map +0 -1
- package/v3/units/ProjectUnit.js.map +0 -1
- package/v3/units/Unit_NodeProject.js.map +0 -1
- package/v3/units/Unit_PackageJson.js.map +0 -1
- package/v3/units/Unit_TypescriptLib.js.map +0 -1
- package/v3/units/firebase/Unit_FirebaseFunctionsApp.js.map +0 -1
- package/v3/units/firebase/Unit_FirebaseHostingApp.js.map +0 -1
- package/v3/units/index.js.map +0 -1
package/build-and-install-v3.js
CHANGED
|
@@ -9,10 +9,10 @@ import { PhaseManager } from './v3/PhaseManager.js';
|
|
|
9
9
|
import { Unit_NodeProject } from './v3/units/index.js';
|
|
10
10
|
import { resolve } from 'path';
|
|
11
11
|
import { CONST_BaiConfig, CONST_NodeModules } from './core/consts.js';
|
|
12
|
-
import { FileSystemUtils } from './v3/core/FileSystemUtils.js';
|
|
13
12
|
import { UnitMapper_FirebaseFunction, UnitMapper_FirebaseHosting, UnitMapper_NodeLib, UnitMapper_NodeProject } from './v3/UnitsMapper/resolvers/index.js';
|
|
14
13
|
import { CLIParamsResolver } from '@nu-art/commando/cli-params/CLIParamsResolver';
|
|
15
14
|
import { RunningStatusHandler } from './v3/RunningStatusHandler.js';
|
|
15
|
+
import { FileSystemUtils } from '@nu-art/ts-common/utils/FileSystemUtils';
|
|
16
16
|
export const DefaultPhases = [
|
|
17
17
|
...phases_Build,
|
|
18
18
|
...phases_Launch,
|
|
@@ -129,4 +129,3 @@ export class BuildAndInstall extends Logger {
|
|
|
129
129
|
this.logInfo('---------------------------------- Process Completed successfully ----------------------------------');
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
//# sourceMappingURL=build-and-install-v3.js.map
|
package/build-and-install.js
CHANGED
package/core/consts.js
CHANGED
package/core/package/consts.js
CHANGED
package/core/params/params.d.ts
CHANGED
|
@@ -32,8 +32,9 @@ export declare const BaiParam_Verbose: BaseCliParam<'verbose', boolean>;
|
|
|
32
32
|
export declare const BaiParam_QuickDeploy: BaseCliParam<'quickDeploy', boolean>;
|
|
33
33
|
type PromoteType = 'patch' | 'minor' | 'major';
|
|
34
34
|
export declare const BaiParam_Publish: BaseCliParam<'publish', PromoteType>;
|
|
35
|
-
export declare const BaiParam_PublishDryRun: BaseCliParam<'publishDryRun', boolean>;
|
|
36
35
|
export declare const BaiParam_UsePackage: BaseCliParam<'usePackage', string[]>;
|
|
37
|
-
export declare const
|
|
36
|
+
export declare const BaiParam_ToESM: BaseCliParam<'toESM', boolean>;
|
|
37
|
+
export declare const BaiParam_Simulate: BaseCliParam<'simulation', boolean>;
|
|
38
|
+
export declare const AllBaiParams: (BaseCliParam<"allUnits", boolean> | BaseCliParam<"dependencyTree", boolean> | BaseCliParam<"checkCyclicImports", boolean> | BaseCliParam<"continue", boolean> | BaseCliParam<"environment", string> | BaseCliParam<"setup", boolean> | BaseCliParam<"install", boolean> | BaseCliParam<"clean", boolean> | BaseCliParam<"purge", boolean> | BaseCliParam<"generate", boolean> | BaseCliParam<"generateDocs", boolean> | BaseCliParam<"noBuild", boolean> | BaseCliParam<"prepare", boolean> | BaseCliParam<"dryRun", boolean> | BaseCliParam<"lint", boolean> | BaseCliParam<"watch", boolean> | BaseCliParam<"watchBuildTree", boolean> | BaseCliParam<"test", boolean> | BaseCliParam<"testType", string[]> | BaseCliParam<"testFiles", string[]> | BaseCliParam<"testCases", string[]> | BaseCliParam<"testDebugPort", number> | BaseCliParam<"launch", boolean> | BaseCliParam<"debugBackend", boolean> | BaseCliParam<"deploy", string> | BaseCliParam<"debug", boolean> | BaseCliParam<"debugLifecycle", boolean> | BaseCliParam<"verbose", boolean> | BaseCliParam<"publish", PromoteType> | BaseCliParam<"usePackage", string[]> | BaseCliParam<"toESM", boolean> | BaseCliParam<"simulation", boolean>)[];
|
|
38
39
|
export type BaiParams = CliParams<typeof AllBaiParams>;
|
|
39
40
|
export {};
|
package/core/params/params.js
CHANGED
|
@@ -226,13 +226,6 @@ export const BaiParam_Publish = {
|
|
|
226
226
|
description: 'Will publish to NPM any package that is not marked as private in its __package.json \nenum options: patch | minor | major \nDefault Param: patch',
|
|
227
227
|
process: (part) => part ?? 'patch'
|
|
228
228
|
};
|
|
229
|
-
export const BaiParam_PublishDryRun = {
|
|
230
|
-
keys: ['--publish-dry-run'],
|
|
231
|
-
keyName: 'publishDryRun',
|
|
232
|
-
type: 'boolean',
|
|
233
|
-
group: 'Other',
|
|
234
|
-
description: 'Will pack and prepare a package for publish, but will NOT publish to NPM any package',
|
|
235
|
-
};
|
|
236
229
|
export const BaiParam_UsePackage = {
|
|
237
230
|
keys: ['-up', '--use-packages'],
|
|
238
231
|
keyName: 'usePackage',
|
|
@@ -246,6 +239,22 @@ export const BaiParam_UsePackage = {
|
|
|
246
239
|
},
|
|
247
240
|
dependencies: [{ param: BaiParam_AllUnits, value: true }]
|
|
248
241
|
};
|
|
242
|
+
export const BaiParam_ToESM = {
|
|
243
|
+
keys: ['-tesm', '--to-esm'],
|
|
244
|
+
keyName: 'toESM',
|
|
245
|
+
type: 'boolean',
|
|
246
|
+
group: 'Other',
|
|
247
|
+
description: 'Will migrate existing CJS code to ESM',
|
|
248
|
+
dependencies: [{ param: BaiParam_AllUnits, value: true }]
|
|
249
|
+
};
|
|
250
|
+
export const BaiParam_Simulate = {
|
|
251
|
+
keys: ['--simulate', '-sim'],
|
|
252
|
+
keyName: 'simulation',
|
|
253
|
+
type: 'boolean',
|
|
254
|
+
group: 'Other',
|
|
255
|
+
description: 'In combination with other params, will not perform the outbound operation, but instead simulate it',
|
|
256
|
+
dependencies: [{ param: BaiParam_AllUnits, value: true }]
|
|
257
|
+
};
|
|
249
258
|
export const AllBaiParams = [
|
|
250
259
|
BaiParam_AllUnits,
|
|
251
260
|
BaiParam_DependencyTree,
|
|
@@ -274,9 +283,9 @@ export const AllBaiParams = [
|
|
|
274
283
|
BaiParam_DebugBackend,
|
|
275
284
|
BaiParam_Debug,
|
|
276
285
|
BaiParam_Verbose,
|
|
277
|
-
BaiParam_PublishDryRun,
|
|
278
286
|
BaiParam_Publish,
|
|
279
287
|
BaiParam_UsePackage,
|
|
288
|
+
BaiParam_ToESM,
|
|
289
|
+
BaiParam_Simulate,
|
|
280
290
|
BaiParam_DebugLifecycle
|
|
281
291
|
];
|
|
282
|
-
//# sourceMappingURL=params.js.map
|
package/core/types/core.js
CHANGED
package/core/types/index.js
CHANGED
|
@@ -12,4 +12,3 @@ export const PackageTypes = [PackageType_InfraLib,
|
|
|
12
12
|
PackageType_Sourceless,
|
|
13
13
|
PackageType_Python];
|
|
14
14
|
export const PackageTypesWithOutput = [PackageType_InfraLib, PackageType_ProjectLib, PackageType_FirebaseHostingApp, PackageType_FirebaseFunctionsApp];
|
|
15
|
-
//# sourceMappingURL=package.js.map
|
package/defaults/consts.js
CHANGED
|
@@ -30,4 +30,3 @@ export class PhaseRunnerDispatcher {
|
|
|
30
30
|
export const dispatcher_PhaseChange = new PhaseRunnerDispatcher('__onPhaseChange');
|
|
31
31
|
export const dispatcher_UnitStatusChange = new PhaseRunnerDispatcher('__onUnitStatusChange');
|
|
32
32
|
export const dispatcher_UnitChange = new PhaseRunnerDispatcher('__onUnitsChange');
|
|
33
|
-
//# sourceMappingURL=PhaseRunnerDispatcher.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { PhaseRunnerDispatcher } from './PhaseRunnerDispatcher.js';
|
|
2
2
|
export const dispatcher_WatchReady = new PhaseRunnerDispatcher('__onWatchReady');
|
|
3
3
|
export const dispatcher_UnitWatchCompile = new PhaseRunnerDispatcher('__onUnitWatchCompiled');
|
|
4
|
-
//# sourceMappingURL=runner-dispatchers.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nu-art/build-and-install",
|
|
3
|
-
"version": "0.400.
|
|
3
|
+
"version": "0.400.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"chokidar": "^3.6.0",
|
|
34
|
-
"@nu-art/ts-common": "0.400.
|
|
35
|
-
"@nu-art/commando": "0.400.
|
|
34
|
+
"@nu-art/ts-common": "0.400.4",
|
|
35
|
+
"@nu-art/commando": "0.400.4"
|
|
36
36
|
},
|
|
37
37
|
"unitConfig": {
|
|
38
38
|
"type": "typescript-lib"
|
package/v3/PhaseManager.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __stringify, _keys, _values, BadImplementationException, DateTimeFormat_yyyyMMDDTHHmmss, deepClone, Logger, reduceObject, sortArray } from '@nu-art/ts-common';
|
|
2
|
-
import { FileSystemUtils } from '
|
|
2
|
+
import { FileSystemUtils } from '@nu-art/ts-common/utils/FileSystemUtils';
|
|
3
3
|
import { resolve } from 'path';
|
|
4
4
|
/**
|
|
5
5
|
* Maps unit dependencies and provides tools to analyze and operate on the dependency graph.
|
|
@@ -284,4 +284,3 @@ export class UnitsDependencyMapper extends Logger {
|
|
|
284
284
|
return _values(this.map).filter(node => node.dependsOn.length === 0).map(node => node.key).sort();
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
//# sourceMappingURL=UnitsDependencyMapper.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _keys, deepClone, tsValidate, tsValidateBoolean, tsValidateOptionalAnyString, tsValidateResult } from '@nu-art/ts-common';
|
|
2
2
|
import { FilesCache } from '../../core/FilesCache.js';
|
|
3
3
|
import { UnitMapper_Base } from './UnitMapper_Base.js';
|
|
4
|
-
import { FileSystemUtils } from '
|
|
4
|
+
import { FileSystemUtils } from '@nu-art/ts-common/utils/FileSystemUtils';
|
|
5
5
|
export class UnitMapper_Node extends UnitMapper_Base {
|
|
6
6
|
static invalidPaths = [];
|
|
7
7
|
static tsValidator_Node = {
|
|
@@ -56,4 +56,3 @@ export class UnitMapper_Node extends UnitMapper_Base {
|
|
|
56
56
|
return this.resolveNodeUnit({ path, root, packageJson, baseConfig, customESLintConfig, customTSConfig });
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
//# sourceMappingURL=UnitMapper_Node.js.map
|
package/v3/UnitsMapper/types.js
CHANGED
package/v3/core/FilesCache.js
CHANGED
|
@@ -3,7 +3,7 @@ import { UnitPhaseImplementor } from './types.js';
|
|
|
3
3
|
import { Phase } from '../phase/index.js';
|
|
4
4
|
import { ProjectUnit } from '../units/index.js';
|
|
5
5
|
export declare const BaiParam_Help: BaseCliParam<'help', boolean>;
|
|
6
|
-
declare const AllBaiParams_Help: (BaseCliParam<"allUnits", boolean> | BaseCliParam<"dependencyTree", boolean> | BaseCliParam<"checkCyclicImports", boolean> | BaseCliParam<"continue", boolean> | BaseCliParam<"environment", string> | BaseCliParam<"setup", boolean> | BaseCliParam<"install", boolean> | BaseCliParam<"clean", boolean> | BaseCliParam<"purge", boolean> | BaseCliParam<"generate", boolean> | BaseCliParam<"generateDocs", boolean> | BaseCliParam<"noBuild", boolean> | BaseCliParam<"prepare", boolean> | BaseCliParam<"dryRun", boolean> | BaseCliParam<"lint", boolean> | BaseCliParam<"watch", boolean> | BaseCliParam<"watchBuildTree", boolean> | BaseCliParam<"test", boolean> | BaseCliParam<"testType", string[]> | BaseCliParam<"testFiles", string[]> | BaseCliParam<"testCases", string[]> | BaseCliParam<"testDebugPort", number> | BaseCliParam<"launch", boolean> | BaseCliParam<"debugBackend", boolean> | BaseCliParam<"deploy", string> | BaseCliParam<"debug", boolean> | BaseCliParam<"debugLifecycle", boolean> | BaseCliParam<"verbose", boolean> | BaseCliParam<"publish", "patch" | "minor" | "major"> | BaseCliParam<"
|
|
6
|
+
declare const AllBaiParams_Help: (BaseCliParam<"allUnits", boolean> | BaseCliParam<"dependencyTree", boolean> | BaseCliParam<"checkCyclicImports", boolean> | BaseCliParam<"continue", boolean> | BaseCliParam<"environment", string> | BaseCliParam<"setup", boolean> | BaseCliParam<"install", boolean> | BaseCliParam<"clean", boolean> | BaseCliParam<"purge", boolean> | BaseCliParam<"generate", boolean> | BaseCliParam<"generateDocs", boolean> | BaseCliParam<"noBuild", boolean> | BaseCliParam<"prepare", boolean> | BaseCliParam<"dryRun", boolean> | BaseCliParam<"lint", boolean> | BaseCliParam<"watch", boolean> | BaseCliParam<"watchBuildTree", boolean> | BaseCliParam<"test", boolean> | BaseCliParam<"testType", string[]> | BaseCliParam<"testFiles", string[]> | BaseCliParam<"testCases", string[]> | BaseCliParam<"testDebugPort", number> | BaseCliParam<"launch", boolean> | BaseCliParam<"debugBackend", boolean> | BaseCliParam<"deploy", string> | BaseCliParam<"debug", boolean> | BaseCliParam<"debugLifecycle", boolean> | BaseCliParam<"verbose", boolean> | BaseCliParam<"publish", "patch" | "minor" | "major"> | BaseCliParam<"usePackage", string[]> | BaseCliParam<"toESM", boolean> | BaseCliParam<"simulation", boolean> | BaseCliParam<"help", boolean>)[];
|
|
7
7
|
export type Help_BaiParams = CliParams<typeof AllBaiParams_Help>;
|
|
8
8
|
export type Phase_Help = typeof phase_Help;
|
|
9
9
|
export declare const phaseKey_Help = "help";
|
package/v3/core/types.js
CHANGED
package/v3/phase/consts.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export declare const phase_PrintDependencyTree: Phase<'printDependencyTree'>;
|
|
|
5
5
|
export type Phase_CheckCyclicImports = typeof phase_CheckCyclicImports;
|
|
6
6
|
export declare const phaseKey_CheckCyclicImports = "check-cyclic-imports";
|
|
7
7
|
export declare const phase_CheckCyclicImports: Phase<'checkCyclicImports'>;
|
|
8
|
+
export type Phase_ToESM = typeof phase_ToESM;
|
|
9
|
+
export declare const phaseKey_ToESM = "convertToESM";
|
|
10
|
+
export declare const phase_ToESM: Phase<'convertToESM'>;
|
|
8
11
|
export type Phase_Purge = typeof phase_Purge;
|
|
9
12
|
export declare const phaseKey_Purge = "purge";
|
|
10
13
|
export declare const phase_Purge: Phase<'purge'>;
|
|
@@ -37,9 +40,6 @@ export type Phase_Launch = typeof phase_Launch;
|
|
|
37
40
|
export declare const phaseKey_Launch = "launch";
|
|
38
41
|
export declare const phase_Launch: Phase<'launch'>;
|
|
39
42
|
export declare const phases_Launch: Phase<string>[][];
|
|
40
|
-
export type Phase_PublishDryRun = typeof phase_PublishDryRun;
|
|
41
|
-
export declare const phaseKey_PublishDryRun = "publishDryRun";
|
|
42
|
-
export declare const phase_PublishDryRun: Phase<'publishDryRun'>;
|
|
43
43
|
export type Phase_Publish = typeof phase_Publish;
|
|
44
44
|
export declare const phaseKey_Publish = "publish";
|
|
45
45
|
export declare const phase_Publish: Phase<'publish'>;
|
package/v3/phase/consts.js
CHANGED
|
@@ -14,6 +14,13 @@ export const phase_CheckCyclicImports = {
|
|
|
14
14
|
filter: (baiParams) => baiParams.checkCyclicImports,
|
|
15
15
|
terminateAfterPhase: true,
|
|
16
16
|
};
|
|
17
|
+
export const phaseKey_ToESM = 'convertToESM';
|
|
18
|
+
export const phase_ToESM = {
|
|
19
|
+
key: phaseKey_ToESM,
|
|
20
|
+
name: 'ToESM',
|
|
21
|
+
method: 'convertToESM',
|
|
22
|
+
filter: (baiParams) => !baiParams.noBuild,
|
|
23
|
+
};
|
|
17
24
|
export const phaseKey_Purge = 'purge';
|
|
18
25
|
export const phase_Purge = {
|
|
19
26
|
key: phaseKey_Purge,
|
|
@@ -95,13 +102,6 @@ export const phase_Launch = {
|
|
|
95
102
|
export const phases_Launch = [[
|
|
96
103
|
phase_Launch,
|
|
97
104
|
]];
|
|
98
|
-
export const phaseKey_PublishDryRun = 'publishDryRun';
|
|
99
|
-
export const phase_PublishDryRun = {
|
|
100
|
-
key: phaseKey_PublishDryRun,
|
|
101
|
-
name: 'PublishDryRun',
|
|
102
|
-
method: 'publishDryRun',
|
|
103
|
-
filter: (baiParams) => baiParams.publishDryRun,
|
|
104
|
-
};
|
|
105
105
|
export const phaseKey_Publish = 'publish';
|
|
106
106
|
export const phase_Publish = {
|
|
107
107
|
key: phaseKey_Publish,
|
|
@@ -123,5 +123,4 @@ export const phase_Deploy = {
|
|
|
123
123
|
method: 'deploy',
|
|
124
124
|
filter: (baiParams) => !!baiParams.deploy,
|
|
125
125
|
};
|
|
126
|
-
export const phases_Deploy = [[
|
|
127
|
-
//# sourceMappingURL=consts.js.map
|
|
126
|
+
export const phases_Deploy = [[phase_Publish, phase_Deploy], [phase_PostPublish]];
|
package/v3/phase/index.js
CHANGED
package/v3/phase/types.js
CHANGED
package/v3/units/BaseUnit.js
CHANGED
package/v3/units/ProjectUnit.js
CHANGED
|
@@ -6,13 +6,13 @@ import { Commando_PNPM } from '@nu-art/commando/shell/plugins/pnpm';
|
|
|
6
6
|
import { PNPM } from '@nu-art/commando/shell/services/pnpm';
|
|
7
7
|
import { Unit_PackageJson } from './Unit_PackageJson.js';
|
|
8
8
|
import { resolve } from 'path';
|
|
9
|
-
import { FileSystemUtils } from '../core/FileSystemUtils.js';
|
|
10
9
|
import { PhaseManager } from '../PhaseManager.js';
|
|
11
10
|
import { phase_CompileWatch } from '../phase/index.js';
|
|
12
11
|
import { UnitsDependencyMapper } from '../UnitsDependencyMapper/UnitsDependencyMapper.js';
|
|
13
12
|
import { CommandoException } from '@nu-art/commando/shell/core/CliError';
|
|
14
13
|
import { CONST_PNPM_LOCK, CONST_PNPM_WORKSPACE } from '../../core/consts.js';
|
|
15
14
|
import { RunningStatusHandler } from '../RunningStatusHandler.js';
|
|
15
|
+
import { FileSystemUtils } from '@nu-art/ts-common/utils/FileSystemUtils';
|
|
16
16
|
export class Unit_NodeProject extends Unit_PackageJson {
|
|
17
17
|
watcher;
|
|
18
18
|
innerUnits = [];
|
|
@@ -241,4 +241,3 @@ export class Unit_NodeProject extends Unit_PackageJson {
|
|
|
241
241
|
async postPublish() {
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
//# sourceMappingURL=Unit_NodeProject.js.map
|
|
@@ -2,8 +2,8 @@ import { CONST_NodeModules, CONST_PackageJSON } from '../../core/consts.js';
|
|
|
2
2
|
import { __stringify } from '@nu-art/ts-common';
|
|
3
3
|
import { ProjectUnit } from './ProjectUnit.js';
|
|
4
4
|
import { resolve } from 'path';
|
|
5
|
-
import { DEFAULT_OLD_TEMPLATE_PATTERN, FileSystemUtils } from '../core/FileSystemUtils.js';
|
|
6
5
|
import { Commando_NVM } from '@nu-art/commando/shell/plugins/nvm';
|
|
6
|
+
import { DEFAULT_OLD_TEMPLATE_PATTERN, FileSystemUtils } from '@nu-art/ts-common/utils/FileSystemUtils';
|
|
7
7
|
export class Unit_PackageJson extends ProjectUnit {
|
|
8
8
|
constructor(config) {
|
|
9
9
|
super(config);
|
|
@@ -48,4 +48,3 @@ export class Unit_PackageJson extends ProjectUnit {
|
|
|
48
48
|
.execute();
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
//# sourceMappingURL=Unit_PackageJson.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { TypedMap } from '@nu-art/ts-common';
|
|
2
2
|
import { UnitPhaseImplementor } from '../core/types.js';
|
|
3
3
|
import { Unit_PackageJson, Unit_PackageJson_Config } from './Unit_PackageJson.js';
|
|
4
|
-
import { Phase_CheckCyclicImports, Phase_Compile, Phase_Lint, Phase_PreCompile, Phase_PrintDependencyTree, Phase_Publish,
|
|
4
|
+
import { Phase_CheckCyclicImports, Phase_Compile, Phase_Lint, Phase_PreCompile, Phase_PrintDependencyTree, Phase_Publish, Phase_Test, Phase_ToESM } from '../phase/index.js';
|
|
5
5
|
export type Unit_TypescriptLib_Config = Unit_PackageJson_Config & {
|
|
6
6
|
customESLintConfig: boolean;
|
|
7
7
|
customTSConfig: boolean;
|
|
8
8
|
hasSelfHotReload: boolean;
|
|
9
9
|
output: string;
|
|
10
10
|
};
|
|
11
|
-
export declare class Unit_TypescriptLib<C extends Unit_TypescriptLib_Config = Unit_TypescriptLib_Config> extends Unit_PackageJson<C> implements UnitPhaseImplementor<[Phase_PreCompile, Phase_Compile, Phase_PrintDependencyTree, Phase_CheckCyclicImports, Phase_Lint, Phase_Test, Phase_Publish,
|
|
11
|
+
export declare class Unit_TypescriptLib<C extends Unit_TypescriptLib_Config = Unit_TypescriptLib_Config> extends Unit_PackageJson<C> implements UnitPhaseImplementor<[Phase_PreCompile, Phase_Compile, Phase_PrintDependencyTree, Phase_CheckCyclicImports, Phase_Lint, Phase_Test, Phase_Publish, Phase_ToESM]> {
|
|
12
12
|
private TestTypeWorkspaceSetup;
|
|
13
13
|
runTests(): Promise<void>;
|
|
14
14
|
constructor(config: Unit_TypescriptLib<C>['config']);
|
|
@@ -40,6 +40,6 @@ export declare class Unit_TypescriptLib<C extends Unit_TypescriptLib_Config = Un
|
|
|
40
40
|
private resolveESLintConfig;
|
|
41
41
|
protected deriveTSConfigPaths(): TypedMap<string[]>;
|
|
42
42
|
protected resolveTSConfig(srcFolder: string, sourceFolderType: string): Promise<void>;
|
|
43
|
-
publishDryRun(): Promise<void>;
|
|
44
43
|
publish(): Promise<void>;
|
|
44
|
+
convertToESM(): Promise<void>;
|
|
45
45
|
}
|