@ms-cloudpack/bundler 0.26.15 → 0.26.17
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/lib/allBundlers.d.ts +14 -1
- package/lib/allBundlers.d.ts.map +1 -1
- package/lib/allBundlers.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +18 -18
package/lib/allBundlers.d.ts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OriCapabilityConfig } from '@ms-cloudpack/bundler-ori';
|
|
2
|
+
import type { RollupCapabilityConfig } from '@ms-cloudpack/bundler-rollup';
|
|
3
|
+
import type { RspackCapabilityConfig } from '@ms-cloudpack/bundler-rspack';
|
|
4
|
+
import type { WebpackCapabilityConfig } from '@ms-cloudpack/bundler-webpack';
|
|
5
|
+
import type { Bundler, BaseBundlerCapability } from '@ms-cloudpack/common-types';
|
|
2
6
|
export declare const allBundlers: Record<string, () => Promise<Bundler>>;
|
|
3
7
|
/** Names of all the built-in bundlers. */
|
|
4
8
|
export declare const bundlerNames: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Custom capability with typed options for all bundlers currently supported by Cloudpack.
|
|
11
|
+
*/
|
|
12
|
+
export type BundlerCapability<TOptions extends object> = BaseBundlerCapability<TOptions, 'ori' | 'rollup' | 'rspack' | 'webpack', {
|
|
13
|
+
ori: OriCapabilityConfig;
|
|
14
|
+
rollup: RollupCapabilityConfig;
|
|
15
|
+
rspack: RspackCapabilityConfig;
|
|
16
|
+
webpack: WebpackCapabilityConfig;
|
|
17
|
+
}>;
|
|
5
18
|
//# sourceMappingURL=allBundlers.d.ts.map
|
package/lib/allBundlers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allBundlers.d.ts","sourceRoot":"","sources":["../src/allBundlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"allBundlers.d.ts","sourceRoot":"","sources":["../src/allBundlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEjF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAK9D,CAAC;AAEF,0CAA0C;AAC1C,eAAO,MAAM,YAAY,UAA2B,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,MAAM,IAAI,qBAAqB,CAC5E,QAAQ,EACR,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,EACvC;IACE,GAAG,EAAE,mBAAmB,CAAC;IACzB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,MAAM,EAAE,sBAAsB,CAAC;IAC/B,OAAO,EAAE,uBAAuB,CAAC;CAClC,CACF,CAAC"}
|
package/lib/allBundlers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allBundlers.js","sourceRoot":"","sources":["../src/allBundlers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"allBundlers.js","sourceRoot":"","sources":["../src/allBundlers.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,WAAW,GAA2C;IACjE,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,8BAA8B,CAAC,CAAC,CAAC,OAAO;IAC1E,GAAG,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC,OAAO;IACpE,OAAO,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,+BAA+B,CAAC,CAAC,CAAC,OAAO;IAC5E,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,8BAA8B,CAAC,CAAC,CAAC,OAAO;CAC3E,CAAC;AAEF,0CAA0C;AAC1C,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import type { OriCapabilityConfig } from '@ms-cloudpack/bundler-ori';\nimport type { RollupCapabilityConfig } from '@ms-cloudpack/bundler-rollup';\nimport type { RspackCapabilityConfig } from '@ms-cloudpack/bundler-rspack';\nimport type { WebpackCapabilityConfig } from '@ms-cloudpack/bundler-webpack';\nimport type { Bundler, BaseBundlerCapability } from '@ms-cloudpack/common-types';\n\nexport const allBundlers: Record<string, () => Promise<Bundler>> = {\n rollup: async () => (await import('@ms-cloudpack/bundler-rollup')).default,\n ori: async () => (await import('@ms-cloudpack/bundler-ori')).default,\n webpack: async () => (await import('@ms-cloudpack/bundler-webpack')).default,\n rspack: async () => (await import('@ms-cloudpack/bundler-rspack')).default,\n};\n\n/** Names of all the built-in bundlers. */\nexport const bundlerNames = Object.keys(allBundlers);\n\n/**\n * Custom capability with typed options for all bundlers currently supported by Cloudpack.\n */\nexport type BundlerCapability<TOptions extends object> = BaseBundlerCapability<\n TOptions,\n 'ori' | 'rollup' | 'rspack' | 'webpack',\n {\n ori: OriCapabilityConfig;\n rollup: RollupCapabilityConfig;\n rspack: RspackCapabilityConfig;\n webpack: WebpackCapabilityConfig;\n }\n>;\n"]}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bundlerNames } from './allBundlers.js';
|
|
1
|
+
export { bundlerNames, type BundlerCapability } from './allBundlers.js';
|
|
2
2
|
export { bundle } from './bundle.js';
|
|
3
3
|
export { isValidBundleEntry } from './isValidBundleEntry.js';
|
|
4
4
|
export { getEntriesMapFromPackage } from './getEntriesMapFromPackage.js';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA0B,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC","sourcesContent":["export { bundlerNames, type BundlerCapability } from './allBundlers.js';\nexport { bundle } from './bundle.js';\nexport { isValidBundleEntry } from './isValidBundleEntry.js';\nexport { getEntriesMapFromPackage } from './getEntriesMapFromPackage.js';\nexport { getExternalsFromPackage } from './getExternalsFromPackage.js';\nexport { toNormalizedEntryKey } from './toNormalizedEntryKey.js';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/bundler",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.17",
|
|
4
4
|
"description": "An abstraction to bundle source code.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -13,23 +13,6 @@
|
|
|
13
13
|
"import": "./lib/index.js"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"@ms-cloudpack/bundler-ori": "^0.3.8",
|
|
18
|
-
"@ms-cloudpack/bundler-rollup": "^0.5.3",
|
|
19
|
-
"@ms-cloudpack/bundler-rspack": "^0.4.3",
|
|
20
|
-
"@ms-cloudpack/bundler-webpack": "^0.4.3",
|
|
21
|
-
"@ms-cloudpack/common-types": "^0.32.2",
|
|
22
|
-
"@ms-cloudpack/config": "^0.38.18",
|
|
23
|
-
"@ms-cloudpack/json-utilities": "^0.1.11",
|
|
24
|
-
"@ms-cloudpack/package-utilities": "^13.2.2",
|
|
25
|
-
"@ms-cloudpack/path-string-parsing": "^1.2.7",
|
|
26
|
-
"@ms-cloudpack/path-utilities": "^3.1.34"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|
|
30
|
-
"@ms-cloudpack/scripts": "^0.0.1",
|
|
31
|
-
"@ms-cloudpack/test-utilities": "^0.5.0"
|
|
32
|
-
},
|
|
33
16
|
"scripts": {
|
|
34
17
|
"api": "cloudpack-scripts api",
|
|
35
18
|
"build:watch": "cloudpack-scripts build-watch",
|
|
@@ -40,6 +23,23 @@
|
|
|
40
23
|
"test:watch": "cloudpack-scripts test-watch",
|
|
41
24
|
"test": "cloudpack-scripts test"
|
|
42
25
|
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@ms-cloudpack/bundler-ori": "^0.3.9",
|
|
28
|
+
"@ms-cloudpack/bundler-rollup": "^0.5.5",
|
|
29
|
+
"@ms-cloudpack/bundler-rspack": "^0.4.5",
|
|
30
|
+
"@ms-cloudpack/bundler-webpack": "^0.4.5",
|
|
31
|
+
"@ms-cloudpack/common-types": "^0.33.0",
|
|
32
|
+
"@ms-cloudpack/config": "^0.38.19",
|
|
33
|
+
"@ms-cloudpack/json-utilities": "^0.1.11",
|
|
34
|
+
"@ms-cloudpack/package-utilities": "^13.2.3",
|
|
35
|
+
"@ms-cloudpack/path-string-parsing": "^1.2.7",
|
|
36
|
+
"@ms-cloudpack/path-utilities": "^3.2.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|
|
40
|
+
"@ms-cloudpack/scripts": "^0.0.1",
|
|
41
|
+
"@ms-cloudpack/test-utilities": "^0.5.0"
|
|
42
|
+
},
|
|
43
43
|
"files": [
|
|
44
44
|
"lib/**/!(*.test.*)"
|
|
45
45
|
]
|