@ms-cloudpack/bundler 0.23.31 → 0.23.33

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.
@@ -1 +1 @@
1
- {"version":3,"file":"getExternalsFromPackage.d.ts","sourceRoot":"","sources":["../src/getExternalsFromPackage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE1E;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE;IACP,SAAS,EAAE,MAAM,CAAC;CACnB,EACD,OAAO,EAAE;IACP,QAAQ,EAAE,uBAAuB,CAAC;CACnC,GACA,OAAO,CAAC,MAAM,EAAE,CAAC,CAmBnB"}
1
+ {"version":3,"file":"getExternalsFromPackage.d.ts","sourceRoot":"","sources":["../src/getExternalsFromPackage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAG1E;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE;IACP,SAAS,EAAE,MAAM,CAAC;CACnB,EACD,OAAO,EAAE;IACP,QAAQ,EAAE,uBAAuB,CAAC;CACnC,GACA,OAAO,CAAC,MAAM,EAAE,CAAC,CAgBnB"}
@@ -1,3 +1,4 @@
1
+ import { getDependencies } from '@ms-cloudpack/package-utilities';
1
2
  /**
2
3
  * Reads a package definition and derives a flat array of dependencies to externalize for bundling.
3
4
  *
@@ -12,10 +13,7 @@ export async function getExternalsFromPackage(options, context) {
12
13
  const originalDefinition = await packages.get(inputPath, { disableTransforms: true });
13
14
  return Object.keys({
14
15
  // Use mostly original dependencies in case of removals by createPackageSettingsTransform.
15
- ...originalDefinition.dependencies,
16
- ...originalDefinition.devDependencies,
17
- ...originalDefinition.peerDependencies,
18
- ...originalDefinition.optionalDependencies,
16
+ ...getDependencies(originalDefinition, { includeAll: true }),
19
17
  // peerDependenciesMeta names should be redundant with peerDependencies.
20
18
  // But in rare cases (debug@4), it may incorrectly include deps that aren't listed elsewhere...
21
19
  // Include them just in case, since we want to externalize as many things as possible.
@@ -1 +1 @@
1
- {"version":3,"file":"getExternalsFromPackage.js","sourceRoot":"","sources":["../src/getExternalsFromPackage.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,OAEC,EACD,OAEC;IAED,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAC9B,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IAC7B,MAAM,qBAAqB,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC5D,MAAM,kBAAkB,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;IAEtF,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,0FAA0F;QAC1F,GAAG,kBAAkB,CAAC,YAAY;QAClC,GAAG,kBAAkB,CAAC,eAAe;QACrC,GAAG,kBAAkB,CAAC,gBAAgB;QACtC,GAAG,kBAAkB,CAAC,oBAAoB;QAC1C,wEAAwE;QACxE,+FAA+F;QAC/F,sFAAsF;QACtF,GAAG,kBAAkB,CAAC,oBAAoB;QAC1C,iGAAiG;QACjG,GAAG,qBAAqB,CAAC,YAAY;KACtC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import type { PackageDefinitionsCache } from '@ms-cloudpack/common-types';\n\n/**\n * Reads a package definition and derives a flat array of dependencies to externalize for bundling.\n *\n * To reduce the chances of accidentally bundling something that should be external, this includes\n * the names of original dependencies of all types (prior to transforms), as well as any\n * `includedDependencies` from config that were added by `createPackageSettingsTransform`.\n */\nexport async function getExternalsFromPackage(\n options: {\n inputPath: string;\n },\n context: {\n packages: PackageDefinitionsCache;\n },\n): Promise<string[]> {\n const { inputPath } = options;\n const { packages } = context;\n const transformedDefinition = await packages.get(inputPath);\n const originalDefinition = await packages.get(inputPath, { disableTransforms: true });\n\n return Object.keys({\n // Use mostly original dependencies in case of removals by createPackageSettingsTransform.\n ...originalDefinition.dependencies,\n ...originalDefinition.devDependencies,\n ...originalDefinition.peerDependencies,\n ...originalDefinition.optionalDependencies,\n // peerDependenciesMeta names should be redundant with peerDependencies.\n // But in rare cases (debug@4), it may incorrectly include deps that aren't listed elsewhere...\n // Include them just in case, since we want to externalize as many things as possible.\n ...originalDefinition.peerDependenciesMeta,\n // Also use the transformed deps in case any includedDependencies weren't listed in orignal deps.\n ...transformedDefinition.dependencies,\n });\n}\n"]}
1
+ {"version":3,"file":"getExternalsFromPackage.js","sourceRoot":"","sources":["../src/getExternalsFromPackage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,OAEC,EACD,OAEC;IAED,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAC9B,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IAC7B,MAAM,qBAAqB,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC5D,MAAM,kBAAkB,GAAG,MAAM,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;IAEtF,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,0FAA0F;QAC1F,GAAG,eAAe,CAAC,kBAAkB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;QAC5D,wEAAwE;QACxE,+FAA+F;QAC/F,sFAAsF;QACtF,GAAG,kBAAkB,CAAC,oBAAoB;QAC1C,iGAAiG;QACjG,GAAG,qBAAqB,CAAC,YAAY;KACtC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import type { PackageDefinitionsCache } from '@ms-cloudpack/common-types';\nimport { getDependencies } from '@ms-cloudpack/package-utilities';\n\n/**\n * Reads a package definition and derives a flat array of dependencies to externalize for bundling.\n *\n * To reduce the chances of accidentally bundling something that should be external, this includes\n * the names of original dependencies of all types (prior to transforms), as well as any\n * `includedDependencies` from config that were added by `createPackageSettingsTransform`.\n */\nexport async function getExternalsFromPackage(\n options: {\n inputPath: string;\n },\n context: {\n packages: PackageDefinitionsCache;\n },\n): Promise<string[]> {\n const { inputPath } = options;\n const { packages } = context;\n const transformedDefinition = await packages.get(inputPath);\n const originalDefinition = await packages.get(inputPath, { disableTransforms: true });\n\n return Object.keys({\n // Use mostly original dependencies in case of removals by createPackageSettingsTransform.\n ...getDependencies(originalDefinition, { includeAll: true }),\n // peerDependenciesMeta names should be redundant with peerDependencies.\n // But in rare cases (debug@4), it may incorrectly include deps that aren't listed elsewhere...\n // Include them just in case, since we want to externalize as many things as possible.\n ...originalDefinition.peerDependenciesMeta,\n // Also use the transformed deps in case any includedDependencies weren't listed in orignal deps.\n ...transformedDefinition.dependencies,\n });\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/bundler",
3
- "version": "0.23.31",
3
+ "version": "0.23.33",
4
4
  "description": "An abstraction to bundle source code.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,16 +14,16 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@ms-cloudpack/bundler-ori": "^0.2.14",
18
- "@ms-cloudpack/bundler-rollup": "^0.2.8",
19
- "@ms-cloudpack/bundler-rspack": "^0.2.18",
20
- "@ms-cloudpack/bundler-webpack": "^0.2.16",
21
- "@ms-cloudpack/common-types": "^0.24.2",
22
- "@ms-cloudpack/config": "^0.33.8",
17
+ "@ms-cloudpack/bundler-ori": "^0.2.15",
18
+ "@ms-cloudpack/bundler-rollup": "^0.2.9",
19
+ "@ms-cloudpack/bundler-rspack": "^0.2.20",
20
+ "@ms-cloudpack/bundler-webpack": "^0.2.17",
21
+ "@ms-cloudpack/common-types": "^0.24.3",
22
+ "@ms-cloudpack/config": "^0.33.9",
23
23
  "@ms-cloudpack/json-utilities": "^0.1.10",
24
- "@ms-cloudpack/package-utilities": "^11.1.2",
24
+ "@ms-cloudpack/package-utilities": "^11.2.0",
25
25
  "@ms-cloudpack/path-string-parsing": "^1.2.6",
26
- "@ms-cloudpack/path-utilities": "^2.8.3"
26
+ "@ms-cloudpack/path-utilities": "^2.8.4"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@ms-cloudpack/eslint-plugin-internal": "^0.0.1",