quickbundle 0.5.0 → 0.8.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/README.md +16 -17
- package/bin/bundler/bundler.d.ts +4 -6
- package/bin/bundler/bundler.js +63 -16
- package/bin/bundler/index.d.ts +1 -3
- package/bin/bundler/index.js +2 -4
- package/bin/bundler/{metadata.d.ts → package.d.ts} +4 -4
- package/bin/bundler/{metadata.js → package.js} +8 -12
- package/bin/bundler/plugins.d.ts +1 -1
- package/bin/bundler/plugins.js +6 -6
- package/bin/bundler/typescript.d.ts +3 -1
- package/bin/bundler/typescript.js +17 -10
- package/bin/program/commands/build.d.ts +3 -4
- package/bin/program/commands/build.js +6 -15
- package/bin/program/commands/watch.d.ts +4 -3
- package/bin/program/commands/watch.js +24 -12
- package/bin/program/index.js +6 -0
- package/bin/program/types.d.ts +3 -0
- package/bin/program/types.js +2 -0
- package/bin/tsconfig.tsbuildinfo +1 -1
- package/package.json +20 -18
- package/bin/test.d.ts +0 -3
- package/bin/test.js +0 -10
package/README.md
CHANGED
|
@@ -8,17 +8,14 @@
|
|
|
8
8
|
|
|
9
9
|
## ✨ Features
|
|
10
10
|
|
|
11
|
-
Quickbundle allows you to bundle a library
|
|
11
|
+
Quickbundle allows you to bundle a library in a **quick**, **fast** and **easy** way:
|
|
12
12
|
|
|
13
|
-
- Fast build thanks to [
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
- Production build support with optimized output
|
|
20
|
-
- TypeScript support
|
|
21
|
-
- JSX support
|
|
13
|
+
- Fast build and watch mode thanks to [esbuild](https://esbuild.github.io/)
|
|
14
|
+
- Zero configuration: define the build artifacts in your `package.json` and you're all set!
|
|
15
|
+
- JavaScript, TypeScript, JSX, CSS, JSON and Text support following [esbuild support](https://esbuild.github.io/content-types/)
|
|
16
|
+
- Support of multiple module formats including `cjs` & `esm`
|
|
17
|
+
- Bundling can be done for several platform targets including `browser` or `node`
|
|
18
|
+
- Optimized build such as `peerDependencies` not bundled in the final output
|
|
22
19
|
|
|
23
20
|
<br>
|
|
24
21
|
|
|
@@ -28,9 +25,9 @@ Quickbundle allows you to bundle a library with ease:
|
|
|
28
25
|
|
|
29
26
|
```bash
|
|
30
27
|
# NPM
|
|
31
|
-
npm install
|
|
28
|
+
npm install quickbundle
|
|
32
29
|
# Yarn
|
|
33
|
-
yarn add
|
|
30
|
+
yarn add quickbundle
|
|
34
31
|
```
|
|
35
32
|
|
|
36
33
|
2️⃣ Set up your package configuration (`package.json`):
|
|
@@ -39,13 +36,15 @@ yarn add quickbundles
|
|
|
39
36
|
{
|
|
40
37
|
"name": "lib", // Package name
|
|
41
38
|
"source": "src/index.ts", // Source code entrypoint
|
|
42
|
-
"main": "./dist/lib.cjs", // CommonJS
|
|
43
|
-
"module": "./dist/lib.cjs.js", // ESM
|
|
44
|
-
"types": "./dist/lib.d.ts", // Typing output
|
|
39
|
+
"main": "./dist/lib.cjs", // CommonJS output file
|
|
40
|
+
"module": "./dist/lib.cjs.js", // ESM output file
|
|
41
|
+
"types": "./dist/lib.d.ts", // Typing output file
|
|
45
42
|
"platform": "node", // Platform target (optional, by default "browser")
|
|
46
43
|
"scripts": {
|
|
47
|
-
"
|
|
48
|
-
"
|
|
44
|
+
"build": "quickbundle build", // Production mode (optimizes bundle)
|
|
45
|
+
"watch": "quickbundle watch", // Development mode (watches each file change)
|
|
46
|
+
"build:fast": "quickbundle build --no-check", // Production mode with fast transpilation time. This mode disables TypeScript type checking (ie. not using `tsc`) and, consequently, the `types` asset is no more managed by the tool
|
|
47
|
+
"watch:fast": "quickbundle watch --no-check" // Development mode with fast transpilation time
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
```
|
package/bin/bundler/bundler.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { Metadata } from "./metadata";
|
|
3
|
-
declare type BundlerOptions = {
|
|
1
|
+
declare type BundleParameters = {
|
|
4
2
|
isProduction: boolean;
|
|
5
|
-
|
|
6
|
-
onWatch
|
|
3
|
+
isFast: boolean;
|
|
4
|
+
onWatch?: (error: Error | null) => void;
|
|
7
5
|
};
|
|
8
|
-
export declare const
|
|
6
|
+
export declare const bundle: ({ isProduction, isFast, onWatch, }: BundleParameters) => Promise<(string | null)[]>;
|
|
9
7
|
export {};
|
package/bin/bundler/bundler.js
CHANGED
|
@@ -8,42 +8,89 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
15
|
+
exports.bundle = void 0;
|
|
16
|
+
const path_1 = __importDefault(require("path"));
|
|
13
17
|
const esbuild_1 = require("esbuild");
|
|
18
|
+
const termost_1 = require("termost");
|
|
14
19
|
const constants_1 = require("../constants");
|
|
20
|
+
const package_1 = require("./package");
|
|
15
21
|
const plugins_1 = require("./plugins");
|
|
16
22
|
const typescript_1 = require("./typescript");
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
const bundle = ({ isProduction, isFast, onWatch, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
24
|
+
const { destination, externalDependencies, hasModule, platform, source, types, } = (0, package_1.getPackageMetadata)();
|
|
25
|
+
const isWatching = typeof onWatch === "function";
|
|
26
|
+
const isTypingRequested = typeof types === "string" && !isFast;
|
|
27
|
+
const tsConfig = yield (0, typescript_1.getTypeScriptConfiguration)();
|
|
28
|
+
const getType = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
29
|
+
const outfile = types;
|
|
30
|
+
if (!outfile)
|
|
31
|
+
return null;
|
|
32
|
+
try {
|
|
33
|
+
const typingDir = path_1.default.dirname(outfile);
|
|
34
|
+
yield termost_1.helpers.exec(`tsc --declaration --emitDeclarationOnly --incremental --outDir ${typingDir}`, { cwd: constants_1.CWD });
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
throw new Error(`Typing generation failed:\n${error}`);
|
|
23
38
|
}
|
|
39
|
+
return outfile;
|
|
40
|
+
});
|
|
41
|
+
const getJavaScript = (format) => __awaiter(void 0, void 0, void 0, function* () {
|
|
42
|
+
const outfile = destination[format];
|
|
43
|
+
if (!outfile)
|
|
44
|
+
return null;
|
|
24
45
|
yield (0, esbuild_1.build)({
|
|
25
46
|
absWorkingDir: constants_1.CWD,
|
|
26
|
-
bundle: Boolean(
|
|
47
|
+
bundle: Boolean(externalDependencies),
|
|
27
48
|
define: {
|
|
28
49
|
"process.env.NODE_ENV": isProduction
|
|
29
50
|
? '"production"'
|
|
30
51
|
: '"development"',
|
|
31
52
|
},
|
|
32
|
-
entryPoints: [
|
|
33
|
-
external:
|
|
53
|
+
entryPoints: [source],
|
|
54
|
+
external: externalDependencies,
|
|
34
55
|
format,
|
|
56
|
+
logLevel: "silent",
|
|
35
57
|
metafile: true,
|
|
36
58
|
minify: isProduction,
|
|
37
59
|
outfile,
|
|
38
|
-
plugins: [(0, plugins_1.jsxPlugin)(
|
|
39
|
-
platform
|
|
60
|
+
plugins: [(0, plugins_1.jsxPlugin)(tsConfig)],
|
|
61
|
+
platform,
|
|
40
62
|
sourcemap: true,
|
|
41
|
-
target: (
|
|
42
|
-
|
|
43
|
-
|
|
63
|
+
target: (tsConfig === null || tsConfig === void 0 ? void 0 : tsConfig.target) || "esnext",
|
|
64
|
+
treeShaking: true,
|
|
65
|
+
watch: isWatching && {
|
|
66
|
+
onRebuild(bundleError) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
let error = bundleError;
|
|
69
|
+
if (error) {
|
|
70
|
+
onWatch(error);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (isTypingRequested) {
|
|
74
|
+
try {
|
|
75
|
+
yield getType();
|
|
76
|
+
}
|
|
77
|
+
catch (typingError) {
|
|
78
|
+
error = typingError;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
onWatch(error);
|
|
82
|
+
});
|
|
83
|
+
},
|
|
44
84
|
},
|
|
45
85
|
});
|
|
46
86
|
return outfile;
|
|
47
87
|
});
|
|
88
|
+
const promises = [
|
|
89
|
+
...(isWatching
|
|
90
|
+
? [getJavaScript(hasModule ? "esm" : "cjs")]
|
|
91
|
+
: [getJavaScript("cjs"), getJavaScript("esm")]),
|
|
92
|
+
...(isTypingRequested ? [getType()] : []),
|
|
93
|
+
];
|
|
94
|
+
return Promise.all(promises);
|
|
48
95
|
});
|
|
49
|
-
exports.
|
|
96
|
+
exports.bundle = bundle;
|
package/bin/bundler/index.d.ts
CHANGED
package/bin/bundler/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.bundle = void 0;
|
|
4
4
|
var bundler_1 = require("./bundler");
|
|
5
|
-
Object.defineProperty(exports, "
|
|
6
|
-
var metadata_1 = require("./metadata");
|
|
7
|
-
Object.defineProperty(exports, "getMetadata", { enumerable: true, get: function () { return metadata_1.getMetadata; } });
|
|
5
|
+
Object.defineProperty(exports, "bundle", { enumerable: true, get: function () { return bundler_1.bundle; } });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
export declare const getMetadata: () => {
|
|
3
|
-
readonly source: string;
|
|
1
|
+
export declare const getPackageMetadata: () => {
|
|
4
2
|
readonly destination: {
|
|
5
3
|
readonly esm?: string | undefined;
|
|
6
4
|
readonly cjs: string;
|
|
7
5
|
};
|
|
8
|
-
readonly allDependencies: string[];
|
|
9
6
|
readonly externalDependencies: string[];
|
|
7
|
+
readonly hasModule: boolean;
|
|
10
8
|
readonly platform: "node" | "browser";
|
|
9
|
+
readonly source: string;
|
|
10
|
+
readonly types: string | undefined;
|
|
11
11
|
};
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getPackageMetadata = void 0;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const helpers_1 = require("../helpers");
|
|
7
|
-
const
|
|
8
|
-
const {
|
|
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);
|
|
9
10
|
(0, helpers_1.assert)(main, "A `main` field is required in `package.json`. Did you forget to add it?");
|
|
10
11
|
(0, helpers_1.assert)(source, "A `source` field is required in `package.json`. Did you forget to add it?");
|
|
11
12
|
(0, helpers_1.assert)(["browser", "node"].includes(platform), "The `platform` package field can only accept `browser` or `node` value.");
|
|
12
|
-
const externalDependencies = Object.keys(peerDependencies);
|
|
13
|
-
const allDependencies = [
|
|
14
|
-
...externalDependencies,
|
|
15
|
-
...Object.keys(dependencies),
|
|
16
|
-
...Object.keys(devDependencies),
|
|
17
|
-
];
|
|
18
13
|
return {
|
|
19
|
-
source,
|
|
20
14
|
destination: Object.assign({ cjs: main }, (module && { esm: module })),
|
|
21
|
-
allDependencies,
|
|
22
15
|
externalDependencies,
|
|
16
|
+
hasModule: Boolean(module),
|
|
23
17
|
platform,
|
|
18
|
+
source,
|
|
19
|
+
types,
|
|
24
20
|
};
|
|
25
21
|
};
|
|
26
|
-
exports.
|
|
22
|
+
exports.getPackageMetadata = getPackageMetadata;
|
package/bin/bundler/plugins.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Plugin } from "esbuild";
|
|
2
2
|
import type { TypeScriptConfiguration } from "./typescript";
|
|
3
|
-
export declare const jsxPlugin: (
|
|
3
|
+
export declare const jsxPlugin: (tsConfig: TypeScriptConfiguration | null) => Plugin;
|
package/bin/bundler/plugins.js
CHANGED
|
@@ -11,15 +11,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.jsxPlugin = void 0;
|
|
13
13
|
const helpers_1 = require("../helpers");
|
|
14
|
-
const jsxPlugin = (
|
|
15
|
-
name: "jsx",
|
|
14
|
+
const jsxPlugin = (tsConfig) => ({
|
|
15
|
+
name: "jsx-runtime",
|
|
16
16
|
setup(build) {
|
|
17
17
|
build.onLoad({ filter: /\.(j|t)sx$/ }, ({ path }) => __awaiter(this, void 0, void 0, function* () {
|
|
18
|
-
|
|
19
|
-
if (!module ||
|
|
20
|
-
!(0, helpers_1.resolveModulePath)(`${module}/jsx-runtime`) ||
|
|
21
|
-
(tsOptions === null || tsOptions === void 0 ? void 0 : tsOptions.hasJsxRuntime) === false) {
|
|
18
|
+
if (!tsConfig || !tsConfig.hasJsxRuntime)
|
|
22
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
23
|
}
|
|
24
24
|
const content = yield (0, helpers_1.readFile)(path, "utf8");
|
|
25
25
|
return {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare type TypeScriptConfiguration = {
|
|
2
2
|
target?: string;
|
|
3
|
+
jsxImportSource?: string;
|
|
3
4
|
hasJsxRuntime?: boolean;
|
|
4
5
|
};
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const getTypeScriptConfiguration: () => Promise<TypeScriptConfiguration | null>;
|
|
7
|
+
export declare const hasTypeScript: (tsConfig: TypeScriptConfiguration | null) => tsConfig is TypeScriptConfiguration;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -28,29 +32,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28
32
|
});
|
|
29
33
|
};
|
|
30
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
35
|
+
exports.hasTypeScript = exports.getTypeScriptConfiguration = void 0;
|
|
32
36
|
const path_1 = require("path");
|
|
33
37
|
const constants_1 = require("../constants");
|
|
34
|
-
const
|
|
38
|
+
const getTypeScriptConfiguration = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
39
|
var _a;
|
|
36
40
|
try {
|
|
37
41
|
const ts = yield Promise.resolve().then(() => __importStar(require("typescript")));
|
|
38
|
-
const { jsx, target } = ts.parseJsonConfigFileContent(require((0, path_1.resolve)(constants_1.CWD, "tsconfig.json")), ts.sys, constants_1.CWD).options;
|
|
42
|
+
const { jsx, jsxImportSource, target } = ts.parseJsonConfigFileContent(require((0, path_1.resolve)(constants_1.CWD, "tsconfig.json")), ts.sys, constants_1.CWD).options;
|
|
39
43
|
const esbuildTarget = !target ||
|
|
40
44
|
[ts.ScriptTarget.ESNext, ts.ScriptTarget.Latest].includes(target)
|
|
41
45
|
? "esnext"
|
|
42
46
|
: (_a = ts.ScriptTarget[target]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
47
|
+
const hasJsxRuntime = jsx !== undefined &&
|
|
48
|
+
[ts.JsxEmit["ReactJSX"], ts.JsxEmit["ReactJSXDev"]].includes(jsx);
|
|
43
49
|
return {
|
|
44
50
|
target: esbuildTarget,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
ts.JsxEmit["ReactJSX"],
|
|
48
|
-
ts.JsxEmit["ReactJSXDev"],
|
|
49
|
-
].includes(jsx),
|
|
51
|
+
jsxImportSource,
|
|
52
|
+
hasJsxRuntime,
|
|
50
53
|
};
|
|
51
54
|
}
|
|
52
55
|
catch (error) {
|
|
53
56
|
return null;
|
|
54
57
|
}
|
|
55
58
|
});
|
|
56
|
-
exports.
|
|
59
|
+
exports.getTypeScriptConfiguration = getTypeScriptConfiguration;
|
|
60
|
+
const hasTypeScript = (tsConfig) => {
|
|
61
|
+
return Boolean(tsConfig);
|
|
62
|
+
};
|
|
63
|
+
exports.hasTypeScript = hasTypeScript;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Termost } from "termost";
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
4
|
-
metadata: Metadata;
|
|
2
|
+
import { ProgramContext } from "../types";
|
|
3
|
+
interface BuildCommandContext extends ProgramContext {
|
|
5
4
|
sizes: Array<{
|
|
6
5
|
filename: string;
|
|
7
6
|
raw: number;
|
|
@@ -9,5 +8,5 @@ interface BuildContext {
|
|
|
9
8
|
}>;
|
|
10
9
|
outfiles: Array<string>;
|
|
11
10
|
}
|
|
12
|
-
export declare const createBuildCommand: (program: Termost<
|
|
11
|
+
export declare const createBuildCommand: (program: Termost<BuildCommandContext>) => void;
|
|
13
12
|
export {};
|
|
@@ -20,33 +20,24 @@ const createBuildCommand = (program) => {
|
|
|
20
20
|
program
|
|
21
21
|
.command({
|
|
22
22
|
name: "build",
|
|
23
|
-
description: "Build the source code
|
|
24
|
-
})
|
|
25
|
-
.task({
|
|
26
|
-
key: "metadata",
|
|
27
|
-
label: "Retrieve information ⚙️",
|
|
28
|
-
handler() {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
-
return (0, bundler_1.getMetadata)();
|
|
31
|
-
});
|
|
32
|
-
},
|
|
23
|
+
description: "Build the source code (production mode)",
|
|
33
24
|
})
|
|
34
25
|
.task({
|
|
35
26
|
key: "outfiles",
|
|
36
|
-
label:
|
|
27
|
+
label: "Bundle assets 📦",
|
|
37
28
|
handler({ values }) {
|
|
38
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
const
|
|
40
|
-
|
|
30
|
+
const outfiles = yield (0, bundler_1.bundle)({
|
|
31
|
+
isFast: values.noCheck,
|
|
41
32
|
isProduction: true,
|
|
42
33
|
});
|
|
43
|
-
return
|
|
34
|
+
return outfiles.filter((outfile) => outfile !== null);
|
|
44
35
|
});
|
|
45
36
|
},
|
|
46
37
|
})
|
|
47
38
|
.task({
|
|
48
39
|
key: "sizes",
|
|
49
|
-
label: "Compute
|
|
40
|
+
label: "Compute sizes 🔢",
|
|
50
41
|
handler({ values }) {
|
|
51
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
43
|
return yield calculateBundleSize(values.outfiles);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Termost } from "termost";
|
|
2
|
-
|
|
2
|
+
import { ProgramContext } from "../types";
|
|
3
|
+
interface WatchCommandContext extends ProgramContext {
|
|
3
4
|
callbacks: {
|
|
4
|
-
onError: () => void;
|
|
5
|
+
onError: (message: string) => void;
|
|
5
6
|
onSuccess: () => void;
|
|
6
7
|
};
|
|
7
8
|
}
|
|
8
|
-
export declare const createWatchCommand: (program: Termost<
|
|
9
|
+
export declare const createWatchCommand: (program: Termost<WatchCommandContext>) => void;
|
|
9
10
|
export {};
|
|
@@ -15,41 +15,53 @@ const createWatchCommand = (program) => {
|
|
|
15
15
|
program
|
|
16
16
|
.command({
|
|
17
17
|
name: "watch",
|
|
18
|
-
description: "Watch and rebuild on any code change",
|
|
18
|
+
description: "Watch and rebuild on any code change (development mode)",
|
|
19
19
|
})
|
|
20
20
|
.task({
|
|
21
21
|
key: "callbacks",
|
|
22
22
|
label: "Setup watcher",
|
|
23
|
-
handler() {
|
|
23
|
+
handler({ values }) {
|
|
24
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const callbacks = {
|
|
26
|
-
|
|
25
|
+
const callbacks = {
|
|
26
|
+
onError() { },
|
|
27
|
+
onSuccess() { },
|
|
28
|
+
};
|
|
29
|
+
(0, bundler_1.bundle)({
|
|
30
|
+
isFast: values.noCheck,
|
|
27
31
|
isProduction: false,
|
|
28
|
-
isWatchMode: true,
|
|
29
32
|
onWatch(error) {
|
|
30
33
|
if (error) {
|
|
31
|
-
callbacks.onError();
|
|
32
|
-
throw error;
|
|
34
|
+
callbacks.onError(String(error));
|
|
33
35
|
}
|
|
34
36
|
else {
|
|
35
37
|
callbacks.onSuccess();
|
|
36
38
|
}
|
|
37
39
|
},
|
|
40
|
+
})
|
|
41
|
+
.then(() => callbacks.onSuccess())
|
|
42
|
+
.catch((error) => {
|
|
43
|
+
callbacks.onError(String(error));
|
|
44
|
+
throw error;
|
|
38
45
|
});
|
|
39
|
-
bundle("esm");
|
|
40
46
|
return callbacks;
|
|
41
47
|
});
|
|
42
48
|
},
|
|
43
49
|
})
|
|
44
50
|
.message({
|
|
45
51
|
handler({ values }, helpers) {
|
|
46
|
-
const onNotify = (type) => {
|
|
52
|
+
const onNotify = (type, message) => {
|
|
47
53
|
console.clear();
|
|
48
|
-
|
|
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 });
|
|
49
61
|
};
|
|
50
62
|
values.callbacks.onSuccess = () => onNotify("success");
|
|
51
|
-
values.callbacks.onError = () => onNotify("error");
|
|
52
|
-
|
|
63
|
+
values.callbacks.onError = (error) => onNotify("error", error);
|
|
64
|
+
onNotify("loading");
|
|
53
65
|
},
|
|
54
66
|
});
|
|
55
67
|
};
|
package/bin/program/index.js
CHANGED
|
@@ -5,6 +5,12 @@ const build_1 = require("./commands/build");
|
|
|
5
5
|
const watch_1 = require("./commands/watch");
|
|
6
6
|
const createProgram = (...commandBuilders) => {
|
|
7
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
|
+
});
|
|
8
14
|
for (const commandBuilder of commandBuilders) {
|
|
9
15
|
commandBuilder(program);
|
|
10
16
|
}
|
package/bin/tsconfig.tsbuildinfo
CHANGED
|
@@ -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/features/types.d.ts","../node_modules/termost/dist/core/types.d.ts","../node_modules/termost/dist/core/queue/queue.d.ts","../node_modules/termost/dist/core/queue/asyncQueue.d.ts","../node_modules/termost/dist/core/queue/index.d.ts","../node_modules/termost/dist/features/message/types.d.ts","../node_modules/termost/dist/features/message/message.d.ts","../node_modules/termost/dist/features/message/index.d.ts","../node_modules/termost/dist/features/option/index.d.ts","../node_modules/termost/dist/features/question/index.d.ts","../node_modules/termost/dist/features/task/task.d.ts","../node_modules/termost/dist/features/task/index.d.ts","../node_modules/termost/dist/features/command/fluentInterface.d.ts","../node_modules/termost/dist/features/command/command.d.ts","../node_modules/termost/dist/features/command/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/metadata.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/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/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":"6adbf5efd0e374ff5f427a4f26a5a413e9734eee5067a0e86da69aea41910b52","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","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":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"6a6d2cb50edd9c74a0187c9e831887833f8421ebb000450ede029b98a055f4c1","c36119ffcc54f6828086253f0aa3641bc15aa756a6315b749a9b2c04dc6eb1f9","6832120064a06e495f7c54dad12fb553b5dfe7af78344950d550bebdc64d2a7f","7a0be829b74f3e198833a3436354b91aec813bf016c1f08a8a8c118cd517e8f8","95249de87e22bf45d50ee2e411315c724b8d39b49ee325d103e69be3087d1409","6a905d3da23ac58534fe0af08a879c417242edcb88f68d03042a3a8fe81a0712","a617dab22de42ccecb6eb7e109b7ea746a0b97b86cda4d02dcc3da1d580919a5","60385b0ab2a30955a6d391bb2bdabb53572e58040ca66c2060dfe69ab02c7677","2a58c29f60ce7a686d6e4ff670e9c72d3bd7ed00c0e480b545899b71f1478d2f","78f2ae70db7bfbc62737587c3a63233e1201bcc0a6f836837d1a9823b625625c","4a694bb31ffeaea7cfd38fde05c7afd810034e43ed731f125803e311ad11e9a5","5bdbe1b5168f1a649305b316c82052d3f94c06e4c0179bcbc0ac2213bb880bad","8ad1556f32f62b4f55331c2a17b610641f9a1658934cbfb39e12a0367270d243","40634a766d1960a87787ff96ff75721c42c4b4c22bdc7cacbb73fdbfd0eb1055","bab0b1a6793571260016df9d3fe9e623a8c357d2597dd8af7353f836c2319afd","0ecc5bccf91539186b6a0cd6616d6e7ca6239be71e86466191ccdd3b850f3c95","dcc01f4c62ddc6c1d7ab3846b69a72a57dc26c3b62e522970b72b04580f1d799","f53175598b78e337a2e7cb522c28208ff0eae2e92be39ef1c679e8a521169adb","b9c96af40db982875a2866c4d642b9fd573a45dd2ff7e9fb7c60782293814e47","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"6dfd135b38ab97c536d9c966fc5a5a879a19c6ed75c2c9633902be1ef0945ff7","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","5533392c50c51b1a5c32b89f13145db929c574ef1c5949cf67a074a05ea107d9","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"902cd98bf46e95caf4118a0733fb801e9e90eec3edaed6abdad77124afec9ca2","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"bd1a08e30569b0fb2f0b21035eb9b039871f68faa9b98accf847e9c878c5e0a9","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","d88ecca73348e7c337541c4b8b60a50aca5e87384f6b8a422fc6603c637e4c21","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1cdb8f094b969dcc183745dc88404e2d8fcf2a858c6e7cc2441011476573238e","aad03645286ed080d3727064df72eb785467053f04ed4460118a8ef45865574e","ba7aea19dfce8c1fc24fcc9a4898614482934e6649b05e14ed241c280890646f","74fc8de25649a72263bbf34d7c83eedbd942ffefa6d8548400eeac4b85f2283e","bef2bbb0368e2c64a6d00e70f0135c2674568b0552d482bfbcba474cafd3e9ed","bbfbfa714a8f9fdf10e9483b4abd82ccb546fc0fc069ad80d0a254fa40930e98","3842a1a36add589aa960effc470a944903c0ec8976296fc24a5232b75717e590",{"version":"d9e4ab9d4f4cf6df92e330d36feb26ab57e6903958e462262d5824b779f87ff1","signature":"9763163fd4a8828f755a96cfe5df9fed51d68022aa9df93118f7e648d0677ab6"},{"version":"781e75f51b745be41fb0069c34d6c5b7d95b74ac7a12abae87d7c9c795db4c90","signature":"e988e1d88ea10735d866077e367ac1c6375a4ad90b25aca4f57373b44c842414"},"4c3350814dd7f6545b1c01307ccea791464fd2d7f7b8cd276dc1e9ec5f7fa6c1","5e62670e8e64daa1be60a8f4ea89c901046d853d688ed2534306242e1fb1b5aa","157a5f03a7462248c7e22b99d1b2c5f735d354c76e5c3322978e4c85eb314c62","801fb6b78374b6e0506e6393391021f5589ee84be4aca74921f6243b1e76eba9","d97a85dd1a2300ce93325a9675eb90f6dfaaa8d832991fb61e1a27b439d720e3","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","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":[[106],[63,106],[66,106],[67,72,106],[68,78,79,86,95,105,106],[68,69,78,86,106],[70,106],[71,72,79,87,106],[72,95,102,106],[73,75,78,86,106],[74,106],[75,76,106],[77,78,106],[78,106],[78,79,80,95,105,106],[78,79,80,95,106],[81,86,95,105,106],[78,79,81,82,86,95,102,105,106],[81,83,95,102,105,106],[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,108,109,110,111,112],[78,84,106],[85,105,106],[75,78,86,95,106],[87,106],[88,106],[66,89,106],[90,104,106,110],[91,106],[92,106],[78,93,106],[93,94,106,108],[78,95,96,97,106],[95,97,106],[95,96,106],[98,106],[99,106],[78,100,101,106],[100,101,106],[72,86,102,106],[103,106],[86,104,106],[67,81,92,105,106],[72,106],[95,106,107],[106,108],[106,109],[67,72,78,80,89,95,105,106,108,110],[95,106,111],[95,106,111,113],[48,106],[49,106],[47,106],[46,58,106],[46,50,53,54,55,57,106],[59,106],[52,106],[46,51,106],[46,106],[56,106],[61,106],[46,60,106],[44,106,115,116,117,119,120],[106,117,121],[44,45,88,106],[45,106,115,119],[44,88,106,118],[44,79,106],[106,125],[45,62,106,114,116,122],[62,106,122],[62,106,123,124],[116,117],[115,119]],"referencedMap":[[127,1],[128,1],[63,2],[64,2],[66,3],[67,4],[68,5],[69,6],[70,7],[71,8],[72,9],[73,10],[74,11],[75,12],[76,12],[77,13],[78,14],[79,15],[80,16],[65,1],[112,1],[81,17],[82,18],[83,19],[113,20],[84,21],[85,22],[86,23],[87,24],[88,25],[89,26],[90,27],[91,28],[92,29],[93,30],[94,31],[95,32],[97,33],[96,34],[98,35],[99,36],[100,37],[101,38],[102,39],[103,40],[104,41],[105,42],[106,43],[107,44],[108,45],[109,46],[110,47],[111,48],[129,1],[130,1],[131,1],[115,1],[114,49],[49,50],[50,51],[48,52],[47,1],[59,53],[58,54],[60,55],[53,56],[52,57],[51,1],[54,58],[55,58],[57,59],[56,58],[46,1],[62,60],[61,61],[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],[118,1],[121,62],[122,63],[117,64],[120,65],[119,66],[44,1],[45,67],[126,68],[123,69],[124,70],[125,71],[116,1]],"exportedModulesMap":[[127,1],[128,1],[63,2],[64,2],[66,3],[67,4],[68,5],[69,6],[70,7],[71,8],[72,9],[73,10],[74,11],[75,12],[76,12],[77,13],[78,14],[79,15],[80,16],[65,1],[112,1],[81,17],[82,18],[83,19],[113,20],[84,21],[85,22],[86,23],[87,24],[88,25],[89,26],[90,27],[91,28],[92,29],[93,30],[94,31],[95,32],[97,33],[96,34],[98,35],[99,36],[100,37],[101,38],[102,39],[103,40],[104,41],[105,42],[106,43],[107,44],[108,45],[109,46],[110,47],[111,48],[129,1],[130,1],[131,1],[115,1],[114,49],[49,50],[50,51],[48,52],[47,1],[59,53],[58,54],[60,55],[53,56],[52,57],[51,1],[54,58],[55,58],[57,59],[56,58],[46,1],[62,60],[61,61],[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],[118,1],[121,72],[122,63],[117,64],[120,73],[119,66],[44,1],[45,67],[126,68],[123,69],[124,70],[125,71],[116,1]],"semanticDiagnosticsPerFile":[127,128,63,64,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,65,112,81,82,83,113,84,85,86,87,88,89,90,91,92,93,94,95,97,96,98,99,100,101,102,103,104,105,106,107,108,109,110,111,129,130,131,115,114,49,50,48,47,59,58,60,53,52,51,54,55,57,56,46,62,61,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,118,121,122,117,120,119,44,45,126,123,124,125,116]},"version":"4.5.2"}
|
|
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/features/types.d.ts","../node_modules/termost/dist/core/types.d.ts","../node_modules/termost/dist/core/queue/queue.d.ts","../node_modules/termost/dist/core/queue/asyncQueue.d.ts","../node_modules/termost/dist/core/queue/index.d.ts","../node_modules/termost/dist/features/message/types.d.ts","../node_modules/termost/dist/features/message/message.d.ts","../node_modules/termost/dist/features/message/index.d.ts","../node_modules/termost/dist/features/option/index.d.ts","../node_modules/termost/dist/features/question/index.d.ts","../node_modules/termost/dist/features/task/task.d.ts","../node_modules/termost/dist/features/task/index.d.ts","../node_modules/termost/dist/features/command/fluentInterface.d.ts","../node_modules/termost/dist/features/command/command.d.ts","../node_modules/termost/dist/features/command/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","6832120064a06e495f7c54dad12fb553b5dfe7af78344950d550bebdc64d2a7f","7a0be829b74f3e198833a3436354b91aec813bf016c1f08a8a8c118cd517e8f8","95249de87e22bf45d50ee2e411315c724b8d39b49ee325d103e69be3087d1409","6a905d3da23ac58534fe0af08a879c417242edcb88f68d03042a3a8fe81a0712","a617dab22de42ccecb6eb7e109b7ea746a0b97b86cda4d02dcc3da1d580919a5","60385b0ab2a30955a6d391bb2bdabb53572e58040ca66c2060dfe69ab02c7677","2a58c29f60ce7a686d6e4ff670e9c72d3bd7ed00c0e480b545899b71f1478d2f","78f2ae70db7bfbc62737587c3a63233e1201bcc0a6f836837d1a9823b625625c","4a694bb31ffeaea7cfd38fde05c7afd810034e43ed731f125803e311ad11e9a5","b1cc5edc05d59fc4de5d5f63dc4879cf3d6cc02c979f02d798da476efe625ed1","8ad1556f32f62b4f55331c2a17b610641f9a1658934cbfb39e12a0367270d243","40634a766d1960a87787ff96ff75721c42c4b4c22bdc7cacbb73fdbfd0eb1055","bab0b1a6793571260016df9d3fe9e623a8c357d2597dd8af7353f836c2319afd","0ecc5bccf91539186b6a0cd6616d6e7ca6239be71e86466191ccdd3b850f3c95","dcc01f4c62ddc6c1d7ab3846b69a72a57dc26c3b62e522970b72b04580f1d799","f53175598b78e337a2e7cb522c28208ff0eae2e92be39ef1c679e8a521169adb","5d271b7173002fcfa1e5dfd9062e941b88a056ad1c912d6a2879485961ecb792","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},"7a5459efa09ea82088234e6533a203d528c594b01787fb90fba148885a36e8b6","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","e383ff72aabf294913f8c346f5da1445ae6ad525836d28efd52cbadc01a361a6","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","aad03645286ed080d3727064df72eb785467053f04ed4460118a8ef45865574e","f6801b113c81e3b4ef0b2b27e457cd1a269b72339312bb716be93a199d8d0bc3","74fc8de25649a72263bbf34d7c83eedbd942ffefa6d8548400eeac4b85f2283e","7eb3d28adebe8e97f0b6a3dab0a153dabd96f1414647662aff4f94286e5e86c2","ba00bb2ada9a5b7e0ab18c7282c0161f5af809112e4439b35c8b3853f7d436a7","565fec4923c73f681cb142e2c63c56520feffe4b697e5d2f30da41e9fe970f15","c3702d17568e25ad6e04c650bbd149bbb7c3dd4ca56250f96aae28ad4886f5fc","994adbf97539a53fe728db3dd99e2aa04b0e777dca634159debeb4c99ee5189a","a2ed2934be2573714b8813048816502690f52c7fc5ade4ad572e40d4d852986c","7f5c1d30755f7687c4bc68536321b3d35e5f0b9ab087988252507cd07ca7c2df","6e03b50b24efe77dceddb4262e0bd6a2a7d85c35e16e026ef73da7d83ee364be","25021cd22bf75c28fe015f90b62c4d5727ce6085c251357de8809fb693b5a20c","17a807b5b1a5a612a64b7cdbb3f4f22a7032c845257fcc860187e37e52c9b38f","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":[[106],[63,106],[66,106],[67,72,106],[68,78,79,86,95,105,106],[68,69,78,86,106],[70,106],[71,72,79,87,106],[72,95,102,106],[73,75,78,86,106],[74,106],[75,76,106],[77,78,106],[78,106],[78,79,80,95,105,106],[78,79,80,95,106],[81,86,95,105,106],[78,79,81,82,86,95,102,105,106],[81,83,95,102,105,106],[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,108,109,110,111,112],[78,84,106],[85,105,106],[75,78,86,95,106],[87,106],[88,106],[66,89,106],[90,104,106,110],[91,106],[92,106],[78,93,106],[93,94,106,108],[78,95,96,97,106],[95,97,106],[95,96,106],[98,106],[99,106],[78,100,101,106],[100,101,106],[72,86,95,102,106],[103,106],[86,104,106],[67,81,92,105,106],[72,106],[95,106,107],[106,108],[106,109],[67,72,78,80,89,95,105,106,108,110],[95,106,111],[95,106,111,113],[48,106],[49,106],[47,106],[46,58,106],[46,50,53,54,55,57,106],[59,106],[52,106],[46,51,106],[46,106],[56,106],[51,61,106],[46,60,106],[44,62,88,106,115,116,117,119,120],[106,121],[44,45,88,106],[45,106,115,119],[44,88,106,118],[44,79,106],[106,126],[45,62,106,114,122,123],[62,106,122,123],[62,106,123,124,125]],"referencedMap":[[128,1],[129,1],[130,1],[63,2],[64,2],[66,3],[67,4],[68,5],[69,6],[70,7],[71,8],[72,9],[73,10],[74,11],[75,12],[76,12],[77,13],[78,14],[79,15],[80,16],[65,1],[112,1],[81,17],[82,18],[83,19],[113,20],[84,21],[85,22],[86,23],[87,24],[88,25],[89,26],[90,27],[91,28],[92,29],[93,30],[94,31],[95,32],[97,33],[96,34],[98,35],[99,36],[100,37],[101,38],[102,39],[103,40],[104,41],[105,42],[106,43],[107,44],[108,45],[109,46],[110,47],[111,48],[131,1],[132,1],[133,1],[115,1],[114,49],[49,50],[50,51],[48,52],[47,1],[59,53],[58,54],[60,55],[53,56],[52,57],[51,1],[54,58],[55,58],[57,59],[56,58],[46,1],[62,60],[61,61],[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],[118,1],[121,62],[122,63],[117,64],[120,65],[119,66],[44,1],[45,67],[127,68],[124,69],[125,70],[126,71],[123,1],[116,1]],"exportedModulesMap":[[128,1],[129,1],[130,1],[63,2],[64,2],[66,3],[67,4],[68,5],[69,6],[70,7],[71,8],[72,9],[73,10],[74,11],[75,12],[76,12],[77,13],[78,14],[79,15],[80,16],[65,1],[112,1],[81,17],[82,18],[83,19],[113,20],[84,21],[85,22],[86,23],[87,24],[88,25],[89,26],[90,27],[91,28],[92,29],[93,30],[94,31],[95,32],[97,33],[96,34],[98,35],[99,36],[100,37],[101,38],[102,39],[103,40],[104,41],[105,42],[106,43],[107,44],[108,45],[109,46],[110,47],[111,48],[131,1],[132,1],[133,1],[115,1],[114,49],[49,50],[50,51],[48,52],[47,1],[59,53],[58,54],[60,55],[53,56],[52,57],[51,1],[54,58],[55,58],[57,59],[56,58],[46,1],[62,60],[61,61],[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],[118,1],[121,62],[122,63],[117,64],[120,65],[119,66],[44,1],[45,67],[127,68],[124,69],[125,70],[126,71],[123,1],[116,1]],"semanticDiagnosticsPerFile":[128,129,130,63,64,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,65,112,81,82,83,113,84,85,86,87,88,89,90,91,92,93,94,95,97,96,98,99,100,101,102,103,104,105,106,107,108,109,110,111,131,132,133,115,114,49,50,48,47,59,58,60,53,52,51,54,55,57,56,46,62,61,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,118,121,122,117,120,119,44,45,127,124,125,126,123,116]},"version":"4.6.2"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quickbundle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"quickbundle": "bin/index.js"
|
|
6
6
|
},
|
|
@@ -19,35 +19,37 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"main": "bin/index.js",
|
|
21
21
|
"scripts": {
|
|
22
|
-
"prepublishOnly": "yarn lint",
|
|
22
|
+
"prepublishOnly": "yarn lint && yarn build",
|
|
23
23
|
"prestart": "yarn build",
|
|
24
24
|
"start": "bin/index.js",
|
|
25
25
|
"clean": "rm -rf bin",
|
|
26
26
|
"build": "tsc && chmod +x bin/index.js",
|
|
27
27
|
"watch": "tsc -w",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
28
|
+
"release": "semantic-release",
|
|
29
|
+
"verify": "yarn lint & tsc --noEmit",
|
|
30
|
+
"fix": "yarn lint --fix",
|
|
31
|
+
"lint": "eslint . --ignore-path .gitignore",
|
|
32
|
+
"format": "prettier . --ignore-path .gitignore --ignore-path .prettierignore --write"
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {
|
|
33
|
-
"esbuild": "0.
|
|
35
|
+
"esbuild": "0.14.25",
|
|
34
36
|
"gzip-size": "6.0.0",
|
|
35
|
-
"termost": "0.
|
|
37
|
+
"termost": "0.4.1"
|
|
36
38
|
},
|
|
37
39
|
"devDependencies": {
|
|
38
|
-
"@adbayb/eslint-config": "0.
|
|
39
|
-
"@adbayb/prettier-config": "0.
|
|
40
|
-
"@adbayb/ts-config": "0.
|
|
41
|
-
"@commitlint/cli": "
|
|
42
|
-
"@commitlint/config-conventional": "
|
|
40
|
+
"@adbayb/eslint-config": "0.10.0",
|
|
41
|
+
"@adbayb/prettier-config": "0.10.0",
|
|
42
|
+
"@adbayb/ts-config": "0.10.0",
|
|
43
|
+
"@commitlint/cli": "16.2.1",
|
|
44
|
+
"@commitlint/config-conventional": "16.2.1",
|
|
43
45
|
"@semantic-release/git": "10.0.1",
|
|
44
|
-
"@types/node": "
|
|
45
|
-
"eslint": "
|
|
46
|
+
"@types/node": "17.0.21",
|
|
47
|
+
"eslint": "8.11.0",
|
|
46
48
|
"husky": "4.3.8",
|
|
47
|
-
"lint-staged": "12.
|
|
48
|
-
"prettier": "2.
|
|
49
|
-
"semantic-release": "
|
|
50
|
-
"typescript": "4.
|
|
49
|
+
"lint-staged": "12.3.5",
|
|
50
|
+
"prettier": "2.5.1",
|
|
51
|
+
"semantic-release": "19.0.2",
|
|
52
|
+
"typescript": "4.6.2"
|
|
51
53
|
},
|
|
52
54
|
"commitlint": {
|
|
53
55
|
"extends": [
|
package/bin/test.d.ts
DELETED
package/bin/test.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.App = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const App = (_) => {
|
|
7
|
-
const [counter, setCounter] = react_1.useState(0);
|
|
8
|
-
return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [jsx_runtime_1.jsx("button", Object.assign({ onClick: () => setCounter(counter + 1) }, { children: "Increment" }), void 0), jsx_runtime_1.jsx("div", { children: counter }, void 0)] }, void 0));
|
|
9
|
-
};
|
|
10
|
-
exports.App = App;
|