quickbundle 0.11.0 → 0.12.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.
@@ -1,7 +1,11 @@
1
1
  declare type BundleParameters = {
2
- isProduction: boolean;
3
- isFast: boolean;
4
- onWatch?: (error: Error | null) => void;
2
+ isProduction: boolean;
3
+ isFast: boolean;
4
+ onWatch?: (error: Error | null) => void;
5
5
  };
6
- export declare const bundle: ({ isProduction, isFast, onWatch, }: BundleParameters) => Promise<(string | null)[]>;
6
+ export declare const bundle: ({
7
+ isProduction,
8
+ isFast,
9
+ onWatch,
10
+ }: BundleParameters) => Promise<(string | null)[]>;
7
11
  export {};
@@ -1,13 +1,39 @@
1
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
- };
2
+ var __awaiter =
3
+ (this && this.__awaiter) ||
4
+ function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) {
6
+ return value instanceof P
7
+ ? value
8
+ : new P(function (resolve) {
9
+ resolve(value);
10
+ });
11
+ }
12
+ return new (P || (P = Promise))(function (resolve, reject) {
13
+ function fulfilled(value) {
14
+ try {
15
+ step(generator.next(value));
16
+ } catch (e) {
17
+ reject(e);
18
+ }
19
+ }
20
+ function rejected(value) {
21
+ try {
22
+ step(generator["throw"](value));
23
+ } catch (e) {
24
+ reject(e);
25
+ }
26
+ }
27
+ function step(result) {
28
+ result.done
29
+ ? resolve(result.value)
30
+ : adopt(result.value).then(fulfilled, rejected);
31
+ }
32
+ step(
33
+ (generator = generator.apply(thisArg, _arguments || [])).next()
34
+ );
35
+ });
36
+ };
11
37
  Object.defineProperty(exports, "__esModule", { value: true });
12
38
  exports.bundle = void 0;
13
39
  const esbuild_1 = require("esbuild");
@@ -15,71 +41,86 @@ const constants_1 = require("../constants");
15
41
  const package_1 = require("./package");
16
42
  const plugins_1 = require("./plugins");
17
43
  const typescript_1 = require("./typescript");
18
- const bundle = ({ isProduction, isFast, onWatch, }) => __awaiter(void 0, void 0, void 0, function* () {
19
- const { destination, externalDependencies, hasModule, platform, source, types, } = (0, package_1.getPackageMetadata)();
20
- const isWatching = typeof onWatch === "function";
21
- const isTypingRequested = typeof types === "string" && !isFast;
22
- const tsConfig = yield (0, typescript_1.getTypeScriptConfiguration)();
23
- const getType = () => __awaiter(void 0, void 0, void 0, function* () {
24
- const outfile = types;
25
- if (!outfile)
26
- return null;
27
- yield (0, typescript_1.generateTypeScriptDeclaration)(outfile);
28
- return outfile;
29
- });
30
- const getJavaScript = (format) => __awaiter(void 0, void 0, void 0, function* () {
31
- const outfile = destination[format];
32
- if (!outfile)
33
- return null;
34
- yield (0, esbuild_1.build)({
35
- absWorkingDir: constants_1.CWD,
36
- bundle: Boolean(externalDependencies),
37
- define: {
38
- "process.env.NODE_ENV": isProduction
39
- ? '"production"'
40
- : '"development"',
41
- },
42
- entryPoints: [source],
43
- external: externalDependencies,
44
- format,
45
- logLevel: "silent",
46
- metafile: true,
47
- minify: isProduction,
48
- outfile,
49
- plugins: [(0, plugins_1.jsxPlugin)(tsConfig)],
50
- platform,
51
- sourcemap: true,
52
- target: (tsConfig === null || tsConfig === void 0 ? void 0 : tsConfig.target) || "esnext",
53
- treeShaking: true,
54
- watch: isWatching && {
55
- onRebuild(bundleError) {
56
- return __awaiter(this, void 0, void 0, function* () {
57
- let error = bundleError;
58
- if (error) {
59
- onWatch(error);
60
- return;
61
- }
62
- if (isTypingRequested) {
63
- try {
64
- yield getType();
65
- }
66
- catch (typingError) {
67
- error = typingError;
68
- }
69
- }
70
- onWatch(error);
71
- });
72
- },
73
- },
74
- });
75
- return outfile;
76
- });
77
- const promises = [
78
- ...(isWatching
79
- ? [getJavaScript(hasModule ? "esm" : "cjs")]
80
- : [getJavaScript("cjs"), getJavaScript("esm")]),
81
- ...(isTypingRequested ? [getType()] : []),
82
- ];
83
- return Promise.all(promises);
84
- });
44
+ const bundle = ({ isProduction, isFast, onWatch }) =>
45
+ __awaiter(void 0, void 0, void 0, function* () {
46
+ const {
47
+ destination,
48
+ externalDependencies,
49
+ hasModule,
50
+ platform,
51
+ source,
52
+ types,
53
+ } = (0, package_1.getPackageMetadata)();
54
+ const isWatching = typeof onWatch === "function";
55
+ const isTypingRequested = typeof types === "string" && !isFast;
56
+ const tsConfig = yield (0, typescript_1.getTypeScriptConfiguration)();
57
+ const getType = () =>
58
+ __awaiter(void 0, void 0, void 0, function* () {
59
+ const outfile = types;
60
+ if (!outfile) return null;
61
+ yield (0, typescript_1.generateTypeScriptDeclaration)(outfile);
62
+ return outfile;
63
+ });
64
+ const getJavaScript = (format) =>
65
+ __awaiter(void 0, void 0, void 0, function* () {
66
+ const outfile = destination[format];
67
+ if (!outfile) return null;
68
+ yield (0, esbuild_1.build)({
69
+ absWorkingDir: constants_1.CWD,
70
+ bundle: Boolean(externalDependencies),
71
+ define: {
72
+ "process.env.NODE_ENV": isProduction
73
+ ? '"production"'
74
+ : '"development"',
75
+ },
76
+ entryPoints: [source],
77
+ external: externalDependencies,
78
+ format,
79
+ logLevel: "silent",
80
+ metafile: true,
81
+ minify: isProduction,
82
+ outfile,
83
+ plugins: [(0, plugins_1.jsxPlugin)(tsConfig)],
84
+ platform,
85
+ sourcemap: true,
86
+ target:
87
+ (tsConfig === null || tsConfig === void 0
88
+ ? void 0
89
+ : tsConfig.target) || "esnext",
90
+ treeShaking: true,
91
+ watch: isWatching && {
92
+ onRebuild(bundleError) {
93
+ return __awaiter(
94
+ this,
95
+ void 0,
96
+ void 0,
97
+ function* () {
98
+ let error = bundleError;
99
+ if (error) {
100
+ onWatch(error);
101
+ return;
102
+ }
103
+ if (isTypingRequested) {
104
+ try {
105
+ yield getType();
106
+ } catch (typingError) {
107
+ error = typingError;
108
+ }
109
+ }
110
+ onWatch(error);
111
+ }
112
+ );
113
+ },
114
+ },
115
+ });
116
+ return outfile;
117
+ });
118
+ const promises = [
119
+ ...(isWatching
120
+ ? [getJavaScript(hasModule ? "esm" : "cjs")]
121
+ : [getJavaScript("cjs"), getJavaScript("esm")]),
122
+ ...(isTypingRequested ? [getType()] : []),
123
+ ];
124
+ return Promise.all(promises);
125
+ });
85
126
  exports.bundle = bundle;
