@oracle/oraclejet-icu-l10n 17.1.3 → 18.0.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/Bundler.js CHANGED
@@ -171,15 +171,24 @@ function isNlsDir(name) {
171
171
 
172
172
  function transpile(files, module) {
173
173
  const moduleMap = {
174
- amd: ts.ModuleKind.AMD,
175
- 'legacy-amd': ts.ModuleKind.AMD,
176
- esm: ts.ModuleKind.ES2020
174
+ amd: 'amd',
175
+ cjs: 'commonjs',
176
+ esm: undefined, // i.e., use default
177
+ 'legacy-amd': 'amd'
177
178
  };
178
- const program = ts.createProgram(files, {
179
- module: moduleMap[module],
180
- target: 'ES2021',
181
- strict: true
182
- });
179
+ const parseResults = ts.convertCompilerOptionsFromJson(
180
+ {
181
+ module: moduleMap[module],
182
+ target: 'ES2021',
183
+ strict: true
184
+ },
185
+ '.'
186
+ );
187
+ if (parseResults.errors.length > 0) {
188
+ throw Error(`Error attempting to transpile '${moduleMap[module]}' module: ${
189
+ ts.flattenDiagnosticMessageText(parseResults.errors[0], ts.sys.newLine)}`);
190
+ }
191
+ const program = ts.createProgram(files, parseResults.options);
183
192
  program.emit();
184
193
  }
185
194
 
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@oracle/oraclejet-icu-l10n",
3
- "version": "17.1.3",
3
+ "version": "18.0.0",
4
4
  "description": "JET ICU Message Format Parser",
5
5
  "main": "l10nBundleBuilder.js",
6
6
  "scripts": {
7
- "clean": "rimraf test/built test_results",
8
7
  "build-types": "tsc --declaration --emitDeclarationOnly --allowJs --skipLibCheck Bundler.js",
9
- "test": "jest -c test/jest.config.js"
8
+ "clean": "rimraf test/built test_results",
9
+ "test": "jest -c test/jest.config.js",
10
+ "test-ci-headless": "yarn test --maxWorkers=1"
10
11
  },
11
12
  "author": "",
12
13
  "license": "ISC",
@@ -14,11 +15,11 @@
14
15
  "@formatjs/icu-messageformat-parser": "2.3.1",
15
16
  "fs-extra": "10.1.0",
16
17
  "glob": "7.2.0",
17
- "typescript": "5.4.5"
18
+ "typescript": "5.7.2"
18
19
  },
19
20
  "devDependencies": {
20
21
  "@jest/globals": "29.6.2",
21
- "@oracle/oraclejet-test-utils": "workspace:^",
22
+ "@oracle/oraclejet-internal-test-utils": "workspace:*",
22
23
  "jest": "29.6.2",
23
24
  "jest-environment-jsdom": "29.6.2",
24
25
  "rimraf": "3.0.2",
@@ -1,5 +1,5 @@
1
1
  const pkg = require('../package.json');
2
- const workspaceConfig = require('@oracle/oraclejet-test-utils/workspace-jest-config');
2
+ const workspaceConfig = require('@oracle/oraclejet-internal-test-utils/workspace-jest-config');
3
3
 
4
4
  module.exports = workspaceConfig({
5
5
  preset: 'ts-jest',