quickbundle 0.6.0 → 0.7.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 CHANGED
@@ -8,17 +8,14 @@
8
8
 
9
9
  ## ✨ Features
10
10
 
11
- Quickbundle allows you to bundle a library with ease:
11
+ Quickbundle allows you to bundle a library in a **quick**, **fast** and **easy** way:
12
12
 
13
- - Fast build thanks to [ESBuild bundler](https://github.com/evanw/esbuild)
14
- - `package.json` as a first-class citizen to define your project build configurations
15
- - `CJS` & `ESM` output format support
16
- - Browser & Node.JS platform target support
17
- - Peer dependencies support (excluded automatically from the build output)
18
- - Quick development build support with a watch mode
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 quickbundles
28
+ npm install quickbundle
32
29
  # Yarn
33
- yarn add quickbundles
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 bundle output
43
- "module": "./dist/lib.cjs.js", // ESM bundle output
44
- "types": "./dist/lib.d.ts", // Typing output (not yet supported: coming soon...)
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
- "prod": "quickbundle build", // Production mode (optimized bundles)
48
- "dev": "microbundle watch" // Development mode (watch mode on each file change)
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quickbundle",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "bin": {
5
5
  "quickbundle": "bin/index.js"
6
6
  },
@@ -25,29 +25,31 @@
25
25
  "clean": "rm -rf bin",
26
26
  "build": "tsc && chmod +x bin/index.js",
27
27
  "watch": "tsc -w",
28
- "format": "prettier . --ignore-path .gitignore --write",
29
- "lint": "eslint . --ignore-path .gitignore --fix",
30
- "release": "semantic-release"
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.13.15",
35
+ "esbuild": "0.14.25",
34
36
  "gzip-size": "6.0.0",
35
- "termost": "0.3.0"
37
+ "termost": "0.4.1"
36
38
  },