@@ -2,4 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bundle = void 0;
4
4
  var bundler_1 = require("./bundler");
5
- Object.defineProperty(exports, "bundle", { enumerable: true, get: function () { return bundler_1.bundle; } });
5
+ Object.defineProperty(exports, "bundle", {
6
+ enumerable: true,
7
+ get: function () {
8
+ return bundler_1.bundle;
9
+ },
10
+ });
@@ -1,11 +1,11 @@
1
1
  export declare const getPackageMetadata: () => {
2
- readonly destination: {
3
- readonly esm?: string | undefined;
4
- readonly cjs: string;
5
- };
6
- readonly externalDependencies: string[];
7
- readonly hasModule: boolean;
8
- readonly platform: "node" | "browser";
9
- readonly source: string;
10
- readonly types: string | undefined;
2
+ readonly destination: {
3
+ readonly esm?: string | undefined;
4
+ readonly cjs: string;
5
+ };
6
+ readonly externalDependencies: string[];
7
+ readonly hasModule: boolean;
8
+ readonly platform: "node" | "browser";
9
+ readonly source: string;
10
+ readonly types: string | undefined;
11
11
  };
@@ -5,18 +5,34 @@ const path_1 = require("path");
5
5
  const constants_1 = require("../constants");
6
6
  const helpers_1 = require("../helpers");
7
7
  const getPackageMetadata = () => {
8
- const { peerDependencies = {}, main, module, platform = "browser", source, types, } = require((0, path_1.resolve)(constants_1.CWD, "package.json"));
9
- const externalDependencies = Object.keys(peerDependencies);
10
- (0, helpers_1.assert)(main, "A `main` field is required in `package.json`. Did you forget to add it?");
11
- (0, helpers_1.assert)(source, "A `source` field is required in `package.json`. Did you forget to add it?");
12
- (0, helpers_1.assert)(["browser", "node"].includes(platform), "The `platform` package field can only accept `browser` or `node` value.");
13
- return {
14
- destination: Object.assign({ cjs: main }, (module && { esm: module })),
15
- externalDependencies,
16
- hasModule: Boolean(module),
17
- platform,
18
- source,
19
- types,
20
- };
8
+ const {
9
+ peerDependencies = {},
10
+ main,
11
+ module,
12
+ platform = "browser",
13
+ source,
14
+ types,
15
+ } = require((0, path_1.resolve)(constants_1.CWD, "package.json"));
16
+ const externalDependencies = Object.keys(peerDependencies);
17
+ (0, helpers_1.assert)(
18
+ main,
19
+ "A `main` field is required in `package.json`. Did you forget to add it?"
20
+ );
21
+ (0, helpers_1.assert)(
22
+ source,
23
+ "A `source` field is required in `package.json`. Did you forget to add it?"
24
+ );
25
+ (0, helpers_1.assert)(
26
+ ["browser", "node"].includes(platform),
27
+ "The `platform` package field can only accept `browser` or `node` value."
28
+ );
29
+ return {
30
+ destination: Object.assign({ cjs: main }, module && { esm: module }),
31
+ externalDependencies,
32
+ hasModule: Boolean(module),
33
+ platform,
34
+ source,
35
+ types,
36
+ };
21
37
  };
22
38
  exports.getPackageMetadata = getPackageMetadata;
@@ -1,3 +1,5 @@
1
1
  import type { Plugin } from "esbuild";
2
2
  import type { TypeScriptConfiguration } from "./typescript";
3
- export declare const jsxPlugin: (tsConfig: TypeScriptConfiguration | null) => Plugin;
3
+ export declare const jsxPlugin: (
4
+ tsConfig: TypeScriptConfiguration | null
5
+ ) => Plugin;
@@ -1,32 +1,63 @@
1
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
- };
2
+ var __awaiter =
3
+ (this && this.__awaiter) ||
4
+ function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) {
6
+ return value instanceof P
7
+ ? value
8
+ : new P(function (resolve) {
9
+ resolve(value);
10
+ });
11
+ }
12
+ return new (P || (P = Promise))(function (resolve, reject) {
13
+ function fulfilled(value) {
14
+ try {
15
+ step(generator.next(value));
16
+ } catch (e) {
17
+ reject(e);
18
+ }
19
+ }
20
+ function rejected(value) {
21
+ try {
22
+ step(generator["throw"](value));
23
+ } catch (e) {
24
+ reject(e);
25
+ }
26
+ }
27
+ function step(result) {
28
+ result.done
29
+ ? resolve(result.value)
30
+ : adopt(result.value).then(fulfilled, rejected);
31
+ }
32
+ step(
33
+ (generator = generator.apply(thisArg, _arguments || [])).next()
34
+ );
35
+ });
36
+ };
11
37
  Object.defineProperty(exports, "__esModule", { value: true });
12
38
  exports.jsxPlugin = void 0;
13
39
  const helpers_1 = require("../helpers");
14
40
  const jsxPlugin = (tsConfig) => ({
15
- name: "jsx-runtime",
16
- setup(build) {
17
- build.onLoad({ filter: /\.(j|t)sx$/ }, ({ path }) => __awaiter(this, void 0, void 0, function* () {
18
- if (!tsConfig || !tsConfig.hasJsxRuntime)
19
- return;
20
- const module = tsConfig.jsxImportSource || "react";
21
- if (!(0, helpers_1.resolveModulePath)(`${module}/jsx-runtime`)) {
22
- throw new Error("Unable to find the JSX runtime.\nPotential solutions:\n1. If you rely on a non React runtime, set a valid `jsxImportSource` in your tsconfig\n2. Make sure that you've installed your project dependencies");
23
- }
24
- const content = yield (0, helpers_1.readFile)(path, "utf8");
25
- return {
26
- contents: `import * as React from "${module}";${content}`,
27
- loader: "tsx",
28
- };
29
- }));
30
- },
41
+ name: "jsx-runtime",
42
+ setup(build) {
43
+ build.onLoad({ filter: /\.(j|t)sx$/ }, ({ path }) =>
44
+ __awaiter(this, void 0, void 0, function* () {
45
+ if (!tsConfig || !tsConfig.hasJsxRuntime) return;
46
+ const module = tsConfig.jsxImportSource || "react";
47
+ if (
48
+ !(0, helpers_1.resolveModulePath)(`${module}/jsx-runtime`)
49
+ ) {
50
+ throw new Error(
51
+ "Unable to find the JSX runtime.\nPotential solutions:\n1. If you rely on a non React runtime, set a valid `jsxImportSource` in your tsconfig\n2. Make sure that you've installed your project dependencies"
52
+ );
53
+ }
54
+ const content = yield (0, helpers_1.readFile)(path, "utf8");
55
+ return {
56
+ contents: `import * as React from "${module}";${content}`,
57
+ loader: "tsx",
58
+ };
59
+ })
60
+ );
61
+ },
31
62
  });
