diff --git a/package.json b/package.json index 17f52e141..c2d9d280e 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "dependencies": { "bundle-require": "^4.0.0", "cac": "^6.7.14", - "chokidar": "^3.5.1", + "chokidar": "^3.6.0", "debug": "^4.3.5", "esbuild": "^0.21.4", "execa": "^5.0.0", @@ -47,7 +47,7 @@ "devDependencies": { "@microsoft/api-extractor": "^7.38.3", "@rollup/plugin-json": "6.0.1", - "@swc/core": "1.2.218", + "@swc/core": "1.6.13", "@types/debug": "4.1.12", "@types/fs-extra": "11.0.4", "@types/node": "20.14.11", @@ -59,7 +59,7 @@ "postcss": "8.4.12", "postcss-simple-vars": "6.0.3", "prettier": "3.3.3", - "resolve": "1.20.0", + "resolve": "1.22.8", "rollup-plugin-dts": "6.1.0", "sass": "1.62.1", "strip-json-comments": "4.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3cd9fe3ae..a61fd7358 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^6.7.14 version: 6.7.14 chokidar: - specifier: ^3.5.1 - version: 3.5.2 + specifier: ^3.6.0 + version: 3.6.0 debug: specifier: ^4.3.5 version: 4.3.5 @@ -58,8 +58,8 @@ importers: specifier: 6.0.1 version: 6.0.1(rollup@4.0.2) '@swc/core': - specifier: 1.2.218 - version: 1.2.218 + specifier: 1.6.13 + version: 1.6.13 '@types/debug': specifier: 4.1.12 version: 4.1.12 @@ -94,8 +94,8 @@ importers: specifier: 3.3.3 version: 3.3.3 resolve: - specifier: 1.20.0 - version: 1.20.0 + specifier: 1.22.8 + version: 1.22.8 rollup-plugin-dts: specifier: 6.1.0 version: 6.1.0(rollup@4.0.2)(typescript@5.5.3) @@ -122,7 +122,7 @@ importers: version: 3.12.0 tsup: specifier: 8.1.0 - version: 8.1.0(@microsoft/api-extractor@7.38.3(@types/node@20.14.11))(@swc/core@1.2.218)(postcss@8.4.12)(typescript@5.5.3) + version: 8.1.0(@microsoft/api-extractor@7.38.3(@types/node@20.14.11))(@swc/core@1.6.13)(postcss@8.4.12)(typescript@5.5.3) typescript: specifier: 5.5.3 version: 5.5.3 @@ -521,88 +521,80 @@ packages: '@rushstack/ts-command-line@4.17.1': resolution: {integrity: sha512-2jweO1O57BYP5qdBGl6apJLB+aRIn5ccIRTPDyULh0KMwVzFqWtw6IZWt1qtUoZD/pD2RNkIOosH6Cq45rIYeg==} - '@swc/core-android-arm-eabi@1.2.218': - resolution: {integrity: sha512-Q/uLCh262t3xxNzhCz+ZW9t+g2nWd0gZZO4jMYFWJs7ilKVNsBfRtfnNGGACHzkVuWLNDIWtAS2PSNodl7VUHQ==} - engines: {node: '>=10'} - cpu: [arm] - os: [android] - - '@swc/core-android-arm64@1.2.218': - resolution: {integrity: sha512-dy+8lUHUcyrkfPcl7azEQ4M44duRo1Uibz1E5/tltXCGoR6tu2ZN2VkqEKgA2a9XR3UD8/x4lv2r5evwJWy+uQ==} - engines: {node: '>=10'} - cpu: [arm64] - os: [android] - - '@swc/core-darwin-arm64@1.2.218': - resolution: {integrity: sha512-aTpFjWio8G0oukN76VtXCBPtFzH0PXIQ+1dFjGGkzrBcU5suztCCbhPBGhKRoWp3NJBwfPDwwWzmG+ddXrVAKg==} + '@swc/core-darwin-arm64@1.6.13': + resolution: {integrity: sha512-SOF4buAis72K22BGJ3N8y88mLNfxLNprTuJUpzikyMGrvkuBFNcxYtMhmomO0XHsgLDzOJ+hWzcgjRNzjMsUcQ==} engines: {node: '>=10'} cpu: [arm64] os: [darwin] - '@swc/core-darwin-x64@1.2.218': - resolution: {integrity: sha512-H3w/gNzROE6gVPZCAg5qvvPihzlg88Yi7HWb/mowfpNqH9/iJ8XMdwqJyovnfUeUXsuJQBFv6uXv/ri7qhGMHA==} + '@swc/core-darwin-x64@1.6.13': + resolution: {integrity: sha512-AW8akFSC+tmPE6YQQvK9S2A1B8pjnXEINg+gGgw0KRUUXunvu1/OEOeC5L2Co1wAwhD7bhnaefi06Qi9AiwOag==} engines: {node: '>=10'} cpu: [x64] os: [darwin] - '@swc/core-freebsd-x64@1.2.218': - resolution: {integrity: sha512-kkch07yCSlpUrSMp0FZPWtMHJjh3lfHiwp7JYNf6CUl5xXlgT19NeomPYq31dbTzPV2VnE7TVVlAawIjuuOH4g==} - engines: {node: '>=10'} - cpu: [x64] - os: [freebsd] - - '@swc/core-linux-arm-gnueabihf@1.2.218': - resolution: {integrity: sha512-vwEgvtD9f/+0HFxYD5q4sd8SG6zd0cxm17cwRGZ6jWh/d4Ninjht3CpDGE1ffh9nJ+X3Mb/7rjU/kTgWFz5qfg==} + '@swc/core-linux-arm-gnueabihf@1.6.13': + resolution: {integrity: sha512-f4gxxvDXVUm2HLYXRd311mSrmbpQF2MZ4Ja6XCQz1hWAxXdhRl1gpnZ+LH/xIfGSwQChrtLLVrkxdYUCVuIjFg==} engines: {node: '>=10'} cpu: [arm] os: [linux] - '@swc/core-linux-arm64-gnu@1.2.218': - resolution: {integrity: sha512-g5PQI6COUHV7x7tyaZQn6jXWtOLXXNIEQK1HS5/e+6kqqsM2NsndE9bjLhoH1EQuXiN2eUjAR/ZDOFAg102aRw==} + '@swc/core-linux-arm64-gnu@1.6.13': + resolution: {integrity: sha512-Nf/eoW2CbG8s+9JoLtjl9FByBXyQ5cjdBsA4efO7Zw4p+YSuXDgc8HRPC+E2+ns0praDpKNZtLvDtmF2lL+2Gg==} engines: {node: '>=10'} cpu: [arm64] os: [linux] - '@swc/core-linux-arm64-musl@1.2.218': - resolution: {integrity: sha512-IETYHB6H01NmVmlw+Ng8nkjdFBv1exGQRR74GAnHis1bVx1Uq14hREIF6XT3I1Aj26nRwlGkIYQuEKnFO5/j3Q==} + '@swc/core-linux-arm64-musl@1.6.13': + resolution: {integrity: sha512-2OysYSYtdw79prJYuKIiux/Gj0iaGEbpS2QZWCIY4X9sGoETJ5iMg+lY+YCrIxdkkNYd7OhIbXdYFyGs/w5LDg==} engines: {node: '>=10'} cpu: [arm64] os: [linux] - '@swc/core-linux-x64-gnu@1.2.218': - resolution: {integrity: sha512-PK39Zg4/YZbfchQRw77iVfB7Qat7QaK58sQt8enH39CUMXlJ+GSfC0Fqw2mtZ12sFGwmsGrK9yBy3ZVoOws5Ng==} + '@swc/core-linux-x64-gnu@1.6.13': + resolution: {integrity: sha512-PkR4CZYJNk5hcd2+tMWBpnisnmYsUzazI1O5X7VkIGFcGePTqJ/bWlfUIVVExWxvAI33PQFzLbzmN5scyIUyGQ==} engines: {node: '>=10'} cpu: [x64] os: [linux] - '@swc/core-linux-x64-musl@1.2.218': - resolution: {integrity: sha512-SNjrzORJYiKTSmFbaBkKZAf5B/PszwoZoFZOcd86AG192zsvQBSvKjQzMjT5rDZxB+sOnhRE7wH/bvqxZishQQ==} + '@swc/core-linux-x64-musl@1.6.13': + resolution: {integrity: sha512-OdsY7wryTxCKwGQcwW9jwWg3cxaHBkTTHi91+5nm7hFPpmZMz1HivJrWAMwVE7iXFw+M4l6ugB/wCvpYrUAAjA==} engines: {node: '>=10'} cpu: [x64] os: [linux] - '@swc/core-win32-arm64-msvc@1.2.218': - resolution: {integrity: sha512-lVXFWkYl+w8+deq9mgGsfvSY5Gr1RRjFgqZ+0wMZgyaonfx7jNn3TILUwc7egumEwxK0anNriVZCyKfcO3ZIjA==} + '@swc/core-win32-arm64-msvc@1.6.13': + resolution: {integrity: sha512-ap6uNmYjwk9M/+bFEuWRNl3hq4VqgQ/Lk+ID/F5WGqczNr0L7vEf+pOsRAn0F6EV+o/nyb3ePt8rLhE/wjHpPg==} engines: {node: '>=10'} cpu: [arm64] os: [win32] - '@swc/core-win32-ia32-msvc@1.2.218': - resolution: {integrity: sha512-jgP+NZsHUh9Cp8PcXznnkpJTW3hPDLUgsXI0NKfE+8+Xvc6hALHxl6K46IyPYU67FfFlegYcBSNkOgpc85gk0A==} + '@swc/core-win32-ia32-msvc@1.6.13': + resolution: {integrity: sha512-IJ8KH4yIUHTnS/U1jwQmtbfQals7zWPG0a9hbEfIr4zI0yKzjd83lmtS09lm2Q24QBWOCFGEEbuZxR4tIlvfzA==} engines: {node: '>=10'} cpu: [ia32] os: [win32] - '@swc/core-win32-x64-msvc@1.2.218': - resolution: {integrity: sha512-XYLjX00KV4ft324Q3QDkw61xHkoN7EKkVvIpb0wXaf6wVshwU+BCDyPw2CSg4PQecNP8QGgMRQf9QM7xNtEM7A==} + '@swc/core-win32-x64-msvc@1.6.13': + resolution: {integrity: sha512-f6/sx6LMuEnbuxtiSL/EkR0Y6qUHFw1XVrh6rwzKXptTipUdOY+nXpKoh+1UsBm/r7H0/5DtOdrn3q5ZHbFZjQ==} engines: {node: '>=10'} cpu: [x64] os: [win32] - '@swc/core@1.2.218': - resolution: {integrity: sha512-wzXTeBUi3YAHr305lCo1tlxRj5Zpk7hu6rmulngH06NgrH7fS6bj8IaR7K2QPZ4ZZ4U+TGS2tOKbXBmqeMRUtg==} + '@swc/core@1.6.13': + resolution: {integrity: sha512-eailUYex6fkfaQTev4Oa3mwn0/e3mQU4H8y1WPuImYQESOQDtVrowwUGDSc19evpBbHpKtwM+hw8nLlhIsF+Tw==} engines: {node: '>=10'} - hasBin: true + peerDependencies: + '@swc/helpers': '*' + peerDependenciesMeta: + '@swc/helpers': + optional: true + + '@swc/counter@0.1.3': + resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==} + + '@swc/types@0.1.9': + resolution: {integrity: sha512-qKnCno++jzcJ4lM4NTfYifm1EFSCeIfKiAHAfkENZAV5Kl9PjJIyd2yeeVv6c/2CckuLyv2NmRC5pv6pm2WQBg==} '@types/argparse@1.0.38': resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} @@ -686,8 +678,8 @@ packages: any-promise@1.3.0: resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} - anymatch@3.1.2: - resolution: {integrity: sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==} + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} argparse@1.0.10: @@ -704,8 +696,8 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - binary-extensions@2.2.0: - resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} brace-expansion@1.1.11: @@ -718,6 +710,10 @@ packages: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + buffer-crc32@0.2.13: resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} @@ -746,8 +742,8 @@ packages: resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} engines: {node: '>= 16'} - chokidar@3.5.2: - resolution: {integrity: sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==} + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} color-convert@1.9.3: @@ -865,6 +861,10 @@ packages: resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} engines: {node: '>=8'} + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + flat@6.0.1: resolution: {integrity: sha512-/3FfIa8mbrg3xE7+wAhWeV+bd7L2Mof+xtZb5dRDKZ+wDvYJK4WDYeIOuOhre5Yv5aQObZrlbRmk3RTSiuQBtw==} engines: {node: '>=18'} @@ -893,6 +893,9 @@ packages: function-bind@1.1.1: resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + get-func-name@2.0.2: resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} @@ -933,6 +936,10 @@ packages: resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} engines: {node: '>= 0.4.0'} + hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} + human-signals@2.1.0: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} engines: {node: '>=10.17.0'} @@ -962,8 +969,9 @@ packages: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} - is-core-module@2.8.0: - resolution: {integrity: sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==} + is-core-module@2.14.0: + resolution: {integrity: sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A==} + engines: {node: '>= 0.4'} is-core-module@2.9.0: resolution: {integrity: sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==} @@ -1252,11 +1260,8 @@ packages: resolve@1.19.0: resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==} - resolve@1.20.0: - resolution: {integrity: sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==} - - resolve@1.22.1: - resolution: {integrity: sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==} + resolve@1.22.8: + resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true reusify@1.0.4: @@ -1797,7 +1802,7 @@ snapshots: '@rushstack/ts-command-line': 4.17.1 colors: 1.2.5 lodash: 4.17.21 - resolve: 1.22.1 + resolve: 1.22.8 semver: 7.5.4 source-map: 0.6.1 typescript: 5.0.4 @@ -1932,7 +1937,7 @@ snapshots: fs-extra: 7.0.1 import-lazy: 4.0.0 jju: 1.4.0 - resolve: 1.22.1 + resolve: 1.22.8 semver: 7.5.4 z-schema: 5.0.5 optionalDependencies: @@ -1940,7 +1945,7 @@ snapshots: '@rushstack/rig-package@0.5.1': dependencies: - resolve: 1.22.1 + resolve: 1.22.8 strip-json-comments: 3.1.1 '@rushstack/ts-command-line@4.17.1': @@ -1950,60 +1955,57 @@ snapshots: colors: 1.2.5 string-argv: 0.3.2 - '@swc/core-android-arm-eabi@1.2.218': + '@swc/core-darwin-arm64@1.6.13': optional: true - '@swc/core-android-arm64@1.2.218': + '@swc/core-darwin-x64@1.6.13': optional: true - '@swc/core-darwin-arm64@1.2.218': + '@swc/core-linux-arm-gnueabihf@1.6.13': optional: true - '@swc/core-darwin-x64@1.2.218': + '@swc/core-linux-arm64-gnu@1.6.13': optional: true - '@swc/core-freebsd-x64@1.2.218': + '@swc/core-linux-arm64-musl@1.6.13': optional: true - '@swc/core-linux-arm-gnueabihf@1.2.218': + '@swc/core-linux-x64-gnu@1.6.13': optional: true - '@swc/core-linux-arm64-gnu@1.2.218': + '@swc/core-linux-x64-musl@1.6.13': optional: true - '@swc/core-linux-arm64-musl@1.2.218': + '@swc/core-win32-arm64-msvc@1.6.13': optional: true - '@swc/core-linux-x64-gnu@1.2.218': + '@swc/core-win32-ia32-msvc@1.6.13': optional: true - '@swc/core-linux-x64-musl@1.2.218': + '@swc/core-win32-x64-msvc@1.6.13': optional: true - '@swc/core-win32-arm64-msvc@1.2.218': - optional: true - - '@swc/core-win32-ia32-msvc@1.2.218': - optional: true + '@swc/core@1.6.13': + dependencies: + '@swc/counter': 0.1.3 + '@swc/types': 0.1.9 + optionalDependencies: + '@swc/core-darwin-arm64': 1.6.13 + '@swc/core-darwin-x64': 1.6.13 + '@swc/core-linux-arm-gnueabihf': 1.6.13 + '@swc/core-linux-arm64-gnu': 1.6.13 + '@swc/core-linux-arm64-musl': 1.6.13 + '@swc/core-linux-x64-gnu': 1.6.13 + '@swc/core-linux-x64-musl': 1.6.13 + '@swc/core-win32-arm64-msvc': 1.6.13 + '@swc/core-win32-ia32-msvc': 1.6.13 + '@swc/core-win32-x64-msvc': 1.6.13 - '@swc/core-win32-x64-msvc@1.2.218': - optional: true + '@swc/counter@0.1.3': {} - '@swc/core@1.2.218': - optionalDependencies: - '@swc/core-android-arm-eabi': 1.2.218 - '@swc/core-android-arm64': 1.2.218 - '@swc/core-darwin-arm64': 1.2.218 - '@swc/core-darwin-x64': 1.2.218 - '@swc/core-freebsd-x64': 1.2.218 - '@swc/core-linux-arm-gnueabihf': 1.2.218 - '@swc/core-linux-arm64-gnu': 1.2.218 - '@swc/core-linux-arm64-musl': 1.2.218 - '@swc/core-linux-x64-gnu': 1.2.218 - '@swc/core-linux-x64-musl': 1.2.218 - '@swc/core-win32-arm64-msvc': 1.2.218 - '@swc/core-win32-ia32-msvc': 1.2.218 - '@swc/core-win32-x64-msvc': 1.2.218 + '@swc/types@0.1.9': + dependencies: + '@swc/counter': 0.1.3 '@types/argparse@1.0.38': {} @@ -2095,10 +2097,10 @@ snapshots: any-promise@1.3.0: {} - anymatch@3.1.2: + anymatch@3.1.3: dependencies: normalize-path: 3.0.0 - picomatch: 2.3.0 + picomatch: 2.3.1 argparse@1.0.10: dependencies: @@ -2110,7 +2112,7 @@ snapshots: balanced-match@1.0.2: {} - binary-extensions@2.2.0: {} + binary-extensions@2.3.0: {} brace-expansion@1.1.11: dependencies: @@ -2125,6 +2127,10 @@ snapshots: dependencies: fill-range: 7.0.1 + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + buffer-crc32@0.2.13: {} buffer-from@1.1.2: {} @@ -2153,10 +2159,10 @@ snapshots: check-error@2.1.1: {} - chokidar@3.5.2: + chokidar@3.6.0: dependencies: - anymatch: 3.1.2 - braces: 3.0.2 + anymatch: 3.1.3 + braces: 3.0.3 glob-parent: 5.1.2 is-binary-path: 2.1.0 is-glob: 4.0.3 @@ -2299,6 +2305,10 @@ snapshots: dependencies: to-regex-range: 5.0.1 + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + flat@6.0.1: {} foreground-child@3.2.1: @@ -2325,6 +2335,8 @@ snapshots: function-bind@1.1.1: {} + function-bind@1.1.2: {} + get-func-name@2.0.2: {} get-stream@6.0.1: {} @@ -2373,6 +2385,10 @@ snapshots: dependencies: function-bind: 1.1.1 + hasown@2.0.2: + dependencies: + function-bind: 1.1.2 + human-signals@2.1.0: {} human-signals@5.0.0: {} @@ -2392,11 +2408,11 @@ snapshots: is-binary-path@2.1.0: dependencies: - binary-extensions: 2.2.0 + binary-extensions: 2.3.0 - is-core-module@2.8.0: + is-core-module@2.14.0: dependencies: - has: 1.0.3 + hasown: 2.0.2 is-core-module@2.9.0: dependencies: @@ -2614,7 +2630,7 @@ snapshots: readdirp@3.6.0: dependencies: - picomatch: 2.3.0 + picomatch: 2.3.1 resolve-from@5.0.0: {} @@ -2623,14 +2639,9 @@ snapshots: is-core-module: 2.9.0 path-parse: 1.0.7 - resolve@1.20.0: - dependencies: - is-core-module: 2.8.0 - path-parse: 1.0.7 - - resolve@1.22.1: + resolve@1.22.8: dependencies: - is-core-module: 2.9.0 + is-core-module: 2.14.0 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 @@ -2699,7 +2710,7 @@ snapshots: sass@1.62.1: dependencies: - chokidar: 3.5.2 + chokidar: 3.6.0 immutable: 4.3.0 source-map-js: 1.0.2 @@ -2864,11 +2875,11 @@ snapshots: minimist: 1.2.5 strip-bom: 3.0.0 - tsup@8.1.0(@microsoft/api-extractor@7.38.3(@types/node@20.14.11))(@swc/core@1.2.218)(postcss@8.4.12)(typescript@5.5.3): + tsup@8.1.0(@microsoft/api-extractor@7.38.3(@types/node@20.14.11))(@swc/core@1.6.13)(postcss@8.4.12)(typescript@5.5.3): dependencies: bundle-require: 4.0.0(esbuild@0.21.4) cac: 6.7.14 - chokidar: 3.5.2 + chokidar: 3.6.0 debug: 4.3.5 esbuild: 0.21.4 execa: 5.1.1 @@ -2882,7 +2893,7 @@ snapshots: tree-kill: 1.2.2 optionalDependencies: '@microsoft/api-extractor': 7.38.3(@types/node@20.14.11) - '@swc/core': 1.2.218 + '@swc/core': 1.6.13 postcss: 8.4.12 typescript: 5.5.3 transitivePeerDependencies: diff --git a/src/plugins/swc-target.ts b/src/plugins/swc-target.ts index 4b7ca6c34..483eda1f3 100644 --- a/src/plugins/swc-target.ts +++ b/src/plugins/swc-target.ts @@ -1,4 +1,4 @@ -import type { ModuleConfig } from '@swc/core/types' +import type { ModuleConfig } from '@swc/core' import { PrettyError } from '../errors' import type { Plugin } from '../plugin' import { localRequire } from '../utils' diff --git a/test/index.test.ts b/test/index.test.ts index 85d23a997..11701fae3 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -386,7 +386,7 @@ test('decorator metadata', async () => { }`, }) const contents = await getFileContent('dist/input.js') - expect(contents).toContain(`__metadata("design:type", Function)`) + expect(contents).toContain(`_ts_metadata("design:type", Function)`) }) test('inject style', async () => { @@ -468,7 +468,7 @@ test('es5 target', async () => { flags: ['--target', 'es5'], }, ) - expect(output).toMatch(/createClass/) + expect(output).toMatch(/_create_class/) expect(outFiles).toEqual(['input.js']) })