@ms-cloudpack/bundler-ori 0.2.16 → 0.2.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/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @ms-cloudpack/bundler-ori
2
2
 
3
- Provides a Cloudpack bundler plugin around the `@oribuild/api` package, which itself is a wrapper around esbuild+native plugins. This creates a really fast bundler inner loop pipeline for serving large enterprise web applications.
3
+ Provides a Cloudpack bundler plugin around the `oribuild` package, which itself is a wrapper around esbuild+native plugins. This creates a really fast bundler inner loop pipeline for serving large enterprise web applications.
package/lib/ori.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ori.d.ts","sourceRoot":"","sources":["../src/ori.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAK1D,eAAO,MAAM,GAAG,EAAE,OASjB,CAAC"}
1
+ {"version":3,"file":"ori.d.ts","sourceRoot":"","sources":["../src/ori.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAiBvE,eAAO,MAAM,GAAG,EAAE,OAUjB,CAAC"}
package/lib/ori.js CHANGED
@@ -1,8 +1,20 @@
1
+ import { readJsonSync } from '@ms-cloudpack/json-utilities';
2
+ import { resolve } from '@ms-cloudpack/path-utilities';
3
+ import path from 'path';
4
+ import { fileURLToPath } from 'url';
5
+ import { buildWithRetries } from './buildWithRetries.js';
1
6
  import { getOriOptions } from './getOriOptions.js';
2
7
  import { normalizeOutput } from './normalizeOutput.js';
3
- import { buildWithRetries } from './buildWithRetries.js';
8
+ // Ori doesn't appear to export its current version in a const, so fetch it manually.
9
+ const oriVersionPromise = resolve('oribuild', fileURLToPath(import.meta.url))
10
+ .then((oriPath) => {
11
+ const packageJson = oriPath ? readJsonSync(path.join(oriPath, 'package.json')) : undefined;
12
+ return packageJson?.version || 'unknown';
13
+ })
14
+ .catch(() => 'unknown');
4
15
  export const ori = {
5
16
  name: 'ori',
17
+ version: oriVersionPromise,
6
18
  bundle: async function oriBuild(options, context) {
7
19
  const input = await getOriOptions(options, context);
8
20
  const output = await buildWithRetries({ oriInput: input, inputPath: options.inputPath });
package/lib/ori.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ori.js","sourceRoot":"","sources":["../src/ori.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,CAAC,MAAM,GAAG,GAAY;IAC1B,IAAI,EAAE,KAAK;IACX,MAAM,EAAE,KAAK,UAAU,QAAQ,CAAC,OAAO,EAAE,OAAO;QAC9C,MAAM,KAAK,GAAG,MAAM,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAEpD,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;QAEzF,OAAO,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACrD,CAAC;CACF,CAAC","sourcesContent":["import type { Bundler } from '@ms-cloudpack/common-types';\nimport { getOriOptions } from './getOriOptions.js';\nimport { normalizeOutput } from './normalizeOutput.js';\nimport { buildWithRetries } from './buildWithRetries.js';\n\nexport const ori: Bundler = {\n name: 'ori',\n bundle: async function oriBuild(options, context) {\n const input = await getOriOptions(options, context);\n\n const output = await buildWithRetries({ oriInput: input, inputPath: options.inputPath });\n\n return normalizeOutput({ options, input, output });\n },\n};\n"]}
1
+ {"version":3,"file":"ori.js","sourceRoot":"","sources":["../src/ori.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CA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} from '@ms-cloudpack/json-utilities';\nimport { resolve } from '@ms-cloudpack/path-utilities';\nimport path from 'path';\nimport { fileURLToPath } from 'url';\nimport { buildWithRetries } from './buildWithRetries.js';\nimport { getOriOptions } from './getOriOptions.js';\nimport { normalizeOutput } from './normalizeOutput.js';\n\n// Ori doesn't appear to export its current version in a const, so fetch it manually.\nconst oriVersionPromise = resolve('oribuild', fileURLToPath(import.meta.url))\n .then((oriPath) => {\n const packageJson = oriPath ? readJsonSync<PackageJson>(path.join(oriPath, 'package.json')) : undefined;\n return packageJson?.version || 'unknown';\n })\n .catch(() => 'unknown');\n\nexport const ori: Bundler = {\n name: 'ori',\n version: oriVersionPromise,\n bundle: async function oriBuild(options, context) {\n const input = await getOriOptions(options, context);\n\n const output = await buildWithRetries({ oriInput: input, inputPath: options.inputPath });\n\n return normalizeOutput({ options, input, output });\n },\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/bundler-ori",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "An abstraction to bundle source code using ori.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,12 +14,13 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@ms-cloudpack/bundler-capabilities": "^0.2.8",
18
- "@ms-cloudpack/bundler-utilities": "^0.1.23",
19
- "@ms-cloudpack/common-types": "^0.24.3",
20
- "@ms-cloudpack/package-utilities": "^11.3.0",
17
+ "@ms-cloudpack/bundler-capabilities": "^0.2.9",
18
+ "@ms-cloudpack/bundler-utilities": "^0.1.24",
19
+ "@ms-cloudpack/common-types": "^0.24.4",
20
+ "@ms-cloudpack/json-utilities": "^0.1.10",
21
+ "@ms-cloudpack/package-utilities": "^11.3.1",
21
22
  "@ms-cloudpack/path-string-parsing": "^1.2.6",
22
- "@ms-cloudpack/path-utilities": "^3.0.0",
23
+ "@ms-cloudpack/path-utilities": "^3.0.1",
23
24
  "@ms-cloudpack/retry": "^0.1.3",
24
25
  "oribuild": "0.0.0-pre-alpha.15-2024082214-6bd86a4"
25
26
  },