32
63
  exports.jsxPlugin = jsxPlugin;
@@ -1,8 +1,12 @@
1
1
  export declare type TypeScriptConfiguration = {
2
- target?: string;
3
- jsxImportSource?: string;
4
- hasJsxRuntime?: boolean;
2
+ target?: string;
3
+ jsxImportSource?: string;
4
+ hasJsxRuntime?: boolean;
5
5
  };
6
6
  export declare const getTypeScriptConfiguration: () => Promise<TypeScriptConfiguration | null>;
7
- export declare const generateTypeScriptDeclaration: (outfile: string) => Promise<string>;
8
- export declare const hasTypeScript: (tsConfig: TypeScriptConfiguration | null) => tsConfig is TypeScriptConfiguration;
7
+ export declare const generateTypeScriptDeclaration: (
8
+ outfile: string
9
+ ) => Promise<string>;
10
+ export declare const hasTypeScript: (
11
+ tsConfig: TypeScriptConfiguration | null
12
+ ) => tsConfig is TypeScriptConfiguration;
@@ -1,75 +1,154 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
2
+ var __createBinding =
3
+ (this && this.__createBinding) ||
4
+ (Object.create
5
+ ? function (o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (
9
+ !desc ||
10
+ ("get" in desc
11
+ ? !m.__esModule
12
+ : desc.writable || desc.configurable)
13
+ ) {
14
+ desc = {
15
+ enumerable: true,
16
+ get: function () {
17
+ return m[k];
18
+ },
19
+ };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }
23
+ : function (o, m, k, k2) {
24
+ if (k2 === undefined) k2 = k;
25
+ o[k2] = m[k];
26
+ });
27
+ var __setModuleDefault =
28
+ (this && this.__setModuleDefault) ||
29
+ (Object.create
30
+ ? function (o, v) {
31
+ Object.defineProperty(o, "default", {
32
+ enumerable: true,
33
+ value: v,
34
+ });
35
+ }
36
+ : function (o, v) {
37
+ o["default"] = v;
38
+ });
39
+ var __importStar =
40
+ (this && this.__importStar) ||
41
+ function (mod) {
42
+ if (mod && mod.__esModule) return mod;
43
+ var result = {};
44
+ if (mod != null)
45
+ for (var k in mod)
46
+ if (
47
+ k !== "default" &&
48
+ Object.prototype.hasOwnProperty.call(mod, k)
49
+ )
50
+ __createBinding(result, mod, k);
51
+ __setModuleDefault(result, mod);
52
+ return result;
53
+ };
54
+ var __awaiter =
55
+ (this && this.__awaiter) ||
56
+ function (thisArg, _arguments, P, generator) {
57
+ function adopt(value) {
58
+ return value instanceof P
59
+ ? value
60
+ : new P(function (resolve) {
61
+ resolve(value);
62
+ });
63
+ }
64
+ return new (P || (P = Promise))(function (resolve, reject) {
65
+ function fulfilled(value) {
66
+ try {
67
+ step(generator.next(value));
68
+ } catch (e) {
69
+ reject(e);
70
+ }
71
+ }
72
+ function rejected(value) {
73
+ try {
74
+ step(generator["throw"](value));
75
+ } catch (e) {
76
+ reject(e);
77
+ }
78
+ }
79
+ function step(result) {
80
+ result.done
81
+ ? resolve(result.value)
82
+ : adopt(result.value).then(fulfilled, rejected);
83
+ }
84
+ step(
85
+ (generator = generator.apply(thisArg, _arguments || [])).next()
86
+ );
87
+ });
88
+ };
34
89
  Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.hasTypeScript = exports.generateTypeScriptDeclaration = exports.getTypeScriptConfiguration = void 0;
90
+ exports.hasTypeScript =
91
+ exports.generateTypeScriptDeclaration =
92
+ exports.getTypeScriptConfiguration =
93
+ void 0;
36
94
  const path_1 = require("path");
37
95
  const termost_1 = require("termost");
38
96
  const constants_1 = require("../constants");
39
- const getTypeScriptConfiguration = () => __awaiter(void 0, void 0, void 0, function* () {
40
- var _a;
41
- try {
42
- const ts = yield Promise.resolve().then(() => __importStar(require("typescript")));
43
- const { jsx, jsxImportSource, target } = ts.parseJsonConfigFileContent(require((0, path_1.resolve)(constants_1.CWD, "tsconfig.json")), ts.sys, constants_1.CWD).options;
44
- const esbuildTarget = !target ||
45
- [ts.ScriptTarget.ESNext, ts.ScriptTarget.Latest].includes(target)
46
- ? "esnext"
47
- : (_a = ts.ScriptTarget[target]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
48
- const hasJsxRuntime = jsx !== undefined &&
49
- [ts.JsxEmit["ReactJSX"], ts.JsxEmit["ReactJSXDev"]].includes(jsx);
50
- return {
51
- target: esbuildTarget,
52
- jsxImportSource,
53
- hasJsxRuntime,
54
- };
55
- }
56
- catch (error) {
57
- return null;
58
- }
59
- });
97
+ const getTypeScriptConfiguration = () =>
98
+ __awaiter(void 0, void 0, void 0, function* () {
99
+ var _a;
100
+ try {
101
+ const ts = yield Promise.resolve().then(() =>
102
+ __importStar(require("typescript"))
103
+ );
104
+ const { jsx, jsxImportSource, target } =
105
+ ts.parseJsonConfigFileContent(
106
+ require((0, path_1.resolve)(
107
+ constants_1.CWD,
108
+ "tsconfig.json"
109
+ )),
110
+ ts.sys,
111
+ constants_1.CWD
112
+ ).options;
113
+ const esbuildTarget =
114
+ !target ||
115
+ [ts.ScriptTarget.ESNext, ts.ScriptTarget.Latest].includes(
116
+ target
117
+ )
118
+ ? "esnext"
119
+ : (_a = ts.ScriptTarget[target]) === null || _a === void 0
120
+ ? void 0
121
+ : _a.toLowerCase();
122
+ const hasJsxRuntime =
123
+ jsx !== undefined &&
124
+ [ts.JsxEmit["ReactJSX"], ts.JsxEmit["ReactJSXDev"]].includes(
125
+ jsx
126
+ );
127
+ return {
128
+ target: esbuildTarget,
129
+ jsxImportSource,
130
+ hasJsxRuntime,
131
+ };
132
+ } catch (error) {
133
+ return null;
134
+ }
135
+ });
60
136
  exports.getTypeScriptConfiguration = getTypeScriptConfiguration;
61
- const generateTypeScriptDeclaration = (outfile) => __awaiter(void 0, void 0, void 0, function* () {
62
- const outdir = (0, path_1.dirname)(outfile);
63
- try {
64
- yield termost_1.helpers.exec(`tsc --declaration --emitDeclarationOnly --incremental --removeComments false --outDir ${outdir}`, { cwd: constants_1.CWD });
65
- return outdir;
66
- }
67
- catch (error) {
68
- throw new Error(`Type generation failed:\n${error}`);
69
- }
70
- });
137
+ const generateTypeScriptDeclaration = (outfile) =>
138
+ __awaiter(void 0, void 0, void 0, function* () {
139
+ const outdir = (0, path_1.dirname)(outfile);
140
+ try {
141
+ yield termost_1.helpers.exec(
142
+ `tsc --declaration --emitDeclarationOnly --incremental --removeComments false --outDir ${outdir}`,
143
+ { cwd: constants_1.CWD }
144
+ );
145
+ return outdir;
146
+ } catch (error) {
147
+ throw new Error(`Type generation failed:\n${error}`);
148
+ }
149
+ });
71
150
  exports.generateTypeScriptDeclaration = generateTypeScriptDeclaration;
72
151
  const hasTypeScript = (tsConfig) => {
73
- return Boolean(tsConfig);
152
+ return Boolean(tsConfig);
74
153
  };
75
154
  exports.hasTypeScript = hasTypeScript;
package/bin/helpers.d.ts CHANGED
@@ -2,4 +2,7 @@
2
2
  import { readFile as fsReadFile } from "fs";
3
3
  export declare const readFile: typeof fsReadFile.__promisify__;
4
4
  export declare const resolveModulePath: (path: string) => boolean;
5
- export declare function assert(condition: unknown, message: string): asserts condition;
5
+ export declare function assert(
6
+ condition: unknown,
7
+ message: string
8
+ ): asserts condition;
package/bin/helpers.js CHANGED
@@ -6,17 +6,16 @@ const fs_1 = require("fs");
6
6
  const constants_1 = require("./constants");
7
7
  exports.readFile = (0, util_1.promisify)(fs_1.readFile);
8
8
  const resolveModulePath = (path) => {
9
- try {
10
- return Boolean(require.resolve(path, { paths: [constants_1.CWD] }));
11
- }
12
- catch (error) {
13
- return false;
14
- }
9
+ try {
10
+ return Boolean(require.resolve(path, { paths: [constants_1.CWD] }));
11
+ } catch (error) {
12
+ return false;
13
+ }
15
14
  };
16
15
  exports.resolveModulePath = resolveModulePath;
17
16
  function assert(condition, message) {
18
- if (!condition) {
19
- throw new Error(message);
20
- }
17
+ if (!condition) {
18
+ throw new Error(message);
19
+ }
21
20
  }
22
21
  exports.assert = assert;
@@ -1,3 +1,5 @@
1
- import { Program } from "termost";
1
+ import { Termost } from "termost";
2
2
  import { ProgramContext } from "../types";
3
- export declare const createBuildCommand: (program: Program<ProgramContext>) => void;
3
+ export declare const createBuildCommand: (
4
+ program: Termost<ProgramContext>
5
+ ) => void;
@@ -1,78 +1,115 @@
1
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
2
+ var __awaiter =
3
+ (this && this.__awaiter) ||
4
+ function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) {
6
+ return value instanceof P
7
+ ? value
8
+ : new P(function (resolve) {
9
+ resolve(value);
10
+ });
11
+ }
12
+ return new (P || (P = Promise))(function (resolve, reject) {
13
+ function fulfilled(value) {
14
+ try {
15
+ step(generator.next(value));
16
+ } catch (e) {
17
+ reject(e);
18
+ }
19
+ }
20
+ function rejected(value) {
21
+ try {
22
+ step(generator["throw"](value));
23
+ } catch (e) {
24
+ reject(e);
25
+ }
26
+ }
27
+ function step(result) {
28
+ result.done
29
+ ? resolve(result.value)
30
+ : adopt(result.value).then(fulfilled, rejected);
31
+ }
32
+ step(
33
+ (generator = generator.apply(thisArg, _arguments || [])).next()
34
+ );
35
+ });
36
+ };
37
+ var __importDefault =
38
+ (this && this.__importDefault) ||
39
+ function (mod) {
40
+ return mod && mod.__esModule ? mod : { default: mod };
41
+ };
14
42
  Object.defineProperty(exports, "__esModule", { value: true });
