From 9ed9275822ce9e17396e8521bca43626ae6ed66e Mon Sep 17 00:00:00 2001 From: Marc Bouchenoire Date: Mon, 5 Dec 2022 22:23:30 +0100 Subject: [PATCH] Fix tests --- package.json | 2 +- packages/symbolist/package.json | 4 +-- yarn.lock | 57 +++++---------------------------- 3 files changed, 11 insertions(+), 52 deletions(-) diff --git a/package.json b/package.json index dde9114..ee3a218 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "nano-staged": "^0.8.0", "prettier": "^2.7.1", "tsatsiki": "^2.0.1", - "tsx": "^3.12.1", + "tsm": "^2.3.0", "typescript": "^4.7.4" } } diff --git a/packages/symbolist/package.json b/packages/symbolist/package.json index 2a2defb..a75f51b 100644 --- a/packages/symbolist/package.json +++ b/packages/symbolist/package.json @@ -38,9 +38,9 @@ "lint:eslint": "eslint '**/*.{mjs,ts,tsx}' --fix", "lint:prettier": "yarn prettier '**/*.{mjs,ts,tsx,json,md}'", "lint:tsc": "tsc --project tsconfig.json", - "generate": "tsx scripts/generate.ts && yarn prettier 'src/data/*.{ts,json}'", + "generate": "tsm scripts/generate.ts && yarn prettier 'src/data/*.{ts,json}'", "prepublishOnly": "yarn build", - "test": "uvu --require tsx tests", + "test": "uvu --require tsm tests", "test:coverage": "nyc --temp-dir=.nyc.log --include=src yarn test && nyc report --temp-dir=.nyc.log --reporter=lcov" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index f84910d..590e7d6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1179,30 +1179,6 @@ esquery "^1.4.0" jsdoc-type-pratt-parser "~3.1.0" -"@esbuild-kit/cjs-loader@^2.4.0": - version "2.4.1" - resolved "https://registry.yarnpkg.com/@esbuild-kit/cjs-loader/-/cjs-loader-2.4.1.tgz#5c1183ac3906223f0da3bb4ff5b74d0f0b13c326" - integrity sha512-lhc/XLith28QdW0HpHZvZKkorWgmCNT7sVelMHDj3HFdTfdqkwEKvT+aXVQtNAmCC39VJhunDkWhONWB7335mg== - dependencies: - "@esbuild-kit/core-utils" "^3.0.0" - get-tsconfig "^4.2.0" - -"@esbuild-kit/core-utils@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@esbuild-kit/core-utils/-/core-utils-3.0.0.tgz#e0f8463a32b4a9c9b456a7f9c31a5e038c8d2c19" - integrity sha512-TXmwH9EFS3DC2sI2YJWJBgHGhlteK0Xyu1VabwetMULfm3oYhbrsWV5yaSr2NTWZIgDGVLHbRf0inxbjXqAcmQ== - dependencies: - esbuild "~0.15.10" - source-map-support "^0.5.21" - -"@esbuild-kit/esm-loader@^2.5.0": - version "2.5.4" - resolved "https://registry.yarnpkg.com/@esbuild-kit/esm-loader/-/esm-loader-2.5.4.tgz#cd31fe93963f3e21b1c1d07eef2bd2df1b574326" - integrity sha512-afmtLf6uqxD5IgwCzomtqCYIgz/sjHzCWZFvfS5+FzeYxOURPUo4QcHtqJxbxWOMOogKriZanN/1bJQE/ZL93A== - dependencies: - "@esbuild-kit/core-utils" "^3.0.0" - get-tsconfig "^4.2.0" - "@esbuild/android-arm@0.15.18": version "0.15.18" resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.15.18.tgz#266d40b8fdcf87962df8af05b76219bc786b4f80" @@ -4933,7 +4909,7 @@ esbuild-windows-arm64@0.15.18: resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.15.18.tgz#5b5bdc56d341d0922ee94965c89ee120a6a86eb7" integrity sha512-q9bsYzegpZcLziq0zgUi5KqGVtfhjxGbnksaBFYmWLxeV/S1fK4OLdq2DFYnXcLMjlZw2L0jLsk1eGoB522WXQ== -esbuild@~0.15.10: +esbuild@^0.15.16: version "0.15.18" resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.15.18.tgz#ea894adaf3fbc036d32320a00d4d6e4978a2f36d" integrity sha512-x/R72SmW3sSFRm5zrrIjAhCeQSAWoni3CmHEqfQrZIQTM3lVCdehdwuIqaOtfC2slvpdlLa62GYoN8SxT23m6Q== @@ -5713,11 +5689,6 @@ get-symbol-description@^1.0.0: call-bind "^1.0.2" get-intrinsic "^1.1.1" -get-tsconfig@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.2.0.tgz#ff368dd7104dab47bf923404eb93838245c66543" - integrity sha512-X8u8fREiYOE6S8hLbq99PeykTDoLVnxvF4DjWKJmz9xy2nNRdUcV8ZN9tniJFeKyTU3qnC9lL8n4Chd6LmVKHg== - git-raw-commits@^2.0.8: version "2.0.10" resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-2.0.10.tgz#e2255ed9563b1c9c3ea6bd05806410290297bbc1" @@ -10300,14 +10271,6 @@ source-map-js@^1.0.2: resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== -source-map-support@^0.5.21: - version "0.5.21" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" - integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - source-map-support@~0.5.19: version "0.5.19" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" @@ -11106,6 +11069,13 @@ tslib@^2.3.0, tslib@^2.4.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== +tsm@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/tsm/-/tsm-2.3.0.tgz#f1a2f21393ca58268ef54ba2246bee5528e2ec43" + integrity sha512-++0HFnmmR+gMpDtKTnW3XJ4yv9kVGi20n+NfyQWB9qwJvTaIWY9kBmzek2YUQK5APTQ/1DTrXmm4QtFPmW9Rzw== + dependencies: + esbuild "^0.15.16" + tsutils@^3.21.0: version "3.21.0" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" @@ -11113,17 +11083,6 @@ tsutils@^3.21.0: dependencies: tslib "^1.8.1" -tsx@^3.12.1: - version "3.12.1" - resolved "https://registry.yarnpkg.com/tsx/-/tsx-3.12.1.tgz#d07532004c573bfea50a4ac687aa7270b3e34277" - integrity sha512-Rcg1x+rNe7qwlP8j7kx4VjP/pJo/V57k+17hlrn6a7FuQLNwkaw5W4JF75tYornNVCxkXdSUnqlIT8JY/ttvIw== - dependencies: - "@esbuild-kit/cjs-loader" "^2.4.0" - "@esbuild-kit/core-utils" "^3.0.0" - "@esbuild-kit/esm-loader" "^2.5.0" - optionalDependencies: - fsevents "~2.3.2" - type-check@^0.4.0, type-check@~0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1"