From d04c42cbe80e5f273966c4c35d0abae2569c7c9e Mon Sep 17 00:00:00 2001 From: Dolan Date: Fri, 22 Dec 2023 01:10:54 +0000 Subject: [PATCH] Use esm for ts-node (#2459) * Use esm for ts-node * Add esm flag * Change tsconfig properties * Use tsx rather than ts-node * Use tsx * Remove ts-node --- .eslintrc.yml | 1 - .github/workflows/demos.yml | 166 +++---- .vscode/launch.json | 16 +- .vscode/tasks.json | 20 +- demo/index.ts | 2 +- demo/tsconfig.json | 10 - package-lock.json | 881 +++++++++++++++++++++++++++--------- package.json | 8 +- tsconfig.json | 9 - 9 files changed, 763 insertions(+), 350 deletions(-) delete mode 100644 demo/tsconfig.json diff --git a/.eslintrc.yml b/.eslintrc.yml index 6eb0c19a32..c172f14ce8 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -7,7 +7,6 @@ parser: "@typescript-eslint/parser" parserOptions: project: - tsconfig.json - - demo/tsconfig.json sourceType: module plugins: - eslint-plugin-import diff --git a/.github/workflows/demos.yml b/.github/workflows/demos.yml index 7f7aa5ddaf..60c5a6d62f 100644 --- a/.github/workflows/demos.yml +++ b/.github/workflows/demos.yml @@ -38,7 +38,7 @@ jobs: name: build path: build - name: Run Demo - run: npm run ts-node -- ./demo/1-basic.ts + run: npm run run-ts -- ./demo/1-basic.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -47,7 +47,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/2-declaritive-styles.ts + run: npm run run-ts -- ./demo/2-declaritive-styles.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -56,7 +56,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/3-numbering-and-bullet-points.ts + run: npm run run-ts -- ./demo/3-numbering-and-bullet-points.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -65,7 +65,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/4-basic-table.ts + run: npm run run-ts -- ./demo/4-basic-table.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -74,7 +74,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/5-images.ts + run: npm run run-ts -- ./demo/5-images.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -83,7 +83,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/6-page-borders.ts + run: npm run run-ts -- ./demo/6-page-borders.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -92,7 +92,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/7-landscape.ts + run: npm run run-ts -- ./demo/7-landscape.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -101,7 +101,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/8-header-footer.ts + run: npm run run-ts -- ./demo/8-header-footer.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -110,7 +110,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/9-images-in-header-and-footer.ts + run: npm run run-ts -- ./demo/9-images-in-header-and-footer.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -119,7 +119,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/10-my-cv.ts + run: npm run run-ts -- ./demo/10-my-cv.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -128,7 +128,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/11-declaritive-styles-2.ts + run: npm run run-ts -- ./demo/11-declaritive-styles-2.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -137,7 +137,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/12-scaling-images.ts + run: npm run run-ts -- ./demo/12-scaling-images.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -146,7 +146,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/13-xml-styles.ts + run: npm run run-ts -- ./demo/13-xml-styles.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -155,7 +155,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/14-page-numbers.ts + run: npm run run-ts -- ./demo/14-page-numbers.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -164,7 +164,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/15-page-break-before.ts + run: npm run run-ts -- ./demo/15-page-break-before.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -173,7 +173,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/16-multiple-sections.ts + run: npm run run-ts -- ./demo/16-multiple-sections.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -182,7 +182,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/17-footnotes.ts + run: npm run run-ts -- ./demo/17-footnotes.ts - name: Extract Word Document run: npm run extract # element r: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}r': This element is not expected. @@ -192,7 +192,7 @@ jobs: # xml-file: build/extracted-doc/word/document.xml # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/18-image-from-buffer.ts + run: npm run run-ts -- ./demo/18-image-from-buffer.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -201,7 +201,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/19-export-to-base64.ts + run: npm run run-ts -- ./demo/19-export-to-base64.ts # Base 64 No longer works, abruptly. Node issue? # - name: Extract Word Document # run: npm run extract @@ -211,7 +211,7 @@ jobs: # xml-file: build/extracted-doc/word/document.xml # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/20-table-cell-borders.ts + run: npm run run-ts -- ./demo/20-table-cell-borders.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -220,7 +220,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/21-bookmarks.ts + run: npm run run-ts -- ./demo/21-bookmarks.ts - name: Extract Word Document run: npm run extract # Bad ID - need numeric ID @@ -230,7 +230,7 @@ jobs: # xml-file: build/extracted-doc/word/document.xml # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/22-right-to-left-text.ts + run: npm run run-ts -- ./demo/22-right-to-left-text.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -239,7 +239,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/23-base64-images.ts + run: npm run run-ts -- ./demo/23-base64-images.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -248,7 +248,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/24-images-to-table-cell.ts + run: npm run run-ts -- ./demo/24-images-to-table-cell.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -257,7 +257,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/25-table-xml-styles.ts + run: npm run run-ts -- ./demo/25-table-xml-styles.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -266,7 +266,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/26-paragraph-borders.ts + run: npm run run-ts -- ./demo/26-paragraph-borders.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -275,7 +275,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/27-declaritive-styles-3.ts + run: npm run run-ts -- ./demo/27-declaritive-styles-3.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -284,7 +284,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/28-table-of-contents.ts + run: npm run run-ts -- ./demo/28-table-of-contents.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -293,7 +293,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/29-numbered-lists.ts + run: npm run run-ts -- ./demo/29-numbered-lists.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -302,7 +302,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/31-tables.ts + run: npm run run-ts -- ./demo/31-tables.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -311,7 +311,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/32-merge-and-shade-table-cells.ts + run: npm run run-ts -- ./demo/32-merge-and-shade-table-cells.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -320,7 +320,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/33-sequential-captions.ts + run: npm run run-ts -- ./demo/33-sequential-captions.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -329,7 +329,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/34-floating-tables.ts + run: npm run run-ts -- ./demo/34-floating-tables.ts - name: Extract Word Document run: npm run extract # element tblpPr: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}tblpPr', attribute 'overlap': The attribute 'overlap' is not allowed. @@ -340,7 +340,7 @@ jobs: # xml-file: build/extracted-doc/word/document.xml # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/35-hyperlinks.ts + run: npm run run-ts -- ./demo/35-hyperlinks.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -349,7 +349,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/36-image-to-table-cell.ts + run: npm run run-ts -- ./demo/36-image-to-table-cell.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -358,7 +358,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/37-images-to-header-and-footer.ts + run: npm run run-ts -- ./demo/37-images-to-header-and-footer.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -367,7 +367,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/38-text-wrapping.ts + run: npm run run-ts -- ./demo/38-text-wrapping.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -376,7 +376,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/39-page-numbers.ts + run: npm run run-ts -- ./demo/39-page-numbers.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -385,7 +385,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/40-line-numbers.ts + run: npm run run-ts -- ./demo/40-line-numbers.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -394,7 +394,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/41-merge-table-cells-2.ts + run: npm run run-ts -- ./demo/41-merge-table-cells-2.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -403,7 +403,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/42-restart-page-numbers.ts + run: npm run run-ts -- ./demo/42-restart-page-numbers.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -412,7 +412,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/43-images-to-table-cell-2.ts + run: npm run run-ts -- ./demo/43-images-to-table-cell-2.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -421,7 +421,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/44-multiple-columns.ts + run: npm run run-ts -- ./demo/44-multiple-columns.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -430,7 +430,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/45-highlighting-text.ts + run: npm run run-ts -- ./demo/45-highlighting-text.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -439,7 +439,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/46-shading-text.ts + run: npm run run-ts -- ./demo/46-shading-text.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -448,7 +448,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/47-number-of-total-pages-section.ts + run: npm run run-ts -- ./demo/47-number-of-total-pages-section.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -457,7 +457,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/48-vertical-align.ts + run: npm run run-ts -- ./demo/48-vertical-align.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -466,7 +466,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/49-table-borders.ts + run: npm run run-ts -- ./demo/49-table-borders.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -475,7 +475,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/50-readme-demo.ts + run: npm run run-ts -- ./demo/50-readme-demo.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -484,7 +484,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/51-character-styles.ts + run: npm run run-ts -- ./demo/51-character-styles.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -493,7 +493,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/52-japanese.ts + run: npm run run-ts -- ./demo/52-japanese.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -502,7 +502,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/53-chinese.ts + run: npm run run-ts -- ./demo/53-chinese.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -511,7 +511,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/54-custom-properties.ts + run: npm run run-ts -- ./demo/54-custom-properties.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -520,7 +520,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/55-math.ts + run: npm run run-ts -- ./demo/55-math.ts - name: Extract Word Document run: npm run extract #: element subHide: Schemas validity error : Element '{http://schemas.openxmlformats.org/officeDocument/2006/math}subHide': This element is not expected. Expected is ( {http://schemas.openxmlformats.org/officeDocument/2006/math}ctrlPr ). @@ -533,7 +533,7 @@ jobs: # xml-file: build/extracted-doc/word/document.xml # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/56-background-color.ts + run: npm run run-ts -- ./demo/56-background-color.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -542,7 +542,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/57-add-parent-numbered-lists.ts + run: npm run run-ts -- ./demo/57-add-parent-numbered-lists.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -551,7 +551,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/58-section-types.ts + run: npm run run-ts -- ./demo/58-section-types.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -560,7 +560,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/59-header-footer-margins.ts + run: npm run run-ts -- ./demo/59-header-footer-margins.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -569,7 +569,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/60-track-revisions.ts + run: npm run run-ts -- ./demo/60-track-revisions.ts - name: Extract Word Document run: npm run extract # element r: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}r': This element is not expected. @@ -579,7 +579,7 @@ jobs: # xml-file: build/extracted-doc/word/document.xml # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/61-text-frame.ts + run: npm run run-ts -- ./demo/61-text-frame.ts - name: Extract Word Document run: npm run extract # element left: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}left': This element is not expected. Expected is one of ( {http://schemas.openxmlformats.org/wordprocessingml/2006/main}right, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}between, {http://schemas.openxmlformats.org/wordprocessingml/2006/main}bar ). @@ -589,7 +589,7 @@ jobs: # xml-file: build/extracted-doc/word/document.xml # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/62-paragraph-spacing.ts + run: npm run run-ts -- ./demo/62-paragraph-spacing.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -598,7 +598,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/63-odd-even-header-footer.ts + run: npm run run-ts -- ./demo/63-odd-even-header-footer.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -607,7 +607,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/64-complex-numbering-text.ts + run: npm run run-ts -- ./demo/64-complex-numbering-text.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -616,7 +616,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/65-page-sizes.ts + run: npm run run-ts -- ./demo/65-page-sizes.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -625,7 +625,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/66-fields.ts + run: npm run run-ts -- ./demo/66-fields.ts - name: Extract Word Document run: npm run extract # element bookmarkStart: Schemas validity error : Element '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}bookmarkStart', attribute '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}id': '-irrswq-ln94j4fdgdjxs' is not a valid value of the atomic type '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber'. @@ -636,7 +636,7 @@ jobs: # xml-file: build/extracted-doc/word/document.xml # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/67-column-break.ts + run: npm run run-ts -- ./demo/67-column-break.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -645,7 +645,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/68-numbering-instances-and-starting-number.ts + run: npm run run-ts -- ./demo/68-numbering-instances-and-starting-number.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -654,7 +654,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/69-different-width-columns.ts + run: npm run run-ts -- ./demo/69-different-width-columns.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -663,7 +663,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/70-line-numbers-suppression.ts + run: npm run run-ts -- ./demo/70-line-numbers-suppression.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -672,7 +672,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/71-page-borders-2.ts + run: npm run run-ts -- ./demo/71-page-borders-2.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -681,7 +681,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/72-word-wrap.ts + run: npm run run-ts -- ./demo/72-word-wrap.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -690,7 +690,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/73-comments.ts + run: npm run run-ts -- ./demo/73-comments.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -699,7 +699,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/73-comments.ts + run: npm run run-ts -- ./demo/73-comments.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -708,7 +708,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd # - name: Run Demo - # run: npm run ts-node -- ./demo/75-tab-stops.ts + # run: npm run run-ts -- ./demo/75-tab-stops.ts # - name: Extract Word Document # run: npm run extract # - name: Validate XML @@ -717,7 +717,7 @@ jobs: # xml-file: build/extracted-doc/word/document.xml # xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/76-compatibility.ts + run: npm run run-ts -- ./demo/76-compatibility.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -726,7 +726,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/77-side-by-side-tables.ts + run: npm run run-ts -- ./demo/77-side-by-side-tables.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -735,7 +735,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/78-thai-distributed.ts + run: npm run run-ts -- ./demo/78-thai-distributed.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -744,7 +744,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/79-table-from-data-source.ts + run: npm run run-ts -- ./demo/79-table-from-data-source.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -753,7 +753,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/80-thai-distributed.ts + run: npm run run-ts -- ./demo/80-thai-distributed.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -762,7 +762,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/81-continuous-header.ts + run: npm run run-ts -- ./demo/81-continuous-header.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -771,7 +771,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/82-new-headers-new-section.ts + run: npm run run-ts -- ./demo/82-new-headers-new-section.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -780,7 +780,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/83-setting-languages.ts + run: npm run run-ts -- ./demo/83-setting-languages.ts - name: Extract Word Document run: npm run extract - name: Validate XML @@ -789,7 +789,7 @@ jobs: xml-file: build/extracted-doc/word/document.xml xml-schema-file: ooxml-schemas/microsoft/wml-2010.xsd - name: Run Demo - run: npm run ts-node -- ./demo/84-positional-tabs.ts + run: npm run run-ts -- ./demo/84-positional-tabs.ts - name: Extract Word Document run: npm run extract - name: Validate XML diff --git a/.vscode/launch.json b/.vscode/launch.json index ef4e0bdeb5..e37a8d6274 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,18 +1,4 @@ { "version": "0.2.0", - "configurations": [ - { - "name": "Run Demo", - "type": "node", - "request": "launch", - "runtimeArgs": [ - "-r", - "${workspaceFolder}/node_modules/ts-node/register", - "-r", - "${workspaceFolder}/node_modules/tsconfig-paths/register" - ], - "cwd": "${workspaceRoot}", - "program": "${workspaceFolder}/demo/85-template-document.ts" - } - ] + "configurations": [] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2488a642fd..f89b4791ef 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,23 +2,5 @@ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", - "tasks": [ - { - "type": "typescript", - "tsconfig": "tsconfig.json", - "option": "watch", - "problemMatcher": [ - "$tsc-watch" - ] - }, - { - "type": "npm", - "script": "ts-node", - "problemMatcher": [], - "group": { - "kind": "build", - "isDefault": true - } - } - ] + "tasks": [] } \ No newline at end of file diff --git a/demo/index.ts b/demo/index.ts index e705914ffd..b687008792 100644 --- a/demo/index.ts +++ b/demo/index.ts @@ -55,7 +55,7 @@ if (files.length === 0) { const filePath = path.join(dir, files[0]); console.log(`Running demo ${demoNumber}: ${files[0]}`); - const { stdout } = await $`ts-node --project demo/tsconfig.json ${filePath}`; + const { stdout } = await $`tsx ${filePath}`; console.log(stdout); console.log("Successfully created document!"); } diff --git a/demo/tsconfig.json b/demo/tsconfig.json deleted file mode 100644 index db4017ad4e..0000000000 --- a/demo/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../tsconfig.json", - "compilerOptions": { - "rootDir": "./", - "paths": { - "docx": ["../build"] - } - }, - "include": ["../demo"] -} diff --git a/package-lock.json b/package-lock.json index 922233f181..150d1f10cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,8 +39,8 @@ "jsdom": "^22.1.0", "pre-commit": "^1.2.2", "prettier": "^3.0.0", - "ts-node": "^10.2.1", "tsconfig-paths": "^4.0.0", + "tsx": "^4.7.0", "typedoc": "^0.24.8", "typescript": "5.1.6", "unzipper": "^0.10.11", @@ -574,18 +574,6 @@ "node": ">=16" } }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/@es-joy/jsdoccomment": { "version": "0.40.1", "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.40.1.tgz", @@ -600,6 +588,22 @@ "node": ">=16" } }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.10.tgz", + "integrity": "sha512-Q+mk96KJ+FZ30h9fsJl+67IjNJm3x2eX+GBWGmocAKgzp27cowCOOqSdscX80s0SpdFXZnIv/+1xD1EctFx96Q==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@esbuild/android-arm": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", @@ -1661,30 +1665,6 @@ "node": ">= 10" } }, - "node_modules/@tsconfig/node10": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", - "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==", - "dev": true - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", - "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==", - "dev": true - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", - "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==", - "dev": true - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", - "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==", - "dev": true - }, "node_modules/@types/argparse": { "version": "1.0.38", "resolved": "https://registry.npmjs.org/@types/argparse/-/argparse-1.0.38.tgz", @@ -2944,12 +2924,6 @@ "node": ">=14" } }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -6461,9 +6435,9 @@ "dev": true }, "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, "optional": true, @@ -6647,6 +6621,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-tsconfig": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.2.tgz", + "integrity": "sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==", + "dev": true, + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, "node_modules/glob": { "version": "10.3.10", "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", @@ -8623,12 +8609,6 @@ "semver": "bin/semver.js" } }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, "node_modules/marked": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", @@ -10133,6 +10113,15 @@ "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==", "dev": true }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, "node_modules/responselike": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", @@ -11119,58 +11108,6 @@ "typescript": ">=4.2.0" } }, - "node_modules/ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", - "dev": true, - "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } - } - }, - "node_modules/ts-node/node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, "node_modules/tsconfck": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-2.1.1.tgz", @@ -11226,6 +11163,415 @@ "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" } }, + "node_modules/tsx": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.7.0.tgz", + "integrity": "sha512-I+t79RYPlEYlHn9a+KzwrvEwhJg35h/1zHsLC2JXvhC2mdynMv6Zxzvhv5EMV6VF5qJlLlkSnMVvdZV3PSIGcg==", + "dev": true, + "dependencies": { + "esbuild": "~0.19.10", + "get-tsconfig": "^4.7.2" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/tsx/node_modules/@esbuild/android-arm": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.10.tgz", + "integrity": "sha512-7W0bK7qfkw1fc2viBfrtAEkDKHatYfHzr/jKAHNr9BvkYDXPcC6bodtm8AyLJNNuqClLNaeTLuwURt4PRT9d7w==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/android-arm64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.10.tgz", + "integrity": "sha512-1X4CClKhDgC3by7k8aOWZeBXQX8dHT5QAMCAQDArCLaYfkppoARvh0fit3X2Qs+MXDngKcHv6XXyQCpY0hkK1Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/android-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.10.tgz", + "integrity": "sha512-O/nO/g+/7NlitUxETkUv/IvADKuZXyH4BHf/g/7laqKC4i/7whLpB0gvpPc2zpF0q9Q6FXS3TS75QHac9MvVWw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/darwin-arm64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.10.tgz", + "integrity": "sha512-YSRRs2zOpwypck+6GL3wGXx2gNP7DXzetmo5pHXLrY/VIMsS59yKfjPizQ4lLt5vEI80M41gjm2BxrGZ5U+VMA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/darwin-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.10.tgz", + "integrity": "sha512-alfGtT+IEICKtNE54hbvPg13xGBe4GkVxyGWtzr+yHO7HIiRJppPDhOKq3zstTcVf8msXb/t4eavW3jCDpMSmA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.10.tgz", + "integrity": "sha512-dMtk1wc7FSH8CCkE854GyGuNKCewlh+7heYP/sclpOG6Cectzk14qdUIY5CrKDbkA/OczXq9WesqnPl09mj5dg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/freebsd-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.10.tgz", + "integrity": "sha512-G5UPPspryHu1T3uX8WiOEUa6q6OlQh6gNl4CO4Iw5PS+Kg5bVggVFehzXBJY6X6RSOMS8iXDv2330VzaObm4Ag==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-arm": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.10.tgz", + "integrity": "sha512-j6gUW5aAaPgD416Hk9FHxn27On28H4eVI9rJ4az7oCGTFW48+LcgNDBN+9f8rKZz7EEowo889CPKyeaD0iw9Kg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-arm64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.10.tgz", + "integrity": "sha512-QxaouHWZ+2KWEj7cGJmvTIHVALfhpGxo3WLmlYfJ+dA5fJB6lDEIg+oe/0//FuyVHuS3l79/wyBxbHr0NgtxJQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-ia32": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.10.tgz", + "integrity": "sha512-4ub1YwXxYjj9h1UIZs2hYbnTZBtenPw5NfXCRgEkGb0b6OJ2gpkMvDqRDYIDRjRdWSe/TBiZltm3Y3Q8SN1xNg==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-loong64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.10.tgz", + "integrity": "sha512-lo3I9k+mbEKoxtoIbM0yC/MZ1i2wM0cIeOejlVdZ3D86LAcFXFRdeuZmh91QJvUTW51bOK5W2BznGNIl4+mDaA==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-mips64el": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.10.tgz", + "integrity": "sha512-J4gH3zhHNbdZN0Bcr1QUGVNkHTdpijgx5VMxeetSk6ntdt+vR1DqGmHxQYHRmNb77tP6GVvD+K0NyO4xjd7y4A==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-ppc64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.10.tgz", + "integrity": "sha512-tgT/7u+QhV6ge8wFMzaklOY7KqiyitgT1AUHMApau32ZlvTB/+efeCtMk4eXS+uEymYK249JsoiklZN64xt6oQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-riscv64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.10.tgz", + "integrity": "sha512-0f/spw0PfBMZBNqtKe5FLzBDGo0SKZKvMl5PHYQr3+eiSscfJ96XEknCe+JoOayybWUFQbcJTrk946i3j9uYZA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-s390x": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.10.tgz", + "integrity": "sha512-pZFe0OeskMHzHa9U38g+z8Yx5FNCLFtUnJtQMpwhS+r4S566aK2ci3t4NCP4tjt6d5j5uo4h7tExZMjeKoehAA==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.10.tgz", + "integrity": "sha512-SpYNEqg/6pZYoc+1zLCjVOYvxfZVZj6w0KROZ3Fje/QrM3nfvT2llI+wmKSrWuX6wmZeTapbarvuNNK/qepSgA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/netbsd-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.10.tgz", + "integrity": "sha512-ACbZ0vXy9zksNArWlk2c38NdKg25+L9pr/mVaj9SUq6lHZu/35nx2xnQVRGLrC1KKQqJKRIB0q8GspiHI3J80Q==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/openbsd-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.10.tgz", + "integrity": "sha512-PxcgvjdSjtgPMiPQrM3pwSaG4kGphP+bLSb+cihuP0LYdZv1epbAIecHVl5sD3npkfYBZ0ZnOjR878I7MdJDFg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/sunos-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.10.tgz", + "integrity": "sha512-ZkIOtrRL8SEJjr+VHjmW0znkPs+oJXhlJbNwfI37rvgeMtk3sxOQevXPXjmAPZPigVTncvFqLMd+uV0IBSEzqA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/win32-arm64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.10.tgz", + "integrity": "sha512-+Sa4oTDbpBfGpl3Hn3XiUe4f8TU2JF7aX8cOfqFYMMjXp6ma6NJDztl5FDG8Ezx0OjwGikIHw+iA54YLDNNVfw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/win32-ia32": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.10.tgz", + "integrity": "sha512-EOGVLK1oWMBXgfttJdPHDTiivYSjX6jDNaATeNOaCOFEVcfMjtbx7WVQwPSE1eIfCp/CaSF2nSrDtzc4I9f8TQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/@esbuild/win32-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.10.tgz", + "integrity": "sha512-whqLG6Sc70AbU73fFYvuYzaE4MNMBIlR1Y/IrUeOXFrWHxBEjjbZaQ3IXIQS8wJdAzue2GwYZCjOrgrU1oUHoA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/tsx/node_modules/esbuild": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.10.tgz", + "integrity": "sha512-S1Y27QGt/snkNYrRcswgRFqZjaTG5a5xM3EQo97uNBnH505pdzSNe/HLBq1v0RO7iK/ngdbhJB6mDAp0OK+iUA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.19.10", + "@esbuild/android-arm": "0.19.10", + "@esbuild/android-arm64": "0.19.10", + "@esbuild/android-x64": "0.19.10", + "@esbuild/darwin-arm64": "0.19.10", + "@esbuild/darwin-x64": "0.19.10", + "@esbuild/freebsd-arm64": "0.19.10", + "@esbuild/freebsd-x64": "0.19.10", + "@esbuild/linux-arm": "0.19.10", + "@esbuild/linux-arm64": "0.19.10", + "@esbuild/linux-ia32": "0.19.10", + "@esbuild/linux-loong64": "0.19.10", + "@esbuild/linux-mips64el": "0.19.10", + "@esbuild/linux-ppc64": "0.19.10", + "@esbuild/linux-riscv64": "0.19.10", + "@esbuild/linux-s390x": "0.19.10", + "@esbuild/linux-x64": "0.19.10", + "@esbuild/netbsd-x64": "0.19.10", + "@esbuild/openbsd-x64": "0.19.10", + "@esbuild/sunos-x64": "0.19.10", + "@esbuild/win32-arm64": "0.19.10", + "@esbuild/win32-ia32": "0.19.10", + "@esbuild/win32-x64": "0.19.10" + } + }, "node_modules/tty-browserify": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", @@ -11603,12 +11949,6 @@ "node": ">= 0.4.0" } }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, "node_modules/v8-to-istanbul": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", @@ -12506,15 +12846,6 @@ "node": ">=6" } }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", @@ -13025,15 +13356,6 @@ "integrity": "sha512-qNnt2wG45wb8JP54mENarnQgxfSYKPp3zlYID/2przbMNmVJRqUlcIBOdLI6plCgGeNkzJTl3T9T1ATbnN+LLw==", "dev": true }, - "@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "requires": { - "@jridgewell/trace-mapping": "0.3.9" - } - }, "@es-joy/jsdoccomment": { "version": "0.40.1", "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.40.1.tgz", @@ -13045,6 +13367,13 @@ "jsdoc-type-pratt-parser": "~4.0.0" } }, + "@esbuild/aix-ppc64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.10.tgz", + "integrity": "sha512-Q+mk96KJ+FZ30h9fsJl+67IjNJm3x2eX+GBWGmocAKgzp27cowCOOqSdscX80s0SpdFXZnIv/+1xD1EctFx96Q==", + "dev": true, + "optional": true + }, "@esbuild/android-arm": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", @@ -13728,30 +14057,6 @@ "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", "dev": true }, - "@tsconfig/node10": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", - "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==", - "dev": true - }, - "@tsconfig/node12": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", - "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==", - "dev": true - }, - "@tsconfig/node14": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", - "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==", - "dev": true - }, - "@tsconfig/node16": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", - "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==", - "dev": true - }, "@types/argparse": { "version": "1.0.38", "resolved": "https://registry.npmjs.org/@types/argparse/-/argparse-1.0.38.tgz", @@ -14656,12 +14961,6 @@ "integrity": "sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig==", "dev": true }, - "arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, "argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -17355,9 +17654,9 @@ "dev": true }, "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "optional": true }, @@ -17484,6 +17783,15 @@ "get-intrinsic": "^1.1.1" } }, + "get-tsconfig": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.7.2.tgz", + "integrity": "sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==", + "dev": true, + "requires": { + "resolve-pkg-maps": "^1.0.0" + } + }, "glob": { "version": "10.3.10", "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", @@ -18918,12 +19226,6 @@ } } }, - "make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, "marked": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", @@ -20040,6 +20342,12 @@ "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==", "dev": true }, + "resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true + }, "responselike": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", @@ -20822,35 +21130,6 @@ "dev": true, "requires": {} }, - "ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", - "dev": true, - "requires": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "dependencies": { - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true - } - } - }, "tsconfck": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-2.1.1.tgz", @@ -20884,6 +21163,204 @@ "tslib": "^1.8.1" } }, + "tsx": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.7.0.tgz", + "integrity": "sha512-I+t79RYPlEYlHn9a+KzwrvEwhJg35h/1zHsLC2JXvhC2mdynMv6Zxzvhv5EMV6VF5qJlLlkSnMVvdZV3PSIGcg==", + "dev": true, + "requires": { + "esbuild": "~0.19.10", + "fsevents": "~2.3.3", + "get-tsconfig": "^4.7.2" + }, + "dependencies": { + "@esbuild/android-arm": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.10.tgz", + "integrity": "sha512-7W0bK7qfkw1fc2viBfrtAEkDKHatYfHzr/jKAHNr9BvkYDXPcC6bodtm8AyLJNNuqClLNaeTLuwURt4PRT9d7w==", + "dev": true, + "optional": true + }, + "@esbuild/android-arm64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.10.tgz", + "integrity": "sha512-1X4CClKhDgC3by7k8aOWZeBXQX8dHT5QAMCAQDArCLaYfkppoARvh0fit3X2Qs+MXDngKcHv6XXyQCpY0hkK1Q==", + "dev": true, + "optional": true + }, + "@esbuild/android-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.10.tgz", + "integrity": "sha512-O/nO/g+/7NlitUxETkUv/IvADKuZXyH4BHf/g/7laqKC4i/7whLpB0gvpPc2zpF0q9Q6FXS3TS75QHac9MvVWw==", + "dev": true, + "optional": true + }, + "@esbuild/darwin-arm64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.10.tgz", + "integrity": "sha512-YSRRs2zOpwypck+6GL3wGXx2gNP7DXzetmo5pHXLrY/VIMsS59yKfjPizQ4lLt5vEI80M41gjm2BxrGZ5U+VMA==", + "dev": true, + "optional": true + }, + "@esbuild/darwin-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.10.tgz", + "integrity": "sha512-alfGtT+IEICKtNE54hbvPg13xGBe4GkVxyGWtzr+yHO7HIiRJppPDhOKq3zstTcVf8msXb/t4eavW3jCDpMSmA==", + "dev": true, + "optional": true + }, + "@esbuild/freebsd-arm64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.10.tgz", + "integrity": "sha512-dMtk1wc7FSH8CCkE854GyGuNKCewlh+7heYP/sclpOG6Cectzk14qdUIY5CrKDbkA/OczXq9WesqnPl09mj5dg==", + "dev": true, + "optional": true + }, + "@esbuild/freebsd-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.10.tgz", + "integrity": "sha512-G5UPPspryHu1T3uX8WiOEUa6q6OlQh6gNl4CO4Iw5PS+Kg5bVggVFehzXBJY6X6RSOMS8iXDv2330VzaObm4Ag==", + "dev": true, + "optional": true + }, + "@esbuild/linux-arm": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.10.tgz", + "integrity": "sha512-j6gUW5aAaPgD416Hk9FHxn27On28H4eVI9rJ4az7oCGTFW48+LcgNDBN+9f8rKZz7EEowo889CPKyeaD0iw9Kg==", + "dev": true, + "optional": true + }, + "@esbuild/linux-arm64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.10.tgz", + "integrity": "sha512-QxaouHWZ+2KWEj7cGJmvTIHVALfhpGxo3WLmlYfJ+dA5fJB6lDEIg+oe/0//FuyVHuS3l79/wyBxbHr0NgtxJQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-ia32": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.10.tgz", + "integrity": "sha512-4ub1YwXxYjj9h1UIZs2hYbnTZBtenPw5NfXCRgEkGb0b6OJ2gpkMvDqRDYIDRjRdWSe/TBiZltm3Y3Q8SN1xNg==", + "dev": true, + "optional": true + }, + "@esbuild/linux-loong64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.10.tgz", + "integrity": "sha512-lo3I9k+mbEKoxtoIbM0yC/MZ1i2wM0cIeOejlVdZ3D86LAcFXFRdeuZmh91QJvUTW51bOK5W2BznGNIl4+mDaA==", + "dev": true, + "optional": true + }, + "@esbuild/linux-mips64el": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.10.tgz", + "integrity": "sha512-J4gH3zhHNbdZN0Bcr1QUGVNkHTdpijgx5VMxeetSk6ntdt+vR1DqGmHxQYHRmNb77tP6GVvD+K0NyO4xjd7y4A==", + "dev": true, + "optional": true + }, + "@esbuild/linux-ppc64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.10.tgz", + "integrity": "sha512-tgT/7u+QhV6ge8wFMzaklOY7KqiyitgT1AUHMApau32ZlvTB/+efeCtMk4eXS+uEymYK249JsoiklZN64xt6oQ==", + "dev": true, + "optional": true + }, + "@esbuild/linux-riscv64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.10.tgz", + "integrity": "sha512-0f/spw0PfBMZBNqtKe5FLzBDGo0SKZKvMl5PHYQr3+eiSscfJ96XEknCe+JoOayybWUFQbcJTrk946i3j9uYZA==", + "dev": true, + "optional": true + }, + "@esbuild/linux-s390x": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.10.tgz", + "integrity": "sha512-pZFe0OeskMHzHa9U38g+z8Yx5FNCLFtUnJtQMpwhS+r4S566aK2ci3t4NCP4tjt6d5j5uo4h7tExZMjeKoehAA==", + "dev": true, + "optional": true + }, + "@esbuild/linux-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.10.tgz", + "integrity": "sha512-SpYNEqg/6pZYoc+1zLCjVOYvxfZVZj6w0KROZ3Fje/QrM3nfvT2llI+wmKSrWuX6wmZeTapbarvuNNK/qepSgA==", + "dev": true, + "optional": true + }, + "@esbuild/netbsd-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.10.tgz", + "integrity": "sha512-ACbZ0vXy9zksNArWlk2c38NdKg25+L9pr/mVaj9SUq6lHZu/35nx2xnQVRGLrC1KKQqJKRIB0q8GspiHI3J80Q==", + "dev": true, + "optional": true + }, + "@esbuild/openbsd-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.10.tgz", + "integrity": "sha512-PxcgvjdSjtgPMiPQrM3pwSaG4kGphP+bLSb+cihuP0LYdZv1epbAIecHVl5sD3npkfYBZ0ZnOjR878I7MdJDFg==", + "dev": true, + "optional": true + }, + "@esbuild/sunos-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.10.tgz", + "integrity": "sha512-ZkIOtrRL8SEJjr+VHjmW0znkPs+oJXhlJbNwfI37rvgeMtk3sxOQevXPXjmAPZPigVTncvFqLMd+uV0IBSEzqA==", + "dev": true, + "optional": true + }, + "@esbuild/win32-arm64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.10.tgz", + "integrity": "sha512-+Sa4oTDbpBfGpl3Hn3XiUe4f8TU2JF7aX8cOfqFYMMjXp6ma6NJDztl5FDG8Ezx0OjwGikIHw+iA54YLDNNVfw==", + "dev": true, + "optional": true + }, + "@esbuild/win32-ia32": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.10.tgz", + "integrity": "sha512-EOGVLK1oWMBXgfttJdPHDTiivYSjX6jDNaATeNOaCOFEVcfMjtbx7WVQwPSE1eIfCp/CaSF2nSrDtzc4I9f8TQ==", + "dev": true, + "optional": true + }, + "@esbuild/win32-x64": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.10.tgz", + "integrity": "sha512-whqLG6Sc70AbU73fFYvuYzaE4MNMBIlR1Y/IrUeOXFrWHxBEjjbZaQ3IXIQS8wJdAzue2GwYZCjOrgrU1oUHoA==", + "dev": true, + "optional": true + }, + "esbuild": { + "version": "0.19.10", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.10.tgz", + "integrity": "sha512-S1Y27QGt/snkNYrRcswgRFqZjaTG5a5xM3EQo97uNBnH505pdzSNe/HLBq1v0RO7iK/ngdbhJB6mDAp0OK+iUA==", + "dev": true, + "requires": { + "@esbuild/aix-ppc64": "0.19.10", + "@esbuild/android-arm": "0.19.10", + "@esbuild/android-arm64": "0.19.10", + "@esbuild/android-x64": "0.19.10", + "@esbuild/darwin-arm64": "0.19.10", + "@esbuild/darwin-x64": "0.19.10", + "@esbuild/freebsd-arm64": "0.19.10", + "@esbuild/freebsd-x64": "0.19.10", + "@esbuild/linux-arm": "0.19.10", + "@esbuild/linux-arm64": "0.19.10", + "@esbuild/linux-ia32": "0.19.10", + "@esbuild/linux-loong64": "0.19.10", + "@esbuild/linux-mips64el": "0.19.10", + "@esbuild/linux-ppc64": "0.19.10", + "@esbuild/linux-riscv64": "0.19.10", + "@esbuild/linux-s390x": "0.19.10", + "@esbuild/linux-x64": "0.19.10", + "@esbuild/netbsd-x64": "0.19.10", + "@esbuild/openbsd-x64": "0.19.10", + "@esbuild/sunos-x64": "0.19.10", + "@esbuild/win32-arm64": "0.19.10", + "@esbuild/win32-ia32": "0.19.10", + "@esbuild/win32-x64": "0.19.10" + } + } + } + }, "tty-browserify": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", @@ -21193,12 +21670,6 @@ "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", "dev": true }, - "v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, "v8-to-istanbul": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", @@ -21827,12 +22298,6 @@ "decamelize": "^1.2.0" } }, - "yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true - }, "yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index 0ac2226f08..86a0edd8a7 100644 --- a/package.json +++ b/package.json @@ -24,14 +24,14 @@ "prepublishOnly": "npm run build --omit=dev", "lint": "eslint --ext .ts src", "predemo": "npm run build", - "demo": "ts-node --project demo/tsconfig.json ./demo/index.ts", + "demo": "tsx ./demo/index.ts", "typedoc": "typedoc src/index.ts --tsconfig tsconfig.typedoc.json", "style": "prettier -l \"{src,scripts,demo}/**/*.{ts,html}\"", "style.fix": "npm run style -- --write", "cspell": "cspell \"{src,demo,docs,scripts}/**/*.{ts,scss,html,md}\" && cspell \"./*.*\"", "serve.docs": "cd docs && docsify serve", - "extract": "ts-node scripts/extract-document.ts", - "ts-node": "ts-node --project demo/tsconfig.json" + "extract": "tsx scripts/extract-document.ts", + "run-ts": "tsx" }, "pre-commit": [ "style", @@ -90,8 +90,8 @@ "jsdom": "^22.1.0", "pre-commit": "^1.2.2", "prettier": "^3.0.0", - "ts-node": "^10.2.1", "tsconfig-paths": "^4.0.0", + "tsx": "^4.7.0", "typedoc": "^0.24.8", "typescript": "5.1.6", "unzipper": "^0.10.11", diff --git a/tsconfig.json b/tsconfig.json index 4afd2920fb..a990bb0534 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -35,14 +35,5 @@ "@shared": ["./shared/index.ts"] } }, - "ts-node": { - "esm": true, - "compilerOptions": { - "module": "ESNext", - "moduleResolution": "node", - "allowSyntheticDefaultImports": true, - "esModuleInterop": true - } - }, "include": ["src"] }