15
43
  exports.createBuildCommand = void 0;
16
44
  const gzip_size_1 = __importDefault(require("gzip-size"));
45
+ const termost_1 = require("termost");
17
46
  const bundler_1 = require("../../bundler");
18
47
  const helpers_1 = require("../../helpers");
19
48
  const createBuildCommand = (program) => {
20
- program
21
- .command({
22
- name: "build",
23
- description: "Build the source code (production mode)",
24
- })
25
- .task({
26
- key: "outfiles",
27
- label: "Bundle assets 📦",
28
- handler({ values }) {
29
- return __awaiter(this, void 0, void 0, function* () {
30
- const outfiles = yield (0, bundler_1.bundle)({
31
- isFast: values.noCheck,
32
- isProduction: true,
33
- });
34
- return outfiles.filter((outfile) => outfile !== null);
35
- });
36
- },
37
- })
38
- .task({
39
- key: "sizes",
40
- label: "Compute sizes 🔢",
41
- handler({ values }) {
42
- return __awaiter(this, void 0, void 0, function* () {
43
- return yield calculateBundleSize(values.outfiles);
44
- });
45
- },
46
- })
47
- .message({
48
- handler({ values }, helpers) {
49
- const padding = values.sizes
50
- .map((item) => item.raw)
51
- .reduce((pad, currentRawSize) => {
52
- return Math.max(pad, String(currentRawSize).length);
53
- }, 0) + 2;
54
- values.sizes.forEach((item) => {
55
- helpers.print([
56
- `${item.raw.toString().padStart(padding)} B raw`,
57
- `${item.gzip.toString().padStart(padding)} B gz`,
58
- ], {
59
- label: item.filename,
60
- type: "information",
61
- });
62
- });
63
- },
64
- });
49
+ program
50
+ .command({
51
+ name: "build",
52
+ description: "Build the source code (production mode)",
53
+ })
54
+ .task({
55
+ key: "outfiles",
56
+ label: "Bundle assets 📦",
57
+ handler(context) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const outfiles = yield (0, bundler_1.bundle)({
60
+ isFast: context.noCheck,
61
+ isProduction: true,
62
+ });
63
+ return outfiles.filter((outfile) => outfile !== null);
64
+ });
65
+ },
66
+ })
67
+ .task({
68
+ key: "sizes",
69
+ label: "Compute sizes 🔢",
70
+ handler(context) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ return yield calculateBundleSize(context.outfiles);
73
+ });
74
+ },
75
+ })
76
+ .message({
77
+ handler(context) {
78
+ const padding =
79
+ context.sizes
80
+ .map((item) => item.raw)
81
+ .reduce((pad, currentRawSize) => {
82
+ return Math.max(pad, String(currentRawSize).length);
83
+ }, 0) + 2;
84
+ context.sizes.forEach((item) => {
85
+ termost_1.helpers.print(
86
+ [
87
+ `${item.raw.toString().padStart(padding)} B raw`,
88
+ `${item.gzip.toString().padStart(padding)} B gz`,
89
+ ],
90
+ {
91
+ label: item.filename,
92
+ type: "information",
93
+ }
94
+ );
95
+ });
96
+ },
97
+ });
65
98
  };
