diff --git a/extra.mjs b/extra.mjs new file mode 100644 index 0000000..a83d557 --- /dev/null +++ b/extra.mjs @@ -0,0 +1,8 @@ +import * as fs from "node:fs"; + +// workaround for the class_constructor + +const filename = "./output/zcl_excel_worksheet.clas.mjs"; +let contents = fs.readFileSync(filename).toString("utf8"); +contents = `await import("./cl_abap_elemdescr.clas.mjs");\n` + contents; +fs.writeFileSync(filename, contents); diff --git a/package-lock.json b/package-lock.json index 6ecd0de..4e9459b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "MIT", "devDependencies": { - "@abaplint/monaco": "^2.113.7", + "@abaplint/monaco": "^2.113.8", "@abaplint/runtime": "^2.10.18", "@abaplint/transpiler": "^2.10.18", "@abaplint/transpiler-cli": "^2.10.18", @@ -29,16 +29,16 @@ "string_decoder": "^1.3.0", "style-loader": "^4.0.0", "ts-loader": "^9.5.1", - "typescript": "^5.5.4", + "typescript": "^5.6.2", "webpack": "^5.94.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^5.1.0" } }, "node_modules/@abaplint/core": { - "version": "2.113.7", - "resolved": "https://registry.npmjs.org/@abaplint/core/-/core-2.113.7.tgz", - "integrity": "sha512-vyHV/A9DJOi+/9TUknMg94BR9ivHVpiQZ2ox5FiVlj4rJ5eaTZqHvZ+rvFFjI66ADt158gGIvu1+tiIIsUXqzA==", + "version": "2.113.8", + "resolved": "https://registry.npmjs.org/@abaplint/core/-/core-2.113.8.tgz", + "integrity": "sha512-0byfQc4NZ+BsvquP/aNcMmwp9AvujSIIEsrQqA6+BuTQAcL/KM9Lrgw7dsUkI8LUPPtgG6QSgfvhmRpBna4ivA==", "dev": true, "dependencies": { "fast-xml-parser": "^4.5.0", @@ -53,12 +53,12 @@ } }, "node_modules/@abaplint/monaco": { - "version": "2.113.7", - "resolved": "https://registry.npmjs.org/@abaplint/monaco/-/monaco-2.113.7.tgz", - "integrity": "sha512-+wo/d5IVSMFuvTiwDZeq8ZYqt77M83AsTNcc6VaVCvpUdHKFnA/Boqb9LffDMMPHu+rI/8rc9TR1yyqb0fHtxQ==", + "version": "2.113.8", + "resolved": "https://registry.npmjs.org/@abaplint/monaco/-/monaco-2.113.8.tgz", + "integrity": "sha512-So55yR/omi3vUUhKddAmMmesxxo59uD5FvWhftLORYHjPU7DEE60xkMCuRQkDjk1yiaiUKmjOZojMjaQsvBiGg==", "dev": true, "dependencies": { - "@abaplint/core": "^2.113.7" + "@abaplint/core": "^2.113.8" }, "funding": { "url": "https://github.com/sponsors/larshp" @@ -4916,9 +4916,9 @@ } }, "node_modules/typescript": { - "version": "5.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", - "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index 5e847d4..543192e 100644 --- a/package.json +++ b/package.json @@ -10,13 +10,13 @@ "clone": "npm run clone1 && npm run clone2 && npm run clone3", "dev": "webpack serve --mode development --env development", "webpack": "webpack", - "transpile": "abap_transpile abap_transpile.json", + "transpile": "abap_transpile abap_transpile.json && node extra.mjs", "test": "npm run clone && rm -rf input && mkdir input && node abap.mjs && npm run transpile && node examples.mjs && npm run webpack" }, "author": "", "license": "MIT", "devDependencies": { - "@abaplint/monaco": "^2.113.7", + "@abaplint/monaco": "^2.113.8", "@abaplint/runtime": "^2.10.18", "@abaplint/transpiler": "^2.10.18", "@abaplint/transpiler-cli": "^2.10.18", @@ -36,7 +36,7 @@ "string_decoder": "^1.3.0", "style-loader": "^4.0.0", "ts-loader": "^9.5.1", - "typescript": "^5.5.4", + "typescript": "^5.6.2", "webpack": "^5.94.0", "webpack-cli": "^5.1.4", "webpack-dev-server": "^5.1.0" diff --git a/public/zcl_excel_demo1.xlsx b/public/zcl_excel_demo1.xlsx index 662c97c..8aa712a 100644 Binary files a/public/zcl_excel_demo1.xlsx and b/public/zcl_excel_demo1.xlsx differ diff --git a/public/zcl_excel_demo2.xlsx b/public/zcl_excel_demo2.xlsx index 141b233..dbc49ad 100644 Binary files a/public/zcl_excel_demo2.xlsx and b/public/zcl_excel_demo2.xlsx differ diff --git a/public/zcl_excel_demo4.xlsx b/public/zcl_excel_demo4.xlsx index 15161b0..335653c 100644 Binary files a/public/zcl_excel_demo4.xlsx and b/public/zcl_excel_demo4.xlsx differ diff --git a/public/zcl_excel_demo5.xlsx b/public/zcl_excel_demo5.xlsx index c06821e..2ad300c 100644 Binary files a/public/zcl_excel_demo5.xlsx and b/public/zcl_excel_demo5.xlsx differ diff --git a/public/zcl_excel_demo6.xlsx b/public/zcl_excel_demo6.xlsx index 06becb5..5233a7a 100644 Binary files a/public/zcl_excel_demo6.xlsx and b/public/zcl_excel_demo6.xlsx differ diff --git a/public/zcl_excel_demo7.xlsx b/public/zcl_excel_demo7.xlsx index 48f0347..d70cbcd 100644 Binary files a/public/zcl_excel_demo7.xlsx and b/public/zcl_excel_demo7.xlsx differ diff --git a/public/zcl_excel_demo8.xlsx b/public/zcl_excel_demo8.xlsx index 1f63487..eec55f3 100644 Binary files a/public/zcl_excel_demo8.xlsx and b/public/zcl_excel_demo8.xlsx differ diff --git a/src/index.ts b/src/index.ts index c4b27a7..7f3e56b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,9 +24,9 @@ import * as abaplint from "@abaplint/core"; import * as abapMonaco from "@abaplint/monaco"; import Split from "split-grid"; import { abapfiles } from "./abap.js"; -import * as initabap from "../output/init.mjs"; +import "../output/_init.mjs"; import {Buffer} from "buffer"; -console.dir(initabap); // just to make sure its not shaked away +// console.dir(initabap); // just to make sure its not shaked away const reg = new abaplint.Registry(new abaplint.Config(JSON.stringify(config))); for (const filename in abapfiles) {