@ms-cloudpack/bundler-ori 0.2.75 → 0.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"oriCapabilities.d.ts","sourceRoot":"","sources":["../src/oriCapabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAK1D,eAAO,MAAM,eAAe,EAAE,wCAAwC,CAAC,eAAe,CAsCrF,CAAC"}
1
+ {"version":3,"file":"oriCapabilities.d.ts","sourceRoot":"","sources":["../src/oriCapabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAK1D,eAAO,MAAM,eAAe,EAAE,wCAAwC,CAAC,eAAe,CAwCrF,CAAC"}
@@ -24,12 +24,14 @@ export const oriCapabilities = {
24
24
  config.define = { ...(config.define || {}), ...options };
25
25
  return config;
26
26
  },
27
- relay: (config) => {
27
+ relay: (config, options) => {
28
28
  config.plugins ??= [];
29
29
  config.plugins.push({
30
30
  plugin: 'embedded-document-artefact',
31
31
  filter: '\\.[cm]?[jt]sx?$',
32
- // Type cast since extra property filter is not part of the type
32
+ rootDir: options.rootDir,
33
+ artifactDirectory: options.artifactDirectory,
34
+ // Type cast since extra properties are not part of the type
33
35
  });
34
36
  return config;
35
37
  },
@@ -1 +1 @@
1
- {"version":3,"file":"oriCapabilities.js","sourceRoot":"","sources":["../src/oriCapabilities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAGnE,MAAM,CAAC,MAAM,eAAe,GAA8D;IAC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AC,OAAO,CAAC,IAAI,CAAC;YAClB,MAAM,EAAE,4BAA4B;YACpC,MAAM,EAAE,kBAAkB;YAC1B,gEAAgE;SAC7C,CAAC,CAAC;QACvB,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,2FAA2F;IAC3F,qGAAqG;IACrG,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CAC5B,CAAC","sourcesContent":["import type { InternalBundlerCapabilityImplementations } from '@ms-cloudpack/common-types';\nimport type { OriBuildOptions } from './getOriOptions.ts';\nimport { mergeObjects } from '@ms-cloudpack/package-utilities';\nimport { webExtensions } from '@ms-cloudpack/bundler-capabilities';\nimport type { PluginJSONConfig } from 'oribuild';\n\nexport const oriCapabilities: InternalBundlerCapabilityImplementations<OriBuildOptions> = {\n 'asset-inline': (config, options) => {\n // Make sure that the leading dot exists in the extensions\n const extensions = options.extensions.map((ext) => (!ext.startsWith('.') ? `.${ext}` : ext));\n\n config.loader = {\n ...config.loader,\n ...Object.fromEntries(extensions.map((ext) => [ext, 'dataurl'])),\n };\n\n return config;\n },\n alias: (config, options) => {\n // Add aliases to the ori configuration\n config.alias = mergeObjects([config.alias || {}, options]);\n return config;\n },\n 'resolve-web-extensions': (config) => {\n config.resolveExtensions ??= [];\n config.resolveExtensions.unshift(...webExtensions);\n return config;\n },\n define: (config, options) => {\n config.define = { ...(config.define || {}), ...options };\n return config;\n },\n relay: (config) => {\n config.plugins ??= [];\n config.plugins.push({\n plugin: 'embedded-document-artefact',\n filter: '\\\\.[cm]?[jt]sx?$',\n // Type cast since extra property filter is not part of the type\n } as PluginJSONConfig);\n return config;\n },\n // This is a placeholder for the density capability. It doesn't do anything in the bundler.\n // It's just a workaround for a post-bundle task. This will be replaced with 'plugins' in the future.\n density: (config) => config,\n};\n"]}
1
+ {"version":3,"file":"oriCapabilities.js","sourceRoot":"","sources":["../src/oriCapabilities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CA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ACD,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;QACzB,MAAM,CAAC,OAAO,KAAK,EAAE,CAAC;QACtB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;YAClB,MAAM,EAAE,4BAA4B;YACpC,MAAM,EAAE,kBAAkB;YAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;YAC5C,4DAA4D;SACzC,CAAC,CAAC;QACvB,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,2FAA2F;IAC3F,qGAAqG;IACrG,OAAO,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM;CAC5B,CAAC","sourcesContent":["import type { InternalBundlerCapabilityImplementations } from '@ms-cloudpack/common-types';\nimport type { OriBuildOptions } from './getOriOptions.ts';\nimport { mergeObjects } from '@ms-cloudpack/package-utilities';\nimport { webExtensions } from '@ms-cloudpack/bundler-capabilities';\nimport type { PluginJSONConfig } from 'oribuild';\n\nexport const oriCapabilities: InternalBundlerCapabilityImplementations<OriBuildOptions> = {\n 'asset-inline': (config, options) => {\n // Make sure that the leading dot exists in the extensions\n const extensions = options.extensions.map((ext) => (!ext.startsWith('.') ? `.${ext}` : ext));\n\n config.loader = {\n ...config.loader,\n ...Object.fromEntries(extensions.map((ext) => [ext, 'dataurl'])),\n };\n\n return config;\n },\n alias: (config, options) => {\n // Add aliases to the ori configuration\n config.alias = mergeObjects([config.alias || {}, options]);\n return config;\n },\n 'resolve-web-extensions': (config) => {\n config.resolveExtensions ??= [];\n config.resolveExtensions.unshift(...webExtensions);\n return config;\n },\n define: (config, options) => {\n config.define = { ...(config.define || {}), ...options };\n return config;\n },\n relay: (config, options) => {\n config.plugins ??= [];\n config.plugins.push({\n plugin: 'embedded-document-artefact',\n filter: '\\\\.[cm]?[jt]sx?$',\n rootDir: options.rootDir,\n artifactDirectory: options.artifactDirectory,\n // Type cast since extra properties are not part of the type\n } as PluginJSONConfig);\n return config;\n },\n // This is a placeholder for the density capability. It doesn't do anything in the bundler.\n // It's just a workaround for a post-bundle task. This will be replaced with 'plugins' in the future.\n density: (config) => config,\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/bundler-ori",
3
- "version": "0.2.75",
3
+ "version": "0.3.0",
4
4
  "description": "Cloudpack's wrapper for the ori bundler",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,15 +14,15 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@ms-cloudpack/bundler-capabilities": "^0.4.0",
18
- "@ms-cloudpack/bundler-utilities": "^0.6.2",
19
- "@ms-cloudpack/common-types": "^0.29.0",
17
+ "@ms-cloudpack/bundler-capabilities": "^0.4.1",
18
+ "@ms-cloudpack/bundler-utilities": "^0.6.3",
19
+ "@ms-cloudpack/common-types": "^0.29.1",
20
20
  "@ms-cloudpack/json-utilities": "^0.1.11",
21
- "@ms-cloudpack/package-utilities": "^13.1.0",
21
+ "@ms-cloudpack/package-utilities": "^13.1.1",
22
22
  "@ms-cloudpack/path-string-parsing": "^1.2.7",
23
- "@ms-cloudpack/path-utilities": "^3.1.26",
23
+ "@ms-cloudpack/path-utilities": "^3.1.27",
24
24
  "@ms-cloudpack/retry": "^0.1.3",
25
- "oribuild": "0.0.0-pre-alpha.15-2025081916-ab70ca3"
25
+ "oribuild": "0.0.0-pre-alpha.15-2025092321-a8180d4"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@ms-cloudpack/bundler-tests": "^0.1.0",