66
99
  exports.createBuildCommand = createBuildCommand;
67
- const calculateBundleSize = (filenames) => __awaiter(void 0, void 0, void 0, function* () {
68
- const calculateFileSize = (filename) => __awaiter(void 0, void 0, void 0, function* () {
69
- const content = yield (0, helpers_1.readFile)(filename);
70
- const gzSize = yield (0, gzip_size_1.default)(content);
71
- return {
72
- filename,
73
- raw: content.byteLength,
74
- gzip: gzSize,
75
- };
76
- });
77
- return yield Promise.all(filenames.map((filename) => calculateFileSize(filename)));
78
- });
100
+ const calculateBundleSize = (filenames) =>
101
+ __awaiter(void 0, void 0, void 0, function* () {
102
+ const calculateFileSize = (filename) =>
103
+ __awaiter(void 0, void 0, void 0, function* () {
104
+ const content = yield (0, helpers_1.readFile)(filename);
105
+ const gzSize = yield (0, gzip_size_1.default)(content);
106
+ return {
107
+ filename,
108
+ raw: content.byteLength,
109
+ gzip: gzSize,
110
+ };
111
+ });
112
+ return yield Promise.all(
113
+ filenames.map((filename) => calculateFileSize(filename))
114
+ );
115
+ });
@@ -1,3 +1,5 @@
1
- import { Program } from "termost";
1
+ import { Termost } from "termost";
2
2
  import { ProgramContext } from "../types";
3
- export declare const createWatchCommand: (program: Program<ProgramContext>) => void;
3
+ export declare const createWatchCommand: (
4
+ program: Termost<ProgramContext>
5
+ ) => void;
@@ -1,68 +1,103 @@
1
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
- };
2
+ var __awaiter =
3
+ (this && this.__awaiter) ||
4
+ function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) {
6
+ return value instanceof P
7
+ ? value
8
+ : new P(function (resolve) {
9
+ resolve(value);
10
+ });
11
+ }
12
+ return new (P || (P = Promise))(function (resolve, reject) {
13
+ function fulfilled(value) {
14
+ try {
15
+ step(generator.next(value));
16
+ } catch (e) {
17
+ reject(e);
18
+ }
19
+ }
20
+ function rejected(value) {
21
+ try {
22
+ step(generator["throw"](value));
23
+ } catch (e) {
24
+ reject(e);
25
+ }
26
+ }
27
+ function step(result) {
28
+ result.done
29
+ ? resolve(result.value)
30
+ : adopt(result.value).then(fulfilled, rejected);
31
+ }
32
+ step(
33
+ (generator = generator.apply(thisArg, _arguments || [])).next()
34
+ );
35
+ });
36
+ };
11
37
  Object.defineProperty(exports, "__esModule", { value: true });
12
38
  exports.createWatchCommand = void 0;
39
+ const termost_1 = require("termost");
13
40
  const bundler_1 = require("../../bundler");
14
41
  const createWatchCommand = (program) => {
15
- program
16
- .command({
17
- name: "watch",
18
- description: "Watch and rebuild on any code change (development mode)",
19
- })
20
- .task({
21
- key: "callbacks",
22
- label: "Setup watcher",
23
- handler({ values }) {
24
- return __awaiter(this, void 0, void 0, function* () {
25
- const callbacks = {
26
- onError() { },
27
- onSuccess() { },
28
- };
29
- (0, bundler_1.bundle)({
30
- isFast: values.noCheck,
31
- isProduction: false,
32
- onWatch(error) {
33
- if (error) {
34
- callbacks.onError(String(error));
35
- }
36
- else {
37
- callbacks.onSuccess();
38
- }
39
- },
40
- })
41
- .then(() => callbacks.onSuccess())
42
- .catch((error) => {
43
- callbacks.onError(String(error));
44
- throw error;
45
- });
46
- return callbacks;
47
- });
48
- },
49
- })
50
- .message({
51
- handler({ values }, helpers) {
52
- const onNotify = (type, message) => {
53
- console.clear();
54
- if (type === "loading") {
55
- helpers.print(`Waiting for first build to be done...`, {
56
- type: "information",
57
- });
58
- return;
59
- }
60
- helpers.print(`Last update at ${new Date().toLocaleTimeString()}\n${message ? `\n${message}\n` : ""}`, { type });
61
- };
62
- values.callbacks.onSuccess = () => onNotify("success");
63
- values.callbacks.onError = (error) => onNotify("error", error);
64
- onNotify("loading");
65
- },
66
- });
42
+ program
43
+ .command({
44
+ name: "watch",
45
+ description:
46
+ "Watch and rebuild on any code change (development mode)",
47
+ })
48
+ .task({
49
+ key: "callbacks",
50
+ label: "Setup watcher",
51
+ handler(context) {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const callbacks = {
54
+ onError() {},
55
+ onSuccess() {},
56
+ };
57
+ (0, bundler_1.bundle)({
58
+ isFast: context.noCheck,
59
+ isProduction: false,
60
+ onWatch(error) {
61
+ if (error) {
62
+ callbacks.onError(String(error));
63
+ } else {
64
+ callbacks.onSuccess();
65
+ }
66
+ },
67
+ })
68
+ .then(() => callbacks.onSuccess())
69
+ .catch((error) => {
70
+ callbacks.onError(String(error));
71
+ throw error;
72
+ });
73
+ return callbacks;
74
+ });
75
+ },
76
+ })
77
+ .message({
78
+ handler(context) {
79
+ const onNotify = (type, message) => {
80
+ console.clear();
81
+ if (type === "loading") {
82
+ termost_1.helpers.print(
83
+ `Waiting for first build to be done...`,
84
+ {
85
+ type: "information",
86
+ }
87
+ );
88
+ return;
89
+ }
90
+ termost_1.helpers.print(
91
+ `Last update at ${new Date().toLocaleTimeString()}\n${
92
+ message ? `\n${message}\n` : ""
93
+ }`,
94
+ { type }
95
+ );
96
+ };
97
+ context.callbacks.onSuccess = () => onNotify("success");
98
+ context.callbacks.onError = (error) => onNotify("error", error);
99
+ onNotify("loading");
100
+ },
101
+ });
67
102
  };
68
103
  exports.createWatchCommand = createWatchCommand;
@@ -4,15 +4,18 @@ const termost_1 = require("termost");
4
4
  const build_1 = require("./commands/build");
5
5
  const watch_1 = require("./commands/watch");
6
6
  const createProgram = (...commandBuilders) => {
7
- const program = (0, termost_1.termost)("The zero-configuration bundler powered by ESBuild");
8
- program.option({
9
- key: "noCheck",
10
- name: "no-check",
11
- description: "Enable fast mode by forcing the deactivation of `tsc` types checking and generation",
12
- defaultValue: false,
13
- });
14
- for (const commandBuilder of commandBuilders) {
15
- commandBuilder(program);
16
- }
7
+ const program = (0, termost_1.termost)(
8
+ "The zero-configuration bundler powered by ESBuild"
9
+ );
10
+ program.option({
11
+ key: "noCheck",
12
+ name: "no-check",
13
+ description:
14
+ "Enable fast mode by forcing the deactivation of `tsc` types checking and generation",
15
+ defaultValue: false,
16
+ });
17
+ for (const commandBuilder of commandBuilders) {
18
+ commandBuilder(program);
19
+ }
17
20
  };
