@normed/bundle 2.1.1 → 3.0.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 +8 -0
- package/bundles/bin/cli.js +54932 -54669
- package/bundles/bin/cli.js.map +7 -0
- package/bundles/es-build.plugins.d.ts +1 -1
- package/bundles/index.js +54932 -54669
- package/bundles/index.js.map +7 -0
- package/bundles/log.d.ts +2 -2
- package/bundles/types.d.ts +7 -7
- package/bundles/utils.d.ts +3 -3
- package/package.json +13 -13
package/bundles/log.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type LogFunction = (...message: any[]) => void;
|
|
2
|
+
type LogLevel = "debug" | "verbose" | "info" | "warn" | "error" | "critical";
|
|
3
3
|
export declare function setMinLogLevel(level: number | LogLevel): void;
|
|
4
4
|
declare const logFunctions: {
|
|
5
5
|
[level in LogLevel]: LogFunction;
|
package/bundles/types.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Chalk } from "chalk";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type Platform = "web" | "server" | "library";
|
|
3
|
+
export type Builder = {
|
|
4
4
|
inExt: (string | RegExp)[];
|
|
5
5
|
outExt: string | null;
|
|
6
6
|
build(entrypoints: Entrypoint[], extra: BuildConfig["extra"]): Promise<void>;
|
|
7
7
|
name: string;
|
|
8
8
|
color: Chalk;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type Entrypoint = {
|
|
11
11
|
infile: string;
|
|
12
12
|
outfile: string;
|
|
13
13
|
inbase: string;
|
|
@@ -15,7 +15,7 @@ export declare type Entrypoint = {
|
|
|
15
15
|
builder: Builder;
|
|
16
16
|
platform: Platform;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type BuildConfig = {
|
|
19
19
|
dir: {
|
|
20
20
|
in: string;
|
|
21
21
|
out: string;
|
|
@@ -31,7 +31,7 @@ export declare type BuildConfig = {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type APIOptions_Bundle = {
|
|
35
35
|
builders?: Builder[];
|
|
36
36
|
outdir?: string;
|
|
37
37
|
indir?: string;
|
|
@@ -41,8 +41,8 @@ export declare type APIOptions_Bundle = {
|
|
|
41
41
|
tscExternal?: string[];
|
|
42
42
|
entrypoints?: string[];
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type APIOptions_Clean = {
|
|
45
45
|
analyse?: boolean;
|
|
46
46
|
outdir?: string;
|
|
47
47
|
};
|
|
48
|
-
export
|
|
48
|
+
export type APIOptions = APIOptions_Bundle & APIOptions_Clean;
|
package/bundles/utils.d.ts
CHANGED
|
@@ -20,10 +20,10 @@ export declare const refinePackageJson: import("@normed/refinements").Refinement
|
|
|
20
20
|
} | undefined;
|
|
21
21
|
} | undefined;
|
|
22
22
|
dependencies: {
|
|
23
|
-
[x: string]: string;
|
|
23
|
+
[x: string]: string | undefined;
|
|
24
24
|
} | undefined;
|
|
25
25
|
}>;
|
|
26
|
-
export
|
|
26
|
+
export type PackageJson = RefinementFunctionType<typeof refinePackageJson>;
|
|
27
27
|
export declare const canRefinePackageJson: {
|
|
28
28
|
getLastError: () => import("@normed/refinements").RefinementError;
|
|
29
29
|
} & ((path: import("@normed/refinements").Path, v: unknown) => v is {
|
|
@@ -38,7 +38,7 @@ export declare const canRefinePackageJson: {
|
|
|
38
38
|
} | undefined;
|
|
39
39
|
} | undefined;
|
|
40
40
|
dependencies: {
|
|
41
|
-
[x: string]: string;
|
|
41
|
+
[x: string]: string | undefined;
|
|
42
42
|
} | undefined;
|
|
43
43
|
});
|
|
44
44
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@normed/bundle",
|
|
3
3
|
"author": "Normal Gaussian <normed.bundle@normal-gaussian.com>",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"bin": "bundles/bin/cli.js",
|
|
6
6
|
"main": "bundles/index.js",
|
|
7
7
|
"types": "dist",
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@normed/json-types": "^1.0.8",
|
|
31
|
-
"@normed/refinements": "^0.
|
|
31
|
+
"@normed/refinements": "^0.9.0",
|
|
32
32
|
"@types/fs-extra": "^9.0.13",
|
|
33
|
-
"@types/jest": "^
|
|
34
|
-
"@types/node": "^
|
|
33
|
+
"@types/jest": "^29.2.3",
|
|
34
|
+
"@types/node": "^18.11.10",
|
|
35
35
|
"@types/pug": "^2.0.6",
|
|
36
|
-
"@yarnpkg/pnpify": "^
|
|
36
|
+
"@yarnpkg/pnpify": "^4.0.0-rc.32",
|
|
37
37
|
"chalk": "^4.1.2",
|
|
38
38
|
"filesystem-traverse": "^2.0.2",
|
|
39
|
-
"fs-extra": "^
|
|
40
|
-
"jest": "
|
|
41
|
-
"jest-junit": "^
|
|
42
|
-
"less": "^4.1.
|
|
39
|
+
"fs-extra": "^11.1.0",
|
|
40
|
+
"jest": "29.3.1",
|
|
41
|
+
"jest-junit": "^15.0.0",
|
|
42
|
+
"less": "^4.1.3",
|
|
43
43
|
"pug": "^3.0.2",
|
|
44
|
-
"ts-jest": "^
|
|
44
|
+
"ts-jest": "^29.0.3"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"bundles/**/*"
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@yarnpkg/esbuild-plugin-pnp": "^
|
|
54
|
-
"esbuild": "^0.
|
|
55
|
-
"typescript": "^4.
|
|
53
|
+
"@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.15",
|
|
54
|
+
"esbuild": "^0.15.17",
|
|
55
|
+
"typescript": "^4.9.3"
|
|
56
56
|
}
|
|
57
57
|
}
|