@angular-builders/custom-esbuild 17.1.0-beta.2 → 17.1.0
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/dist/application/index.js +4 -4
- package/dist/application/index.js.map +1 -1
- package/dist/dev-server/index.js +6 -6
- package/dist/dev-server/index.js.map +1 -1
- package/dist/load-plugins.d.ts +2 -2
- package/dist/load-plugins.js +3 -2
- package/dist/load-plugins.js.map +1 -1
- package/package.json +5 -5
- package/dist/utils.d.ts +0 -5
- package/dist/utils.js +0 -141
- package/dist/utils.js.map +0 -1
|
@@ -15,15 +15,15 @@ const architect_1 = require("@angular-devkit/architect");
|
|
|
15
15
|
const build_angular_1 = require("@angular-devkit/build-angular");
|
|
16
16
|
const core_1 = require("@angular-devkit/core");
|
|
17
17
|
const rxjs_1 = require("rxjs");
|
|
18
|
-
const
|
|
18
|
+
const common_1 = require("@angular-builders/common");
|
|
19
19
|
const load_plugins_1 = require("../load-plugins");
|
|
20
20
|
function buildCustomEsbuildApplication(options, context) {
|
|
21
|
-
const workspaceRoot = (0, core_1.normalize)(context.workspaceRoot);
|
|
22
|
-
const tsConfig = path.join(
|
|
21
|
+
const workspaceRoot = (0, core_1.getSystemPath)((0, core_1.normalize)(context.workspaceRoot));
|
|
22
|
+
const tsConfig = path.join(workspaceRoot, options.tsConfig);
|
|
23
23
|
return (0, rxjs_1.defer)(() => __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const codePlugins = yield (0, load_plugins_1.loadPlugins)(options.plugins, workspaceRoot, tsConfig, context.logger);
|
|
25
25
|
const indexHtmlTransformer = options.indexHtmlTransformer
|
|
26
|
-
? yield (0,
|
|
26
|
+
? yield (0, common_1.loadModule)(path.join(workspaceRoot, options.indexHtmlTransformer), tsConfig, context.logger)
|
|
27
27
|
: undefined;
|
|
28
28
|
return { codePlugins, indexHtmlTransformer };
|
|
29
29
|
})).pipe((0, rxjs_1.switchMap)(extensions => (0, build_angular_1.buildApplication)(options, context, extensions)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/application/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAkC;AAClC,yDAA0E;AAC1E,iEAAiE;AACjE,+CAAsE;AAEtE,+BAAwC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/application/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAkC;AAClC,yDAA0E;AAC1E,iEAAiE;AACjE,+CAAsE;AAEtE,+BAAwC;AACxC,qDAAsD;AAEtD,kDAA8C;AAG9C,SAAgB,6BAA6B,CAC3C,OAAuC,EACvC,OAAuB;IAEvB,MAAM,aAAa,GAAG,IAAA,oBAAa,EAAC,IAAA,gBAAS,EAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;IACtE,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE5D,OAAO,IAAA,YAAK,EAAC,GAAS,EAAE;QACtB,MAAM,WAAW,GAAG,MAAM,IAAA,0BAAW,EAAC,OAAO,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QAEhG,MAAM,oBAAoB,GAAG,OAAO,CAAC,oBAAoB;YACvD,CAAC,CAAC,MAAM,IAAA,mBAAU,EACd,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,oBAAoB,CAAC,EACtD,QAAQ,EACR,OAAO,CAAC,MAAM,CACf;YACH,CAAC,CAAC,SAAS,CAAC;QAEd,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAkC,CAAC;IAC/E,CAAC,CAAA,CAAC,CAAC,IAAI,CAAC,IAAA,gBAAS,EAAC,UAAU,CAAC,EAAE,CAAC,IAAA,gCAAgB,EAAC,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;AACnF,CAAC;AApBD,sEAoBC;AAED,kBAAe,IAAA,yBAAa,EAC1B,6BAA6B,CAC9B,CAAC"}
|
package/dist/dev-server/index.js
CHANGED
|
@@ -15,7 +15,7 @@ const architect_1 = require("@angular-devkit/architect");
|
|
|
15
15
|
const build_angular_1 = require("@angular-devkit/build-angular");
|
|
16
16
|
const core_1 = require("@angular-devkit/core");
|
|
17
17
|
const rxjs_1 = require("rxjs");
|
|
18
|
-
const
|
|
18
|
+
const common_1 = require("@angular-builders/common");
|
|
19
19
|
const load_plugins_1 = require("../load-plugins");
|
|
20
20
|
const patch_builder_context_1 = require("./patch-builder-context");
|
|
21
21
|
function executeCustomDevServerBuilder(options, context) {
|
|
@@ -28,15 +28,15 @@ function executeCustomDevServerBuilder(options, context) {
|
|
|
28
28
|
return (yield context.getTargetOptions(buildTarget));
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
const workspaceRoot = (0, core_1.normalize)(context.workspaceRoot);
|
|
31
|
+
const workspaceRoot = (0, core_1.getSystemPath)((0, core_1.normalize)(context.workspaceRoot));
|
|
32
32
|
return (0, rxjs_1.from)(getBuildTargetOptions()).pipe((0, rxjs_1.switchMap)((buildOptions) => __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const tsConfig = path.join(
|
|
34
|
-
const middleware = yield Promise.all((options.middlewares || []).map(
|
|
33
|
+
const tsConfig = path.join(workspaceRoot, buildOptions.tsConfig);
|
|
34
|
+
const middleware = yield Promise.all((options.middlewares || []).map(middlewarePath =>
|
|
35
35
|
// https://github.com/angular/angular-cli/pull/26212/files#diff-a99020cbdb97d20b2bc686bcb64b31942107d56db06fd880171b0a86f7859e6eR52
|
|
36
|
-
(0,
|
|
36
|
+
(0, common_1.loadModule)(path.join(workspaceRoot, middlewarePath), tsConfig, context.logger)));
|
|
37
37
|
const buildPlugins = yield (0, load_plugins_1.loadPlugins)(buildOptions.plugins, workspaceRoot, tsConfig, context.logger);
|
|
38
38
|
const indexHtmlTransformer = buildOptions.indexHtmlTransformer
|
|
39
|
-
? yield (0,
|
|
39
|
+
? yield (0, common_1.loadModule)(path.join(workspaceRoot, buildOptions.indexHtmlTransformer), tsConfig, context.logger)
|
|
40
40
|
: undefined;
|
|
41
41
|
(0, patch_builder_context_1.patchBuilderContext)(context, buildTarget);
|
|
42
42
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dev-server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAkC;AAClC,yDAAkG;AAClG,iEAIuC;AAEvC,+CAAsE;AACtE,+BAAmD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dev-server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAkC;AAClC,yDAAkG;AAClG,iEAIuC;AAEvC,+CAAsE;AACtE,+BAAmD;AAEnD,qDAAsD;AAEtD,kDAA8C;AAC9C,mEAA8D;AAM9D,SAAgB,6BAA6B,CAC3C,OAAqC,EACrC,OAAuB;;IAEvB,MAAM,WAAW,GAAG,IAAA,kCAAsB;IACxC,uCAAuC;IACvC,MAAA,OAAO,CAAC,WAAW,mCAAI,OAAO,CAAC,aAAc,CAC9C,CAAC;IAEF,SAAe,qBAAqB;;YAClC,OAAO,CAAC,MAAM,OAAO,CAAC,gBAAgB,CACpC,WAAW,CACZ,CAA8C,CAAC;QAClD,CAAC;KAAA;IAED,MAAM,aAAa,GAAG,IAAA,oBAAa,EAAC,IAAA,gBAAS,EAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;IAEtE,OAAO,IAAA,WAAI,EAAC,qBAAqB,EAAE,CAAC,CAAC,IAAI,CACvC,IAAA,gBAAS,EAAC,CAAM,YAAY,EAAC,EAAE;QAC7B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;QAEjE,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,GAAG,CAClC,CAAC,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE;QAC/C,mIAAmI;QACnI,IAAA,mBAAU,EACR,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,EACxC,QAAQ,EACR,OAAO,CAAC,MAAM,CACf,CACF,CACF,CAAC;QAEF,MAAM,YAAY,GAAG,MAAM,IAAA,0BAAW,EACpC,YAAY,CAAC,OAAO,EACpB,aAAa,EACb,QAAQ,EACR,OAAO,CAAC,MAAM,CACf,CAAC;QAEF,MAAM,oBAAoB,GAAuB,YAAY,CAAC,oBAAoB;YAChF,CAAC,CAAC,MAAM,IAAA,mBAAU,EACd,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,oBAAoB,CAAC,EAC3D,QAAQ,EACR,OAAO,CAAC,MAAM,CACf;YACH,CAAC,CAAC,SAAS,CAAC;QAEd,IAAA,2CAAmB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QAE1C,OAAO;YACL,UAAU,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE;YAC/C,UAAU,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE;SACzC,CAAC;IACJ,CAAC,CAAA,CAAC,EACF,IAAA,gBAAS,EAAC,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,EAAE,CACvC,IAAA,uCAAuB,EAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CAClE,CACF,CAAC;AACJ,CAAC;AA1DD,sEA0DC;AAED,kBAAe,IAAA,yBAAa,EAC1B,6BAA6B,CAC9B,CAAC"}
|
package/dist/load-plugins.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Plugin } from 'esbuild';
|
|
2
|
-
import type {
|
|
3
|
-
export declare function loadPlugins(paths: string[] | undefined, workspaceRoot:
|
|
2
|
+
import type { logging } from '@angular-devkit/core';
|
|
3
|
+
export declare function loadPlugins(paths: string[] | undefined, workspaceRoot: string, tsConfig: string, logger: logging.LoggerApi): Promise<Plugin[]>;
|
package/dist/load-plugins.js
CHANGED
|
@@ -10,10 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.loadPlugins = void 0;
|
|
13
|
-
const
|
|
13
|
+
const path = require("node:path");
|
|
14
|
+
const common_1 = require("@angular-builders/common");
|
|
14
15
|
function loadPlugins(paths, workspaceRoot, tsConfig, logger) {
|
|
15
16
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
const plugins = yield Promise.all((paths || []).map(
|
|
17
|
+
const plugins = yield Promise.all((paths || []).map(pluginPath => (0, common_1.loadModule)(path.join(workspaceRoot, pluginPath), tsConfig, logger)));
|
|
17
18
|
return plugins.flat();
|
|
18
19
|
});
|
|
19
20
|
}
|
package/dist/load-plugins.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-plugins.js","sourceRoot":"","sources":["../src/load-plugins.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"load-plugins.js","sourceRoot":"","sources":["../src/load-plugins.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAkC;AAGlC,qDAAsD;AAEtD,SAAsB,WAAW,CAC/B,KAA2B,EAC3B,aAAqB,EACrB,QAAgB,EAChB,MAAyB;;QAEzB,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAC7B,IAAA,mBAAU,EAAoB,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,CACtF,CACF,CAAC;QAEF,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC;IACxB,CAAC;CAAA;AAbD,kCAaC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-builders/custom-esbuild",
|
|
3
|
-
"version": "17.1.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
4
|
"description": "Custom esbuild builders for Angular build facade. Allow to modify Angular build configuration without ejecting it",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -39,11 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"builders": "builders.json",
|
|
41
41
|
"dependencies": {
|
|
42
|
+
"@angular-builders/common": "1.0.1",
|
|
42
43
|
"@angular-devkit/architect": ">=0.1701.0 < 0.1800.0",
|
|
43
44
|
"@angular-devkit/build-angular": "^17.1.0",
|
|
44
|
-
"@angular-devkit/core": "^17.1.0"
|
|
45
|
-
"ts-node": "^10.0.0",
|
|
46
|
-
"tsconfig-paths": "^4.1.0"
|
|
45
|
+
"@angular-devkit/core": "^17.1.0"
|
|
47
46
|
},
|
|
48
47
|
"peerDependencies": {
|
|
49
48
|
"@angular/compiler-cli": "^17.1.0"
|
|
@@ -52,7 +51,8 @@
|
|
|
52
51
|
"esbuild": "0.20.0",
|
|
53
52
|
"jest": "29.7.0",
|
|
54
53
|
"rimraf": "^5.0.0",
|
|
54
|
+
"ts-node": "^10.0.0",
|
|
55
55
|
"typescript": "5.3.3"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "83831b0cfdd1ec61e19fc0e4fe93458ad8b12d84"
|
|
58
58
|
}
|
package/dist/utils.d.ts
DELETED
package/dist/utils.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.loadModule = void 0;
|
|
13
|
-
const core_1 = require("@angular-devkit/core");
|
|
14
|
-
const path = require("node:path");
|
|
15
|
-
const url = require("node:url");
|
|
16
|
-
const _tsNodeRegister = (() => {
|
|
17
|
-
let lastTsConfig;
|
|
18
|
-
return (tsConfig, logger) => {
|
|
19
|
-
// Check if the function was previously called with the same tsconfig
|
|
20
|
-
if (lastTsConfig && lastTsConfig !== tsConfig) {
|
|
21
|
-
logger.warn(`Trying to register ts-node again with a different tsconfig - skipping the registration.
|
|
22
|
-
tsconfig 1: ${lastTsConfig}
|
|
23
|
-
tsconfig 2: ${tsConfig}`);
|
|
24
|
-
}
|
|
25
|
-
if (lastTsConfig) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
lastTsConfig = tsConfig;
|
|
29
|
-
loadTsNode().register({
|
|
30
|
-
project: tsConfig,
|
|
31
|
-
compilerOptions: {
|
|
32
|
-
module: 'CommonJS',
|
|
33
|
-
types: [
|
|
34
|
-
'node', // NOTE: `node` is added because users scripts can also use pure node's packages as webpack or others
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
const tsConfigPaths = loadTsConfigPaths();
|
|
39
|
-
const result = tsConfigPaths.loadConfig(tsConfig);
|
|
40
|
-
// The `loadConfig` returns a `ConfigLoaderResult` which must be guarded with
|
|
41
|
-
// the `resultType` check.
|
|
42
|
-
if (result.resultType === 'success') {
|
|
43
|
-
const { absoluteBaseUrl: baseUrl, paths } = result;
|
|
44
|
-
if (baseUrl && paths) {
|
|
45
|
-
tsConfigPaths.register({ baseUrl, paths });
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
})();
|
|
50
|
-
/**
|
|
51
|
-
* check for TS node registration
|
|
52
|
-
* @param file: file name or file directory are allowed
|
|
53
|
-
* @todo tsNodeRegistration: require ts-node if file extension is TypeScript
|
|
54
|
-
*/
|
|
55
|
-
function tsNodeRegister(file = '', tsConfig, logger) {
|
|
56
|
-
if (file === null || file === void 0 ? void 0 : file.endsWith('.ts')) {
|
|
57
|
-
// Register TS compiler lazily
|
|
58
|
-
_tsNodeRegister(tsConfig, logger);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* This uses a dynamic import to load a module which may be ESM.
|
|
63
|
-
* CommonJS code can load ESM code via a dynamic import. Unfortunately, TypeScript
|
|
64
|
-
* will currently, unconditionally downlevel dynamic import into a require call.
|
|
65
|
-
* require calls cannot load ESM code and will result in a runtime error. To workaround
|
|
66
|
-
* this, a Function constructor is used to prevent TypeScript from changing the dynamic import.
|
|
67
|
-
* Once TypeScript provides support for keeping the dynamic import this workaround can
|
|
68
|
-
* be dropped.
|
|
69
|
-
*
|
|
70
|
-
* @param modulePath The path of the module to load.
|
|
71
|
-
* @returns A Promise that resolves to the dynamically imported module.
|
|
72
|
-
*/
|
|
73
|
-
function loadEsmModule(modulePath) {
|
|
74
|
-
return new Function('modulePath', `return import(modulePath);`)(modulePath);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Loads CJS and ESM modules based on extension
|
|
78
|
-
*/
|
|
79
|
-
function loadModule(workspaceRoot, relativePath, tsConfig, logger) {
|
|
80
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
const modulePath = path.join((0, core_1.getSystemPath)(workspaceRoot), relativePath);
|
|
82
|
-
tsNodeRegister(modulePath, tsConfig, logger);
|
|
83
|
-
switch (path.extname(modulePath)) {
|
|
84
|
-
case '.mjs':
|
|
85
|
-
// Load the ESM configuration file using the TypeScript dynamic import workaround.
|
|
86
|
-
// Once TypeScript provides support for keeping the dynamic import this workaround can be
|
|
87
|
-
// changed to a direct dynamic import.
|
|
88
|
-
return (yield loadEsmModule(url.pathToFileURL(modulePath))).default;
|
|
89
|
-
case '.cjs':
|
|
90
|
-
return require(modulePath);
|
|
91
|
-
case '.ts':
|
|
92
|
-
try {
|
|
93
|
-
// If it's a TS file then there are 2 cases for exporing an object.
|
|
94
|
-
// The first one is `export blah`, transpiled into `module.exports = { blah} `.
|
|
95
|
-
// The second is `export default blah`, transpiled into `{ default: { ... } }`.
|
|
96
|
-
return require(modulePath).default || require(modulePath);
|
|
97
|
-
}
|
|
98
|
-
catch (e) {
|
|
99
|
-
if (e.code === 'ERR_REQUIRE_ESM') {
|
|
100
|
-
// Load the ESM configuration file using the TypeScript dynamic import workaround.
|
|
101
|
-
// Once TypeScript provides support for keeping the dynamic import this workaround can be
|
|
102
|
-
// changed to a direct dynamic import.
|
|
103
|
-
return (yield loadEsmModule(url.pathToFileURL(modulePath))).default;
|
|
104
|
-
}
|
|
105
|
-
throw e;
|
|
106
|
-
}
|
|
107
|
-
//.js
|
|
108
|
-
default:
|
|
109
|
-
// The file could be either CommonJS or ESM.
|
|
110
|
-
// CommonJS is tried first then ESM if loading fails.
|
|
111
|
-
try {
|
|
112
|
-
return require(modulePath);
|
|
113
|
-
}
|
|
114
|
-
catch (e) {
|
|
115
|
-
if (e.code === 'ERR_REQUIRE_ESM') {
|
|
116
|
-
// Load the ESM configuration file using the TypeScript dynamic import workaround.
|
|
117
|
-
// Once TypeScript provides support for keeping the dynamic import this workaround can be
|
|
118
|
-
// changed to a direct dynamic import.
|
|
119
|
-
return (yield loadEsmModule(url.pathToFileURL(modulePath))).default;
|
|
120
|
-
}
|
|
121
|
-
throw e;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
exports.loadModule = loadModule;
|
|
127
|
-
/**
|
|
128
|
-
* Loads `ts-node` lazily. Moved to a separate function to declare
|
|
129
|
-
* a return type, more readable than an inline variant.
|
|
130
|
-
*/
|
|
131
|
-
function loadTsNode() {
|
|
132
|
-
return require('ts-node');
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Loads `tsconfig-paths` lazily. Moved to a separate function to declare
|
|
136
|
-
* a return type, more readable than an inline variant.
|
|
137
|
-
*/
|
|
138
|
-
function loadTsConfigPaths() {
|
|
139
|
-
return require('tsconfig-paths');
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAoE;AACpE,kCAAkC;AAClC,gCAAgC;AAEhC,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE;IAC5B,IAAI,YAAgC,CAAC;IACrC,OAAO,CAAC,QAAgB,EAAE,MAAyB,EAAE,EAAE;QACrD,qEAAqE;QACrE,IAAI,YAAY,IAAI,YAAY,KAAK,QAAQ,EAAE,CAAC;YAC9C,MAAM,CAAC,IAAI,CAAC;iCACe,YAAY;iCACZ,QAAQ,EAAE,CAAC,CAAC;QACzC,CAAC;QAED,IAAI,YAAY,EAAE,CAAC;YACjB,OAAO;QACT,CAAC;QAED,YAAY,GAAG,QAAQ,CAAC;QAExB,UAAU,EAAE,CAAC,QAAQ,CAAC;YACpB,OAAO,EAAE,QAAQ;YACjB,eAAe,EAAE;gBACf,MAAM,EAAE,UAAU;gBAClB,KAAK,EAAE;oBACL,MAAM,EAAE,qGAAqG;iBAC9G;aACF;SACF,CAAC,CAAC;QAEH,MAAM,aAAa,GAAG,iBAAiB,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAG,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAClD,6EAA6E;QAC7E,0BAA0B;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