18
21
  createProgram(build_1.createBuildCommand, watch_1.createWatchCommand);
@@ -1,3 +1,3 @@
1
1
  export declare type ProgramContext = {
2
- noCheck: boolean;
2
+ noCheck: boolean;
3
3
  };
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es6.d.ts","../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/constants.ts","../src/helpers.ts","../node_modules/termost/dist/types.d.ts","../node_modules/termost/dist/api/command/command.d.ts","../node_modules/termost/dist/api/command/controller/index.d.ts","../node_modules/termost/dist/api/command/index.d.ts","../node_modules/termost/dist/api/message/types.d.ts","../node_modules/termost/dist/api/message/index.d.ts","../node_modules/termost/dist/api/option/index.d.ts","../node_modules/termost/dist/api/question/index.d.ts","../node_modules/termost/dist/api/task/index.d.ts","../node_modules/termost/dist/api/program/index.d.ts","../node_modules/termost/dist/termost.d.ts","../node_modules/termost/dist/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/gzip-size/index.d.ts","../node_modules/esbuild/lib/main.d.ts","../src/types.ts","../src/bundler/package.ts","../node_modules/typescript/lib/typescript.d.ts","../src/bundler/typescript.ts","../src/bundler/plugins.ts","../src/bundler/bundler.ts","../src/bundler/index.ts","../src/program/types.ts","../src/program/commands/build.ts","../src/program/commands/watch.ts","../src/program/index.ts","../src/index.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/json5/index.d.ts","../node_modules/@types/minimist/index.d.ts","../node_modules/@types/normalize-package-data/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/retry/index.d.ts"],"fileInfos":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"dbb73d4d99be496175cb432c74c2615f78c76f4272f1d83cba11ee0ed6dbddf0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"6a6d2cb50edd9c74a0187c9e831887833f8421ebb000450ede029b98a055f4c1","c36119ffcc54f6828086253f0aa3641bc15aa756a6315b749a9b2c04dc6eb1f9","029c07b7190ed2683f374e14c221cbba6e52d08fc4004d3d22818f57d56a9b57","155f10d43161ddaae809890633a89c731e985f830457c0f7964407207a5b41f1","a0d7fe3720632526b71f045499c81543825f399812691e31aace32505287fc6e","b93db58ae819b77c2f7315d1002ecd2a971600a1c9c6381ec2a372706977ccdf","60385b0ab2a30955a6d391bb2bdabb53572e58040ca66c2060dfe69ab02c7677","e139979aaf7f8e5025bd3fad1a0f53ffab7feafc18866da52823d370f223e5fe","d02900fa26a94537af73a3e7474e5daf46be2def3ca836ad1e00e4de84821307","713d0ac6583a4840872b9389620984ea76e07294040f6a4eead12336254156b1","aa30e216b177269f7a761a2762bcec5ce02bf3ee33bf739a57481b75e8d5b8f8","7f24fe002fc4ea614c7eca737cd5ee6b1a571cd7a4739c5620e11122f146337e","8f622e6c69f7bb65e5a3bbaebe3f92594ab1780eec2fcc807433b82c0047555c","7e3b2664683ed2d79cce42bb9ead0166333a7d4a2fe48b11fe6ba4e7efb0a073","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"712ba0d43b44d144dfd01593f61af6e2e21cfae83e834d297643e7973e55ed61","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","98a3ebfa494b46265634a73459050befba5da8fdc6ca0ef9b7269421780f4ff3","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"b8aca9d0c81abb02bec9b7621983ae65bde71da6727580070602bd2500a9ce2a","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","ad41bb744149e92adb06eb953da195115620a3f2ad48e7d3ae04d10762dae197","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"5d0a9ea09d990b5788f867f1c79d4878f86f7384cb7dab38eecbf22f9efd063d","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","103d70bfbeb3cd3a3f26d1705bf986322d8738c2c143f38ebb743b1e228d7444","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","aad03645286ed080d3727064df72eb785467053f04ed4460118a8ef45865574e","f6801b113c81e3b4ef0b2b27e457cd1a269b72339312bb716be93a199d8d0bc3","74fc8de25649a72263bbf34d7c83eedbd942ffefa6d8548400eeac4b85f2283e","7eb3d28adebe8e97f0b6a3dab0a153dabd96f1414647662aff4f94286e5e86c2","ba00bb2ada9a5b7e0ab18c7282c0161f5af809112e4439b35c8b3853f7d436a7","6d36def13737619be5ebc21250eb9b20fa6bfca10fde8f8c4bad53fba4dd71ff","c3702d17568e25ad6e04c650bbd149bbb7c3dd4ca56250f96aae28ad4886f5fc","b891cffd32f77ac9459fee9f4b173838611035b583f4f671d1b01973f4b85df8","a2ed2934be2573714b8813048816502690f52c7fc5ade4ad572e40d4d852986c","7f5c1d30755f7687c4bc68536321b3d35e5f0b9ab087988252507cd07ca7c2df","6fea9ce71e7d24fb035faf7dae94ca266b958b99ae82bef8fbc6a30834d53fca","d5b309c3135a10556336a1125ea4230e452735e6864785ed7296e21520fa281b","56da14578139f9a2110d092f764a9b3417a195f3b5fc0410fe9130a6d2d7746e","d97a85dd1a2300ce93325a9675eb90f6dfaaa8d832991fb61e1a27b439d720e3","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","58a3914b1cce4560d9ad6eee2b716caaa030eda0a90b21ca2457ea9e2783eaa3"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":true,"jsx":4,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","removeComments":true,"skipLibCheck":true,"strict":true,"target":2},"fileIdsList":[[101],[58,101],[61,101],[62,67,101],[63,73,74,81,90,100,101],[63,64,73,81,101],[65,101],[66,67,74,82,101],[67,90,97,101],[68,70,73,81,101],[69,101],[70,71,101],[72,73,101],[73,101],[73,74,75,90,100,101],[73,74,75,90,101],[76,81,90,100,101],[73,74,76,77,81,90,97,100,101],[76,78,90,97,100,101],[58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107],[73,79,101],[80,100,101],[70,73,81,90,101],[82,101],[83,101],[61,84,101],[85,99,101,105],[86,101],[87,101],[73,88,101],[88,89,101,103],[73,90,91,92,101],[90,92,101],[90,91,101],[93,101],[94,101],[73,95,96,101],[95,96,101],[67,81,90,97,101],[98,101],[81,99,101],[62,76,87,100,101],[67,101],[90,101,102],[101,103],[101,104],[62,67,73,75,84,90,100,101,103,105],[90,101,106],[90,101,106,108],[46,101],[47,48,101],[46,50,101],[46,49,101],[46,49,51,52,53,54,101],[50,55,56,101],[46,55,101],[44,101,110,111,112,114,115],[101,116],[44,45,83,101],[45,101,110,114],[44,57,83,101,113],[44,74,101],[101,121],[45,57,101,109,117,118],[57,101,117,118],[57,101,118,119,120]],"referencedMap":[[123,1],[124,1],[125,1],[58,2],[59,2],[61,3],[62,4],[63,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,12],[72,13],[73,14],[74,15],[75,16],[60,1],[107,1],[76,17],[77,18],[78,19],[108,20],[79,21],[80,22],[81,23],[82,24],[83,25],[84,26],[85,27],[86,28],[87,29],[88,30],[89,31],[90,32],[92,33],[91,34],[93,35],[94,36],[95,37],[96,38],[97,39],[98,40],[99,41],[100,42],[101,43],[102,44],[103,45],[104,46],[105,47],[106,48],[126,1],[127,1],[128,1],[110,1],[109,49],[47,50],[48,50],[49,51],[51,52],[50,1],[52,53],[55,54],[53,50],[54,50],[57,55],[56,56],[46,1],[9,1],[10,1],[14,1],[13,1],[3,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[4,1],[5,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[34,1],[35,1],[36,1],[37,1],[8,1],[42,1],[38,1],[39,1],[40,1],[41,1],[2,1],[1,1],[43,1],[12,1],[11,1],[113,1],[116,57],[117,58],[112,59],[115,60],[114,61],[44,1],[45,62],[122,63],[119,64],[120,65],[121,66],[118,1],[111,1]],"exportedModulesMap":[[123,1],[124,1],[125,1],[58,2],[59,2],[61,3],[62,4],[63,5],[64,6],[65,7],[66,8],[67,9],[68,10],[69,11],[70,12],[71,12],[72,13],[73,14],[74,15],[75,16],[60,1],[107,1],[76,17],[77,18],[78,19],[108,20],[79,21],[80,22],[81,23],[82,24],[83,25],[84,26],[85,27],[86,28],[87,29],[88,30],[89,31],[90,32],[92,33],[91,34],[93,35],[94,36],[95,37],[96,38],[97,39],[98,40],[99,41],[100,42],[101,43],[102,44],[103,45],[104,46],[105,47],[106,48],[126,1],[127,1],[128,1],[110,1],[109,49],[47,50],[48,50],[49,51],[51,52],[50,1],[52,53],[55,54],[53,50],[54,50],[57,55],[56,56],[46,1],[9,1],[10,1],[14,1],[13,1],[3,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[4,1],[5,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[34,1],[35,1],[36,1],[37,1],[8,1],[42,1],[38,1],[39,1],[40,1],[41,1],[2,1],[1,1],[43,1],[12,1],[11,1],[113,1],[116,57],[117,58],[112,59],[115,60],[114,61],[44,1],[45,62],[122,63],[119,64],[120,65],[121,66],[118,1],[111,1]],"semanticDiagnosticsPerFile":[123,124,125,58,59,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,60,107,76,77,78,108,79,80,81,82,83,84,85,86,87,88,89,90,92,91,93,94,95,96,97,98,99,100,101,102,103,104,105,106,126,127,128,110,109,47,48,49,51,50,52,55,53,54,57,56,46,9,10,14,13,3,15,16,17,18,19,20,21,22,4,5,26,23,24,25,27,28,29,6,30,31,32,33,7,34,35,36,37,8,42,38,39,40,41,2,1,43,12,11,113,116,117,112,115,114,44,45,122,119,120,121,118,111]},"version":"4.6.3"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es6.d.ts","../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/constants.ts","../src/helpers.ts","../node_modules/termost/dist/types.d.ts","../node_modules/termost/dist/api/command/command.d.ts","../node_modules/termost/dist/api/command/controller/index.d.ts","../node_modules/termost/dist/api/command/index.d.ts","../node_modules/termost/dist/api/message/index.d.ts","../node_modules/termost/dist/api/option/index.d.ts","../node_modules/termost/dist/api/question/index.d.ts","../node_modules/termost/dist/api/task/index.d.ts","../node_modules/termost/dist/termost.d.ts","../node_modules/termost/dist/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/gzip-size/index.d.ts","../node_modules/esbuild/lib/main.d.ts","../src/types.ts","../src/bundler/package.ts","../node_modules/typescript/lib/typescript.d.ts","../src/bundler/typescript.ts","../src/bundler/plugins.ts","../src/bundler/bundler.ts","../src/bundler/index.ts","../src/program/types.ts","../src/program/commands/build.ts","../src/program/commands/watch.ts","../src/program/index.ts","../src/index.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/json5/index.d.ts","../node_modules/@types/minimist/index.d.ts","../node_modules/@types/normalize-package-data/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/retry/index.d.ts"],"fileInfos":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"dbb73d4d99be496175cb432c74c2615f78c76f4272f1d83cba11ee0ed6dbddf0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"6a6d2cb50edd9c74a0187c9e831887833f8421ebb000450ede029b98a055f4c1","c36119ffcc54f6828086253f0aa3641bc15aa756a6315b749a9b2c04dc6eb1f9","7ddda482eea3517eea9b9411658111eb0c0f29426307f1431f6e8752820f1293","7535fb001c17f6e616fb43e3b3ec737317aaa1e04afc463644c030ebed4cd759","a0d7fe3720632526b71f045499c81543825f399812691e31aace32505287fc6e","b93db58ae819b77c2f7315d1002ecd2a971600a1c9c6381ec2a372706977ccdf","f97f24387656247ece29c14c099d9ef38783ae3b8aec3917fd210e767ca3520b","8497eeee89d5293050d698bcdd594d7e0c835c111d081a3a9ca877ccc2dac13b","713d0ac6583a4840872b9389620984ea76e07294040f6a4eead12336254156b1","e339873977db5a1c6cef3b7eb223e7c55cd65d6c532f3b548b75eb2e86be7034","d7994e5c7108013111795a8ef6cb78d660aea075d829c261e0ad8cbc773c974e","e90a9a798fc312b6ad956aad86bb755e606cf26c411fb24ddeeb00c20557ca34","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"712ba0d43b44d144dfd01593f61af6e2e21cfae83e834d297643e7973e55ed61","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","98a3ebfa494b46265634a73459050befba5da8fdc6ca0ef9b7269421780f4ff3","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"b8aca9d0c81abb02bec9b7621983ae65bde71da6727580070602bd2500a9ce2a","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","ad41bb744149e92adb06eb953da195115620a3f2ad48e7d3ae04d10762dae197","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"5d0a9ea09d990b5788f867f1c79d4878f86f7384cb7dab38eecbf22f9efd063d","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"4cd4cff679c9b3d9239fd7bf70293ca4594583767526916af8e5d5a47d0219c7","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","103d70bfbeb3cd3a3f26d1705bf986322d8738c2c143f38ebb743b1e228d7444","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","aad03645286ed080d3727064df72eb785467053f04ed4460118a8ef45865574e","f6801b113c81e3b4ef0b2b27e457cd1a269b72339312bb716be93a199d8d0bc3","74fc8de25649a72263bbf34d7c83eedbd942ffefa6d8548400eeac4b85f2283e","7eb3d28adebe8e97f0b6a3dab0a153dabd96f1414647662aff4f94286e5e86c2","ba00bb2ada9a5b7e0ab18c7282c0161f5af809112e4439b35c8b3853f7d436a7","6d36def13737619be5ebc21250eb9b20fa6bfca10fde8f8c4bad53fba4dd71ff","c3702d17568e25ad6e04c650bbd149bbb7c3dd4ca56250f96aae28ad4886f5fc","b891cffd32f77ac9459fee9f4b173838611035b583f4f671d1b01973f4b85df8","a2ed2934be2573714b8813048816502690f52c7fc5ade4ad572e40d4d852986c","7f5c1d30755f7687c4bc68536321b3d35e5f0b9ab087988252507cd07ca7c2df",{"version":"f1fc40fd6f19be96bb14972b03b0e3439df40b2b5935ba5ca8fa55866c4459ce","signature":"8b14b9eb9e449415235f0127143d3d917ff812b17e5cf7dcd91e9395fba70f0b"},{"version":"a90149a5c8f3ab47ee2e12da8ed8fcf53f5f224310f2fca969f6a7ba511540a9","signature":"2011aa3e9b062d0a246f5f56dbcedf7874a0abc770e5f59127132e81fed90fc5"},{"version":"372aac5697ed2bde7d94beeab33c87741c9790cfbc6637e4ba85eb1de6470dce","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"d97a85dd1a2300ce93325a9675eb90f6dfaaa8d832991fb61e1a27b439d720e3","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","58a3914b1cce4560d9ad6eee2b716caaa030eda0a90b21ca2457ea9e2783eaa3"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":true,"jsx":4,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","removeComments":true,"skipLibCheck":true,"strict":true,"target":2},"fileIdsList":[[99],[56,99],[59,99],[60,65,99],[61,71,72,79,88,98,99],[61,62,71,79,99],[63,99],[64,65,72,80,99],[65,88,95,99],[66,68,71,79,99],[67,99],[68,69,99],[70,71,99],[71,99],[71,72,73,88,98,99],[71,72,73,88,99],[74,79,88,98,99],[71,72,74,75,79,88,95,98,99],[74,76,88,95,98,99],[56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],[71,77,99],[78,98,99],[68,71,79,88,99],[80,99],[81,99],[59,82,99],[83,97,99,103],[84,99],[85,99],[71,86,99],[86,87,99,101],[71,88,89,90,99],[88,90,99],[88,89,99],[91,99],[92,99],[71,93,94,99],[93,94,99],[65,79,88,95,99],[96,99],[79,97,99],[60,74,85,98,99],[65,99],[88,99,100],[99,101],[99,102],[60,65,71,73,82,88,98,99,101,103],[88,99,104],[88,99,104,106],[46,99],[47,48,99],[46,49,99],[54,99],[46,49,50,51,52,53,99],[44,99,108,109,110,112,113],[99,114],[44,45,81,99],[45,99,108,112],[44,55,81,99,111],[44,72,99],[99,119],[45,55,99,107,115,116],[55,99,115,116],[55,99,116,117,118],[55,116]],"referencedMap":[[121,1],[122,1],[123,1],[56,2],[57,2],[59,3],[60,4],[61,5],[62,6],[63,7],[64,8],[65,9],[66,10],[67,11],[68,12],[69,12],[70,13],[71,14],[72,15],[73,16],[58,1],[105,1],[74,17],[75,18],[76,19],[106,20],[77,21],[78,22],[79,23],[80,24],[81,25],[82,26],[83,27],[84,28],[85,29],[86,30],[87,31],[88,32],[90,33],[89,34],[91,35],[92,36],[93,37],[94,38],[95,39],[96,40],[97,41],[98,42],[99,43],[100,44],[101,45],[102,46],[103,47],[104,48],[124,1],[125,1],[126,1],[108,1],[107,49],[47,50],[48,50],[49,51],[50,50],[51,52],[52,50],[53,50],[55,53],[54,54],[46,1],[9,1],[10,1],[14,1],[13,1],[3,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[4,1],[5,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[34,1],[35,1],[36,1],[37,1],[8,1],[42,1],[38,1],[39,1],[40,1],[41,1],[2,1],[1,1],[43,1],[12,1],[11,1],[111,1],[114,55],[115,56],[110,57],[113,58],[112,59],[44,1],[45,60],[120,61],[117,62],[118,63],[119,64],[116,1],[109,1]],"exportedModulesMap":[[121,1],[122,1],[123,1],[56,2],[57,2],[59,3],[60,4],[61,5],[62,6],[63,7],[64,8],[65,9],[66,10],[67,11],[68,12],[69,12],[70,13],[71,14],[72,15],[73,16],[58,1],[105,1],[74,17],[75,18],[76,19],[106,20],[77,21],[78,22],[79,23],[80,24],[81,25],[82,26],[83,27],[84,28],[85,29],[86,30],[87,31],[88,32],[90,33],[89,34],[91,35],[92,36],[93,37],[94,38],[95,39],[96,40],[97,41],[98,42],[99,43],[100,44],[101,45],[102,46],[103,47],[104,48],[124,1],[125,1],[126,1],[108,1],[107,49],[47,50],[48,50],[49,51],[50,50],[51,52],[52,50],[53,50],[55,53],[54,54],[46,1],[9,1],[10,1],[14,1],[13,1],[3,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[4,1],[5,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[34,1],[35,1],[36,1],[37,1],[8,1],[42,1],[38,1],[39,1],[40,1],[41,1],[2,1],[1,1],[43,1],[12,1],[11,1],[111,1],[114,55],[115,56],[110,57],[113,58],[112,59],[44,1],[45,60],[120,61],[117,65],[118,65],[116,1],[109,1]],"semanticDiagnosticsPerFile":[121,122,123,56,57,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,58,105,74,75,76,106,77,78,79,80,81,82,83,84,85,86,87,88,90,89,91,92,93,94,95,96,97,98,99,100,101,102,103,104,124,125,126,108,107,47,48,49,50,51,52,53,55,54,46,9,10,14,13,3,15,16,17,18,19,20,21,22,4,5,26,23,24,25,27,28,29,6,30,31,32,33,7,34,35,36,37,8,42,38,39,40,41,2,1,43,12,11,111,114,115,110,113,112,44,45,120,117,118,119,116,109]},"version":"4.6.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quickbundle",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "bin": {
5
5
  "quickbundle": "bin/index.js"
6
6
  },
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "esbuild": "0.14.27",
36
36
  "gzip-size": "6.0.0",
37
- "termost": "0.5.1"
37
+ "termost": "0.6.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "typescript": ">=4.1"
@@ -52,7 +52,7 @@
52
52
  "@commitlint/config-conventional": "16.2.1",
53
53
  "@semantic-release/git": "10.0.1",
54
54
  "@types/node": "17.0.23",
55
- "eslint": "8.11.0",
55
+ "eslint": "8.12.0",
56
56
  "husky": "4.3.8",
57
57
  "lint-staged": "12.3.7",
58
58
  "prettier": "2.6.1",