@gapi/gcli 1.8.163 → 1.8.165
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/package.json +3 -3
- package/release/index.js +35 -27
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gapi/gcli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.165",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/Stradivario/gapi.git"
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"rxjs": "6.5.2",
|
|
62
62
|
"stream-to-buffer": "^0.1.0",
|
|
63
63
|
"ts-jest": "^25.4.0",
|
|
64
|
-
"typescript": "^3.8.3"
|
|
64
|
+
"typescript": "^3.8.3",
|
|
65
|
+
"@anatine/esbuild-decorators": "^0.2.19"
|
|
65
66
|
},
|
|
66
67
|
"bin": {
|
|
67
68
|
"gcli": "./release/index.js"
|
|
68
69
|
},
|
|
69
70
|
"dependencies": {
|
|
70
|
-
"@anatine/esbuild-decorators": "^0.2.19",
|
|
71
71
|
"esbuild": "^0.27.2"
|
|
72
72
|
},
|
|
73
73
|
"main": "./dist/index.js",
|
package/release/index.js
CHANGED
|
@@ -37583,9 +37583,9 @@ var require_source_map_support = __commonJS({
|
|
|
37583
37583
|
}
|
|
37584
37584
|
});
|
|
37585
37585
|
|
|
37586
|
-
// node_modules/typescript/lib/typescript.js
|
|
37586
|
+
// ../../node_modules/typescript/lib/typescript.js
|
|
37587
37587
|
var require_typescript = __commonJS({
|
|
37588
|
-
"node_modules/typescript/lib/typescript.js"(exports2, module2) {
|
|
37588
|
+
"../../node_modules/typescript/lib/typescript.js"(exports2, module2) {
|
|
37589
37589
|
"use strict";
|
|
37590
37590
|
var __spreadArrays2 = exports2 && exports2.__spreadArrays || function() {
|
|
37591
37591
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
@@ -177807,9 +177807,9 @@ var require_typescript = __commonJS({
|
|
|
177807
177807
|
}
|
|
177808
177808
|
});
|
|
177809
177809
|
|
|
177810
|
-
// node_modules/@anatine/esbuild-decorators/src/lib/strip-it.js
|
|
177810
|
+
// ../../node_modules/@anatine/esbuild-decorators/src/lib/strip-it.js
|
|
177811
177811
|
var require_strip_it = __commonJS({
|
|
177812
|
-
"node_modules/@anatine/esbuild-decorators/src/lib/strip-it.js"(exports2) {
|
|
177812
|
+
"../../node_modules/@anatine/esbuild-decorators/src/lib/strip-it.js"(exports2) {
|
|
177813
177813
|
"use strict";
|
|
177814
177814
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
177815
177815
|
exports2.strip = void 0;
|
|
@@ -177948,9 +177948,9 @@ var require_strip_it = __commonJS({
|
|
|
177948
177948
|
}
|
|
177949
177949
|
});
|
|
177950
177950
|
|
|
177951
|
-
// node_modules/@anatine/esbuild-decorators/src/lib/esbuild-decorators.js
|
|
177951
|
+
// ../../node_modules/@anatine/esbuild-decorators/src/lib/esbuild-decorators.js
|
|
177952
177952
|
var require_esbuild_decorators = __commonJS({
|
|
177953
|
-
"node_modules/@anatine/esbuild-decorators/src/lib/esbuild-decorators.js"(exports2) {
|
|
177953
|
+
"../../node_modules/@anatine/esbuild-decorators/src/lib/esbuild-decorators.js"(exports2) {
|
|
177954
177954
|
"use strict";
|
|
177955
177955
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
177956
177956
|
exports2.esbuildDecorators = void 0;
|
|
@@ -177966,7 +177966,7 @@ var require_esbuild_decorators = __commonJS({
|
|
|
177966
177966
|
var esbuildDecorators2 = (options = {}) => ({
|
|
177967
177967
|
name: "tsc",
|
|
177968
177968
|
setup(build) {
|
|
177969
|
-
|
|
177969
|
+
var _a, _b, _c;
|
|
177970
177970
|
const cwd = options.cwd || process.cwd();
|
|
177971
177971
|
const tsconfigPath = options.tsconfig || ((_a = build.initialOptions) === null || _a === void 0 ? void 0 : _a.tsconfig) || (0, path_1.join)(cwd, "./tsconfig.json");
|
|
177972
177972
|
const forceTsc = (_b = options.force) !== null && _b !== void 0 ? _b : false;
|
|
@@ -178026,9 +178026,9 @@ var require_esbuild_decorators = __commonJS({
|
|
|
178026
178026
|
}
|
|
178027
178027
|
});
|
|
178028
178028
|
|
|
178029
|
-
// node_modules/@anatine/esbuild-decorators/src/index.js
|
|
178029
|
+
// ../../node_modules/@anatine/esbuild-decorators/src/index.js
|
|
178030
178030
|
var require_src = __commonJS({
|
|
178031
|
-
"node_modules/@anatine/esbuild-decorators/src/index.js"(exports2) {
|
|
178031
|
+
"../../node_modules/@anatine/esbuild-decorators/src/index.js"(exports2) {
|
|
178032
178032
|
"use strict";
|
|
178033
178033
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
178034
178034
|
exports2.esbuildDecorators = void 0;
|
|
@@ -178044,26 +178044,31 @@ var build_exports = {};
|
|
|
178044
178044
|
__export(build_exports, {
|
|
178045
178045
|
default: () => build_default
|
|
178046
178046
|
});
|
|
178047
|
-
var import_esbuild_decorators,
|
|
178047
|
+
var import_esbuild_decorators, build_default;
|
|
178048
178048
|
var init_build = __esm({
|
|
178049
178049
|
"src/commands/build/build.ts"() {
|
|
178050
178050
|
import_esbuild_decorators = __toESM(require_src());
|
|
178051
|
-
|
|
178052
|
-
|
|
178053
|
-
|
|
178054
|
-
|
|
178055
|
-
|
|
178056
|
-
|
|
178057
|
-
|
|
178058
|
-
|
|
178059
|
-
|
|
178060
|
-
|
|
178061
|
-
|
|
178062
|
-
|
|
178063
|
-
|
|
178064
|
-
|
|
178065
|
-
|
|
178066
|
-
|
|
178051
|
+
build_default = async (args) => {
|
|
178052
|
+
var _a;
|
|
178053
|
+
return (await import("esbuild")).build({
|
|
178054
|
+
entryPoints: ((_a = args.entryPoints) == null ? void 0 : _a.length) ? args.entryPoints : ["index.ts"],
|
|
178055
|
+
bundle: args.bundle ?? true,
|
|
178056
|
+
minify: args.minify ?? false,
|
|
178057
|
+
platform: args.platform ?? "node",
|
|
178058
|
+
target: args.target ?? "node14.4",
|
|
178059
|
+
outfile: args.outfile ?? "index.js",
|
|
178060
|
+
external: args.external ?? [],
|
|
178061
|
+
plugins: [
|
|
178062
|
+
(0, import_esbuild_decorators.esbuildDecorators)({
|
|
178063
|
+
tsconfig: "tsconfig.json",
|
|
178064
|
+
cwd: process.cwd()
|
|
178065
|
+
})
|
|
178066
|
+
]
|
|
178067
|
+
}).then((r) => console.log("SUCCESS", r)).catch((e) => {
|
|
178068
|
+
console.error(e);
|
|
178069
|
+
process.exit(1);
|
|
178070
|
+
});
|
|
178071
|
+
};
|
|
178067
178072
|
}
|
|
178068
178073
|
});
|
|
178069
178074
|
|
|
@@ -206331,7 +206336,10 @@ var import_rxjs5 = __toESM(require_rxjs());
|
|
|
206331
206336
|
var import_operators4 = __toESM(require_operators());
|
|
206332
206337
|
init_helpers();
|
|
206333
206338
|
function buildCommands(program2) {
|
|
206334
|
-
program2.command("build").description("Build bundle
|
|
206339
|
+
program2.command("build").description("Build bundle using esbuild https://esbuild.github.io ").option(
|
|
206340
|
+
"-f, --files <files...>",
|
|
206341
|
+
"File or files to bundle defaults to index.ts"
|
|
206342
|
+
).option("-b, --bundle", "Bundle code", true).option("-m, --minify", "Minify code", false).option("-p, --platform", "Platform ", "node").option("-t, --target", "Target ", "node14.4").option("-e, --external <external...>", "External libraries").action(
|
|
206335
206343
|
lazy(
|
|
206336
206344
|
() => (0, import_rxjs5.from)(Promise.resolve().then(() => (init_build(), build_exports))).pipe((0, import_operators4.map)((m) => m.default)).toPromise()
|
|
206337
206345
|
)
|