feat: Dual Package to support ESM also, not just CJS #60
CI.yml
on: push
Matrix: build
Matrix: test
github.event_name == 'pull_request' && '🔍 Publish (Dry Run)' || '📦 Publish'
0s
Annotations
50 errors and 4 warnings
|
__tests__/cel.test.ts > Performance measurements > should measure compile vs execute time:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when cart is empty:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when cart does not contain matching product:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when matching product has quantity 0:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return true when cart has multiple items including matching product:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return true when cart has matching product with quantity >= 1:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > should handle CEL map return values:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > should evaluate a simple expression:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > evaluate > should handle CEL map return values:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > evaluate > should evaluate a simple expression:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > Performance measurements > should measure compile vs execute time:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when cart is empty:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when cart does not contain matching product:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when matching product has quantity 0:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return true when cart has multiple items including matching product:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return true when cart has matching product with quantity >= 1:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > should handle CEL map return values:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > should evaluate a simple expression:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > evaluate > should handle CEL map return values:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > evaluate > should evaluate a simple expression:
esm/wrapper.js#L5
Error: require() of ES Module /home/runner/work/cel-typescript/cel-typescript/index.js from /home/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > Performance measurements > should measure compile vs execute time:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when cart is empty:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when cart does not contain matching product:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when matching product has quantity 0:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return true when cart has multiple items including matching product:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return true when cart has matching product with quantity >= 1:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > should handle CEL map return values:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > should evaluate a simple expression:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > evaluate > should handle CEL map return values:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > evaluate > should evaluate a simple expression:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > Performance measurements > should measure compile vs execute time:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when cart is empty:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when cart does not contain matching product:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when matching product has quantity 0:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return true when cart has multiple items including matching product:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return true when cart has matching product with quantity >= 1:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > should handle CEL map return values:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > should evaluate a simple expression:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > evaluate > should handle CEL map return values:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > evaluate > should evaluate a simple expression:
esm/wrapper.js#L5
Error: require() of ES Module /Users/runner/work/cel-typescript/cel-typescript/index.js from /Users/runner/work/cel-typescript/cel-typescript/esm/wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /Users/runner/work/cel-typescript/cel-typescript/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > Performance measurements > should measure compile vs execute time:
esm/wrapper.js#L5
Error: require() of ES Module D:\a\cel-typescript\cel-typescript\index.js from D:\a\cel-typescript\cel-typescript\esm\wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in D:\a\cel-typescript\cel-typescript\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when cart is empty:
esm/wrapper.js#L5
Error: require() of ES Module D:\a\cel-typescript\cel-typescript\index.js from D:\a\cel-typescript\cel-typescript\esm\wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in D:\a\cel-typescript\cel-typescript\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when cart does not contain matching product:
esm/wrapper.js#L5
Error: require() of ES Module D:\a\cel-typescript\cel-typescript\index.js from D:\a\cel-typescript\cel-typescript\esm\wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in D:\a\cel-typescript\cel-typescript\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return false when matching product has quantity 0:
esm/wrapper.js#L5
Error: require() of ES Module D:\a\cel-typescript\cel-typescript\index.js from D:\a\cel-typescript\cel-typescript\esm\wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in D:\a\cel-typescript\cel-typescript\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return true when cart has multiple items including matching product:
esm/wrapper.js#L5
Error: require() of ES Module D:\a\cel-typescript\cel-typescript\index.js from D:\a\cel-typescript\cel-typescript\esm\wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in D:\a\cel-typescript\cel-typescript\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > cart validation > should return true when cart has matching product with quantity >= 1:
esm/wrapper.js#L5
Error: require() of ES Module D:\a\cel-typescript\cel-typescript\index.js from D:\a\cel-typescript\cel-typescript\esm\wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in D:\a\cel-typescript\cel-typescript\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > should handle CEL map return values:
esm/wrapper.js#L5
Error: require() of ES Module D:\a\cel-typescript\cel-typescript\index.js from D:\a\cel-typescript\cel-typescript\esm\wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in D:\a\cel-typescript\cel-typescript\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > CelProgram > should evaluate a simple expression:
esm/wrapper.js#L5
Error: require() of ES Module D:\a\cel-typescript\cel-typescript\index.js from D:\a\cel-typescript\cel-typescript\esm\wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in D:\a\cel-typescript\cel-typescript\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > evaluate > should handle CEL map return values:
esm/wrapper.js#L5
Error: require() of ES Module D:\a\cel-typescript\cel-typescript\index.js from D:\a\cel-typescript\cel-typescript\esm\wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in D:\a\cel-typescript\cel-typescript\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
__tests__/cel.test.ts > evaluate > should evaluate a simple expression:
esm/wrapper.js#L5
Error: require() of ES Module D:\a\cel-typescript\cel-typescript\index.js from D:\a\cel-typescript\cel-typescript\esm\wrapper.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in D:\a\cel-typescript\cel-typescript\package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
❯ esm/wrapper.js:5:22
❯ CelProgram.compile src/index.ts:31:29
❯ evaluate src/index.ts:43:19
❯ __tests__/cel.test.ts:5:20
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_REQUIRE_ESM' }
|
|
Build - aarch64-unknown-linux-gnu
Failed to restore: Cache service responded with 422
|
|
Build - aarch64-unknown-linux-gnu
Failed to restore: Cache service responded with 422
|
|
Build - x86_64-unknown-linux-gnu
Failed to restore: Cache service responded with 422
|
|
Build - x86_64-unknown-linux-gnu
Failed to restore: Cache service responded with 422
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
bindings-aarch64-apple-darwin
Expired
|
1.03 MB |
sha256:9e90ca6a58536cbdff8de68373951638ac53d4a5b5f95483ad991987af079c49
|
|
|
bindings-aarch64-unknown-linux-gnu
Expired
|
1020 KB |
sha256:c08f8e580e1315ee544b3202ec283abbfdab323d750631baa8e2c52ec8374872
|
|
|
bindings-x86_64-apple-darwin
Expired
|
1.07 MB |
sha256:c215e15f78133f94913b285c7c257432817cb746b9c7a831d53e7939603dfbf7
|
|
|
bindings-x86_64-pc-windows-msvc
Expired
|
989 KB |
sha256:0e99e40b2241ff6ad7fc99d42aeaf243f7b361d0d387383c2862aa98b2687d9f
|
|
|
bindings-x86_64-unknown-linux-gnu
Expired
|
1.06 MB |
sha256:fbf3cb53f8cb43992866d35261747faf13a8f029230daa32ff43844841659214
|
|