@ms-cloudpack/bundler 0.4.9 → 0.5.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/CHANGELOG.json +40 -1
- package/CHANGELOG.md +14 -2
- package/lib/bundlePackage.d.ts +2 -0
- package/lib/bundlePackage.js.map +1 -1
- package/lib/getBundlerOptions.js +2 -2
- package/lib/getBundlerOptions.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +5 -5
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,46 @@
|
|
|
2
2
|
"name": "@ms-cloudpack/bundler",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Wed,
|
|
5
|
+
"date": "Wed, 12 Oct 2022 08:10:22 GMT",
|
|
6
|
+
"tag": "@ms-cloudpack/bundler_v0.5.0",
|
|
7
|
+
"version": "0.5.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "dzearing@microsoft.com",
|
|
12
|
+
"package": "@ms-cloudpack/bundler",
|
|
13
|
+
"commit": "03233b20287555cc8994203f05be01cb8a3fb225",
|
|
14
|
+
"comment": "Allowing PackageDefinitions to be passed in."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@ms-cloudpack/bundler",
|
|
19
|
+
"comment": "Bump @ms-cloudpack/bundler-plugin-esbuild to v0.4.0",
|
|
20
|
+
"commit": "03233b20287555cc8994203f05be01cb8a3fb225"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@ms-cloudpack/bundler",
|
|
25
|
+
"comment": "Bump @ms-cloudpack/bundler-plugin-ori to v0.6.0",
|
|
26
|
+
"commit": "03233b20287555cc8994203f05be01cb8a3fb225"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@ms-cloudpack/bundler",
|
|
31
|
+
"comment": "Bump @ms-cloudpack/bundler-plugin-rollup to v0.3.0",
|
|
32
|
+
"commit": "03233b20287555cc8994203f05be01cb8a3fb225"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@ms-cloudpack/bundler",
|
|
37
|
+
"comment": "Bump @ms-cloudpack/package-utilities to v0.15.0",
|
|
38
|
+
"commit": "03233b20287555cc8994203f05be01cb8a3fb225"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"date": "Wed, 05 Oct 2022 19:39:20 GMT",
|
|
6
45
|
"tag": "@ms-cloudpack/bundler_v0.4.9",
|
|
7
46
|
"version": "0.4.9",
|
|
8
47
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
# Change Log - @ms-cloudpack/bundler
|
|
2
2
|
|
|
3
|
-
This log was last generated on Wed,
|
|
3
|
+
This log was last generated on Wed, 12 Oct 2022 08:10:22 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.5.0
|
|
8
|
+
|
|
9
|
+
Wed, 12 Oct 2022 08:10:22 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Allowing PackageDefinitions to be passed in. (dzearing@microsoft.com)
|
|
14
|
+
- Bump @ms-cloudpack/bundler-plugin-esbuild to v0.4.0
|
|
15
|
+
- Bump @ms-cloudpack/bundler-plugin-ori to v0.6.0
|
|
16
|
+
- Bump @ms-cloudpack/bundler-plugin-rollup to v0.3.0
|
|
17
|
+
- Bump @ms-cloudpack/package-utilities to v0.15.0
|
|
18
|
+
|
|
7
19
|
## 0.4.9
|
|
8
20
|
|
|
9
|
-
Wed, 05 Oct 2022 19:39:
|
|
21
|
+
Wed, 05 Oct 2022 19:39:20 GMT
|
|
10
22
|
|
|
11
23
|
### Patches
|
|
12
24
|
|
package/lib/bundlePackage.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { BundlerResult } from '@ms-cloudpack/bundler-types';
|
|
2
2
|
import type { allBundlers } from './allBundlers.js';
|
|
3
|
+
import type { PackageDefinitions } from '@ms-cloudpack/package-utilities';
|
|
3
4
|
export interface BundlePackageOptions {
|
|
4
5
|
packagePath: string;
|
|
5
6
|
outputPath: string;
|
|
7
|
+
packages?: PackageDefinitions;
|
|
6
8
|
force?: boolean;
|
|
7
9
|
outputType?: 'library' | 'app';
|
|
8
10
|
bundlerType?: 'auto' | keyof typeof allBundlers;
|
package/lib/bundlePackage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundlePackage.js","sourceRoot":"","sources":["../src/bundlePackage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"bundlePackage.js","sourceRoot":"","sources":["../src/bundlePackage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAiB3D,MAAM,GAAG,GAAG,CAAC,GAAG,QAAmB,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,QAAQ,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,OAA6B;IAC/D,MAAM,cAAc,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAExD,sCAAsC;IACtC,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,cAAc,CAAC,CAAC;IACpD,IAAI,MAAM,GAA8B,SAAS,CAAC;IAElD,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAEzB,IAAI;QACF,GAAG,CAAC,aAAa,OAAO,CAAC,WAAW,WAAW,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC;QAChE,MAAM,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;KAC/C;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,GAAG;YACP,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,yBAAyB,CAAC,EAAE;iBACnC;aACF;SACF,CAAC;KACH;YAAS;QACR,GAAG,CACD,YAAY,OAAO,CAAC,WAAW,WAAW,OAAO,CAAC,IAAI,MAAM,MAAM,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,cACrF,IAAI,CAAC,GAAG,EAAE,GAAG,KACf,IAAI,CACL,CAAC;KACH;IAED,OAAO;QACL,WAAW,EAAE,OAAO,CAAC,IAAI;QACzB,GAAG,MAAM;KACV,CAAC;AACJ,CAAC"}
|
package/lib/getBundlerOptions.js
CHANGED
|
@@ -22,9 +22,9 @@ function isBundleableEntry(fileName) {
|
|
|
22
22
|
return supportedExtensions.indexOf(path.extname(fileName).toLowerCase()) >= 0;
|
|
23
23
|
}
|
|
24
24
|
export async function getBundlerOptions(options) {
|
|
25
|
-
const entries = (await resolvePackageEntries(options.packagePath)).filter((entry) => isBundleableEntry(entry));
|
|
25
|
+
const entries = (await resolvePackageEntries(options.packagePath, options)).filter((entry) => isBundleableEntry(entry));
|
|
26
26
|
if (Object.keys(entries).length === 0) {
|
|
27
|
-
throw new Error(`Package definition at "${options.packagePath}
|
|
27
|
+
throw new Error(`Package definition at "${options.packagePath}" missing entries.`);
|
|
28
28
|
}
|
|
29
29
|
return {
|
|
30
30
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBundlerOptions.js","sourceRoot":"","sources":["../src/getBundlerOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CA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AAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAC1G,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AAEjD,MAAM,mBAAmB,GAAG,CAAC,GAAG,kBAAkB,EAAE,GAAG,gBAAgB,EAAE,GAAG,cAAc,CAAC,CAAC;AAE5F,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,mBAAmB,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC;AAChF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,OAA6B;IACnE,MAAM,OAAO,GAAG,CAAC,MAAM,qBAAqB,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,KAAa,EAAE,EAAE,CACnG,iBAAiB,CAAC,KAAK,CAAC,CACzB,CAAC;IAEF,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,0BAA0B,OAAO,CAAC,WAAW,oBAAoB,CAAC,CAAC;KACpF;IAED,OAAO;QACL,GAAG,OAAO;QACV,OAAO;KACR,CAAC;AACJ,CAAC"}
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/bundler",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "An abstraction to bundle source code.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ms-cloudpack/bundler-plugin-esbuild": "^0.
|
|
17
|
-
"@ms-cloudpack/bundler-plugin-ori": "^0.
|
|
18
|
-
"@ms-cloudpack/bundler-plugin-rollup": "^0.
|
|
19
|
-
"@ms-cloudpack/package-utilities": "^0.
|
|
16
|
+
"@ms-cloudpack/bundler-plugin-esbuild": "^0.4.0",
|
|
17
|
+
"@ms-cloudpack/bundler-plugin-ori": "^0.6.0",
|
|
18
|
+
"@ms-cloudpack/bundler-plugin-rollup": "^0.3.0",
|
|
19
|
+
"@ms-cloudpack/package-utilities": "^0.15.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@ms-cloudpack/scripts": "*",
|