37
39
  "devDependencies": {
38
- "@adbayb/eslint-config": "0.7.0",
39
- "@adbayb/prettier-config": "0.7.0",
40
- "@adbayb/ts-config": "0.7.0",
41
- "@commitlint/cli": "15.0.0",
42
- "@commitlint/config-conventional": "15.0.0",
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": "16.11.9",
45
- "eslint": "7.32.0",
46
+ "@types/node": "17.0.21",
47
+ "eslint": "8.11.0",
46
48
  "husky": "4.3.8",
47
- "lint-staged": "12.1.2",
48
- "prettier": "2.4.1",
49
- "semantic-release": "18.0.0",
50
- "typescript": "4.5.2"
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": [
@@ -1,9 +0,0 @@
1
- import { ModuleFormat } from "../types";
2
- import { Metadata } from "./metadata";
3
- declare type BundlerOptions = {
4
- isProduction: boolean;
5
- isWatchMode: boolean;
6
- onWatch: (error: Error | null) => void;
7
- };
8
- export declare const createBundler: (metadata: Metadata, { isProduction, isWatchMode, onWatch, }: Partial<BundlerOptions>) => Promise<(format: ModuleFormat) => Promise<string>>;
9
- export {};
@@ -1,74 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.createBundler = void 0;
16
- const path_1 = __importDefault(require("path"));
17
- const esbuild_1 = require("esbuild");
18
- const termost_1 = require("termost");
19
- const constants_1 = require("../constants");
20
- const plugins_1 = require("./plugins");
21
- const typescript_1 = require("./typescript");
22
- const createBundler = (metadata, { isProduction = false, isWatchMode = false, onWatch, }) => __awaiter(void 0, void 0, void 0, function* () {
23
- const tsOptions = yield (0, typescript_1.getTypeScriptOptions)();
24
- const generateTyping = () => __awaiter(void 0, void 0, void 0, function* () {
25
- const { types: typingFile } = metadata;
26
- if (!tsOptions || !typingFile)
27
- return;
28
- try {
29
- const typingDir = path_1.default.dirname(typingFile);
30
- yield termost_1.helpers.exec(`tsc --declaration --emitDeclarationOnly --incremental --outDir ${typingDir}`, { cwd: constants_1.CWD });
31
- }
32
- catch (error) {
33
- throw new Error(`An error occurred while generating typings: ${error}`);
34
- }
35
- });
36
- return (format) => __awaiter(void 0, void 0, void 0, function* () {
37
- const outfile = metadata.destination[format];
38
- if (!outfile) {
39
- return Promise.reject("Unknown `destination` for the given `format`");
40
- }
41
- yield (0, esbuild_1.build)({
42
- absWorkingDir: constants_1.CWD,
43
- bundle: Boolean(metadata.externalDependencies),
44
- define: {
45
- "process.env.NODE_ENV": isProduction
46
- ? '"production"'
47
- : '"development"',
48
- },
49
- entryPoints: [metadata.source],
50
- external: metadata.externalDependencies,
51
- format,
52
- metafile: true,
53
- minify: isProduction,
54
- outfile,
55
- plugins: [(0, plugins_1.jsxPlugin)(metadata.allDependencies, tsOptions)],
56
- platform: metadata.platform,
57
- sourcemap: true,
58
- target: (tsOptions === null || tsOptions === void 0 ? void 0 : tsOptions.target) || "esnext",
59
- watch: isWatchMode && {
60
- onRebuild(error) {
61
- if (typeof onWatch === "function") {
62
- onWatch(error);
63
- }
64
- if (!error) {
65
- generateTyping();
66
- }
67
- },
68
- },
69
- });
70
- generateTyping();
71
- return outfile;
72
- });
73
- });
74
- exports.createBundler = createBundler;
@@ -1,3 +0,0 @@
1
- export { createBundler } from "./bundler";
2
- export { getMetadata } from "./metadata";
3
- export type { Metadata } from "./metadata";
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getMetadata = exports.createBundler = void 0;
4
- var bundler_1 = require("./bundler");
5
- Object.defineProperty(exports, "createBundler", { enumerable: true, get: function () { return bundler_1.createBundler; } });
6
- var metadata_1 = require("./metadata");
7
- Object.defineProperty(exports, "getMetadata", { enumerable: true, get: function () { return metadata_1.getMetadata; } });
@@ -1,12 +0,0 @@
1
- export declare type Metadata = ReturnType<typeof getMetadata>;
2
- export declare const getMetadata: () => {
3
- readonly source: string;
4
- readonly types: string | undefined;
5
- readonly destination: {
6
- readonly esm?: string | undefined;
7
- readonly cjs: string;
8
- };
9
- readonly allDependencies: string[];
10
- readonly externalDependencies: string[];
11
- readonly platform: "node" | "browser";
12
- };
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getMetadata = void 0;
4
- const path_1 = require("path");
5
- const constants_1 = require("../constants");
6
- const helpers_1 = require("../helpers");
7
- const getMetadata = () => {
8
- const { dependencies = {}, devDependencies = {}, peerDependencies = {}, main, module, platform = "browser", source, types, } = require((0, path_1.resolve)(constants_1.CWD, "package.json"));
9
- (0, helpers_1.assert)(main, "A `main` field is required in `package.json`. Did you forget to add it?");
10
- (0, helpers_1.assert)(source, "A `source` field is required in `package.json`. Did you forget to add it?");
11
- (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
- return {
19
- source,
20
- types,
21
- destination: Object.assign({ cjs: main }, (module && { esm: module })),
22
- allDependencies,
23
- externalDependencies,
24
- platform,
25
- };
26
- };
27
- exports.getMetadata = getMetadata;
@@ -1,3 +0,0 @@
1
- import type { Plugin } from "esbuild";
2
- import type { TypeScriptConfiguration } from "./typescript";
3
- export declare const jsxPlugin: (dependencies: Array<string>, tsOptions: TypeScriptConfiguration | null) => Plugin;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.jsxPlugin = void 0;
13
- const helpers_1 = require("../helpers");
14
- const jsxPlugin = (dependencies, tsOptions) => ({
15
- name: "jsx",
16
- setup(build) {
17
- build.onLoad({ filter: /\.(j|t)sx$/ }, ({ path }) => __awaiter(this, void 0, void 0, function* () {
18
- const module = ["preact", "react"].find((module) => dependencies.includes(module));
19
- if (!module ||
20
- !(0, helpers_1.resolveModulePath)(`${module}/jsx-runtime`) ||
21
- (tsOptions === null || tsOptions === void 0 ? void 0 : tsOptions.hasJsxRuntime) === false) {
22
- return;
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
- },
31
- });
32
- exports.jsxPlugin = jsxPlugin;
@@ -1,5 +0,0 @@
1
- export declare type TypeScriptConfiguration = {
2
- target?: string;
3
- hasJsxRuntime?: boolean;
4
- };
5
- export declare const getTypeScriptOptions: () => Promise<TypeScriptConfiguration | null>;
@@ -1,56 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
- return new (P || (P = Promise))(function (resolve, reject) {
24
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
- step((generator = generator.apply(thisArg, _arguments || [])).next());
28
- });
29
- };
30
- Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.getTypeScriptOptions = void 0;
32
- const path_1 = require("path");
33
- const constants_1 = require("../constants");
34
- const getTypeScriptOptions = () => __awaiter(void 0, void 0, void 0, function* () {
35
- var _a;
36
- try {
37
- 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;
39
- const esbuildTarget = !target ||
40
- [ts.ScriptTarget.ESNext, ts.ScriptTarget.Latest].includes(target)
41
- ? "esnext"
42
- : (_a = ts.ScriptTarget[target]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
43
- return {
44
- target: esbuildTarget,
45
- hasJsxRuntime: jsx !== undefined &&
46
- [
47
- ts.JsxEmit["ReactJSX"],
48
- ts.JsxEmit["ReactJSXDev"],
49
- ].includes(jsx),
50
- };
51
- }
52
- catch (error) {
53
- return null;
54
- }
55
- });
56
- exports.getTypeScriptOptions = getTypeScriptOptions;
@@ -1 +0,0 @@
1
- export declare const CWD: string;
package/bin/constants.js DELETED
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CWD = void 0;
4
- exports.CWD = process.cwd();
package/bin/helpers.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /// <reference types="node" />
2
- import { readFile as fsReadFile } from "fs";
3
- export declare const readFile: typeof fsReadFile.__promisify__;
4
- export declare const resolveModulePath: (path: string) => boolean;
5
- export declare function assert(condition: unknown, message: string): asserts condition;
package/bin/helpers.js DELETED
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assert = exports.resolveModulePath = exports.readFile = void 0;
4
- const util_1 = require("util");
5
- const fs_1 = require("fs");
6
- const constants_1 = require("./constants");
7
- exports.readFile = (0, util_1.promisify)(fs_1.readFile);
8
- const resolveModulePath = (path) => {
9
- try {
10
- return Boolean(require.resolve(path, { paths: [constants_1.CWD] }));
11
- }
12
- catch (error) {
13
- return false;
14
- }
15
- };
16
- exports.resolveModulePath = resolveModulePath;
17
- function assert(condition, message) {
18
- if (!condition) {
19
- throw new Error(message);
20
- }
21
- }
22
- exports.assert = assert;
package/bin/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import "./program";
package/bin/index.js DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- require("./program");
@@ -1,13 +0,0 @@
1
- import { Termost } from "termost";
2
- import { Metadata } from "../../bundler";
3
- interface BuildContext {
4
- metadata: Metadata;
5
- sizes: Array<{
6
- filename: string;
7
- raw: number;
8
- gzip: number;
9
- }>;
10
- outfiles: Array<string>;
11
- }
12
- export declare const createBuildCommand: (program: Termost<BuildContext>) => void;
13
- export {};
@@ -1,87 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.createBuildCommand = void 0;
16
- const gzip_size_1 = __importDefault(require("gzip-size"));
17
- const bundler_1 = require("../../bundler");
18
- const helpers_1 = require("../../helpers");
19
- const createBuildCommand = (program) => {
20
- program
21
- .command({
22
- name: "build",
23
- description: "Build the source code in production mode",
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
- },
33
- })
34
- .task({
35
- key: "outfiles",
36
- label: ({ values }) => `Transpile to ${Object.keys(values.metadata.destination).join(", ")} bundles 👷‍♂️`,
37
- handler({ values }) {
38
- return __awaiter(this, void 0, void 0, function* () {
39
- const targets = Object.keys(values.metadata.destination);
40
- const bundle = yield (0, bundler_1.createBundler)(values.metadata, {
41
- isProduction: true,
42
- });
43
- return yield Promise.all(targets.map((target) => bundle(target)));
44
- });
45
- },
46
- })
47
- .task({
48
- key: "sizes",
49
- label: "Compute size 📐",
50
- handler({ values }) {
51
- return __awaiter(this, void 0, void 0, function* () {
52
- return yield calculateBundleSize(values.outfiles);
53
- });
54
- },
55
- })
56
- .message({
57
- handler({ values }, helpers) {
58
- const padding = values.sizes
59
- .map((item) => item.raw)
60
- .reduce((pad, currentRawSize) => {
61
- return Math.max(pad, String(currentRawSize).length);
62
- }, 0) + 2;
63
- values.sizes.forEach((item) => {
64
- helpers.print([
65
- `${item.raw.toString().padStart(padding)} B raw`,
66
- `${item.gzip.toString().padStart(padding)} B gz`,
67
- ], {
68
- label: item.filename,
69
- type: "information",
70
- });
71
- });
72
- },
73
- });
74
- };
75
- exports.createBuildCommand = createBuildCommand;
76
- const calculateBundleSize = (filenames) => __awaiter(void 0, void 0, void 0, function* () {
77
- const calculateFileSize = (filename) => __awaiter(void 0, void 0, void 0, function* () {
78
- const content = yield (0, helpers_1.readFile)(filename);
79
- const gzSize = yield (0, gzip_size_1.default)(content);
80
- return {
81
- filename,
82
- raw: content.byteLength,
83
- gzip: gzSize,
84
- };
85
- });
86
- return yield Promise.all(filenames.map((filename) => calculateFileSize(filename)));
87
- });
@@ -1,9 +0,0 @@
1
- import { Termost } from "termost";
2
- interface WatchContext {
3
- callbacks: {
4
- onError: () => void;
5
- onSuccess: () => void;
6
- };
7
- }
8
- export declare const createWatchCommand: (program: Termost<WatchContext>) => void;
9
- export {};
@@ -1,56 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createWatchCommand = void 0;
13
- const bundler_1 = require("../../bundler");
14
- const createWatchCommand = (program) => {
15
- program
16
- .command({
17
- name: "watch",
18
- description: "Watch and rebuild on any code change",
19
- })
20
- .task({
21
- key: "callbacks",
22
- label: "Setup watcher",
23
- handler() {
24
- return __awaiter(this, void 0, void 0, function* () {
25
- const callbacks = { onError() { }, onSuccess() { } };
26
- const bundle = yield (0, bundler_1.createBundler)((0, bundler_1.getMetadata)(), {
27
- isProduction: false,
28
- isWatchMode: true,
29
- onWatch(error) {
30
- if (error) {
31
- callbacks.onError();
32
- throw error;
33
- }
34
- else {
35
- callbacks.onSuccess();
36
- }
37
- },
38
- });
39
- bundle("esm");
40
- return callbacks;
41
- });
42
- },
43
- })
44
- .message({
45
- handler({ values }, helpers) {
46
- const onNotify = (type) => {
47
- console.clear();
48
- helpers.print(`Last update at ${new Date().toLocaleTimeString()} 🔎\n`, { type });
49
- };
50
- values.callbacks.onSuccess = () => onNotify("success");
51
- values.callbacks.onError = () => onNotify("error");
52
- values.callbacks.onSuccess();
53
- },
54
- });
55
- };
56
- exports.createWatchCommand = createWatchCommand;
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const termost_1 = require("termost");
4
- const build_1 = require("./commands/build");
5
- const watch_1 = require("./commands/watch");
6
- const createProgram = (...commandBuilders) => {
7
- const program = (0, termost_1.termost)("The zero-configuration bundler powered by ESBuild");
8
- for (const commandBuilder of commandBuilders) {
9
- commandBuilder(program);
10
- }
11
- };
12
- createProgram(build_1.createBuildCommand, watch_1.createWatchCommand);
package/bin/test.d.ts DELETED
@@ -1,3 +0,0 @@
1
- declare type AppProps = {};
2
- export declare const App: (_: AppProps) => any;
3
- export {};
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;
@@ -1 +0,0 @@
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","5d271b7173002fcfa1e5dfd9062e941b88a056ad1c912d6a2879485961ecb792","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",{"version":"02fca0563905474eb3f8059e5446aff05777dc1d4540b95e4132009a2c7f023a","signature":"ed27a092e04aba86a285d4734288e663a01ac1c5c999d6aecee59c3d79710cb3"},"bbfbfa714a8f9fdf10e9483b4abd82ccb546fc0fc069ad80d0a254fa40930e98","3842a1a36add589aa960effc470a944903c0ec8976296fc24a5232b75717e590",{"version":"d9e4ab9d4f4cf6df92e330d36feb26ab57e6903958e462262d5824b779f87ff1","signature":"9763163fd4a8828f755a96cfe5df9fed51d68022aa9df93118f7e648d0677ab6"},{"version":"bc7f56a6f0e158dd53f7a7050dba360f422071865414d74512e7cdb149ba5b64","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],[51,61,106],[46,60,106],[44,62,88,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],[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"}
package/bin/types.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare type ModuleFormat = "esm" | "cjs";
package/bin/types.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });