From d06ed1b477991c7bcf5d3d0d962adbae4da222df Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 24 Jan 2023 15:42:37 -0800 Subject: [PATCH] fix: actually add swc to sw package --- packages/sw/package.json | 9 ++++++++ pnpm-lock.yaml | 47 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/packages/sw/package.json b/packages/sw/package.json index 70990abf67..cf4ec5bffe 100644 --- a/packages/sw/package.json +++ b/packages/sw/package.json @@ -7,7 +7,16 @@ "lint": "pnpm rome check \"src/**/*.ts\"" }, "dependencies": { + "@swc/cli": "^0.1.59", + "@swc/core": "^1.3.26", "calckey-js": "^0.0.20", "idb-keyval": "^6.2.0" + }, + "optionalDependencies": { + "@swc/core-android-arm64": "1.3.11" + }, + "devDependencies": { + "swc-loader": "^0.2.3", + "webpack": "^5.75.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7a2c2f8696..c61a3ecfed 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -534,11 +534,23 @@ importers: packages/sw: specifiers: + '@swc/cli': ^0.1.59 + '@swc/core': ^1.3.26 + '@swc/core-android-arm64': 1.3.11 calckey-js: ^0.0.20 idb-keyval: ^6.2.0 + swc-loader: ^0.2.3 + webpack: ^5.75.0 dependencies: + '@swc/cli': 0.1.59_@swc+core@1.3.26 + '@swc/core': 1.3.26 calckey-js: 0.0.20 idb-keyval: 6.2.0 + optionalDependencies: + '@swc/core-android-arm64': 1.3.11 + devDependencies: + swc-loader: 0.2.3_v4imsvpumnwpgduroyqmpcfjiy + webpack: 5.75.0_@swc+core@1.3.26 packages: @@ -1554,6 +1566,26 @@ packages: resolution: {integrity: sha512-Uy0+khmZqUrUGm5dmMqVlnvufZRSK0FbYzVgp0UMstm+F5+W2/jnEEQyc9vo1ZR/E5ZI/B1WjjoTqBqwJL6Krw==} dev: false + /@swc/cli/0.1.59_@swc+core@1.3.26: + resolution: {integrity: sha512-BlX3wIxYTwdtR22dIqZ3FEIOJPqnlByAp4JY46OMZi2UXMB3ZbOzefawD2ZlLafRUWyy5NtiZZty5waKzaYRnA==} + engines: {node: '>= 12.13'} + hasBin: true + peerDependencies: + '@swc/core': ^1.2.66 + chokidar: ^3.5.1 + peerDependenciesMeta: + chokidar: + optional: true + dependencies: + '@swc/core': 1.3.26 + bin-wrapper: 4.1.0 + commander: 7.2.0 + fast-glob: 3.2.12 + semver: 7.3.8 + slash: 3.0.0 + source-map: 0.7.4 + dev: false + /@swc/cli/0.1.59_cr4os3zuq4gmhe2qzzjtw2pxeu: resolution: {integrity: sha512-BlX3wIxYTwdtR22dIqZ3FEIOJPqnlByAp4JY46OMZi2UXMB3ZbOzefawD2ZlLafRUWyy5NtiZZty5waKzaYRnA==} engines: {node: '>= 12.13'} @@ -3222,7 +3254,7 @@ packages: /axios/0.25.0_debug@4.3.4: resolution: {integrity: sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==} dependencies: - follow-redirects: 1.15.2 + follow-redirects: 1.15.2_debug@4.3.4 transitivePeerDependencies: - debug dev: true @@ -6173,6 +6205,19 @@ packages: peerDependenciesMeta: debug: optional: true + dev: false + + /follow-redirects/1.15.2_debug@4.3.4: + resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==} + engines: {node: '>=4.0'} + peerDependencies: + debug: '*' + peerDependenciesMeta: + debug: + optional: true + dependencies: + debug: 4.3.4 + dev: true /for-each/0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==}