Merge pull request 'fix: package.json missing 'type': 'module' inconsistent with AGENTS.md (#850)' (#855) from fix/issue-850 into master

This commit is contained in:
johba 2026-03-16 07:56:59 +01:00
commit 10ff61e6b5
4 changed files with 11 additions and 6 deletions

View file

@ -2,6 +2,7 @@
"name": "push3-transpiler",
"version": "1.0.0",
"description": "Push3 to Solidity transpiler for OptimizerV3",
"type": "module",
"main": "dist/index.js",
"scripts": {
"build": "tsc",

View file

@ -10,8 +10,8 @@
import * as fs from 'fs';
import * as path from 'path';
import { parse } from './parser';
import { transpile } from './transpiler';
import { parse } from './parser.js';
import { transpile } from './transpiler.js';
function main(): void {
const args = process.argv.slice(2);

View file

@ -8,7 +8,7 @@
* Only the subset of instructions used in optimizer_v3.push3 is implemented.
*/
import { Node } from './parser';
import { Node } from './parser.js';
interface TranspilerState {
dStack: string[]; // DYADIC stack (Solidity expressions)

View file

@ -1,8 +1,9 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"lib": ["ES2020"],
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["ES2022"],
"outDir": "dist",
"rootDir": "src",
"strict": true,
@ -10,6 +11,9 @@
"skipLibCheck": true,
"resolveJsonModule": true
},
"ts-node": {
"esm": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}