Merge pull request #197 from napi-rs/upgrade-swc

chore: upgrade swc
This commit is contained in:
LongYinan 2020-09-26 17:56:00 +08:00 committed by GitHub
commit c85478655d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 43 deletions

View file

@ -69,7 +69,7 @@
}, },
"devDependencies": { "devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1", "@istanbuljs/nyc-config-typescript": "^1.0.1",
"@swc-node/register": "^0.5.3", "@swc-node/register": "^1.0.0",
"@types/debug": "^4.1.5", "@types/debug": "^4.1.5",
"@types/inquirer": "^7.3.1", "@types/inquirer": "^7.3.1",
"@types/lodash": "^4.14.161", "@types/lodash": "^4.14.161",
@ -91,6 +91,6 @@
"typescript": "^4.0.3" "typescript": "^4.0.3"
}, },
"optionalDependencies": { "optionalDependencies": {
"@swc-node/core-linux-musl": "^0.7.6" "@swc/core-linux-musl": "^1.2.34"
} }
} }

View file

@ -389,46 +389,22 @@
resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ== integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==
"@swc-node/core-darwin@^0.7.6": "@swc-node/core@^1.0.0":
version "0.7.6" version "1.0.0"
resolved "https://registry.npmjs.org/@swc-node/core-darwin/-/core-darwin-0.7.6.tgz#0ced2f14ae1770978a0fae57bb3bacd21bb9901d" resolved "https://registry.npmjs.org/@swc-node/core/-/core-1.0.0.tgz#d719abe9d5aa49bb169153d1f3b8ef5364f6f30d"
integrity sha512-AtGIvQRYpxoDHfn1dYRlzsjQeiZHUeBIkZ30Y/qsxxr16rZdroctyLfdweHvlRZ3XDrz53JuEZmzPZy6g6EAFA== integrity sha512-U0ebtvZVAVjvIjIw2NW07siJFszoOniE5DX1XB08RRvrV1hSI/yuTT81z1onoI66Fhc1l+AJbZLq4U19VEBCOA==
"@swc-node/core-linux-musl@^0.7.6":
version "0.7.6"
resolved "https://registry.npmjs.org/@swc-node/core-linux-musl/-/core-linux-musl-0.7.6.tgz#5237835c3b9a51970ca44943ec4eee65004329cd"
integrity sha512-pF1Ngr0v2Xc4fsNdU10v1X2ypR1vjIm9eQtcHqahN7eN5udCrWeHEluA0ohgQxHpQkXA8MokNT8EF1fpSUnCuw==
"@swc-node/core-linux@^0.7.6":
version "0.7.6"
resolved "https://registry.npmjs.org/@swc-node/core-linux/-/core-linux-0.7.6.tgz#e7052c82cf448d9e79fde27549f76e451cfbad3c"
integrity sha512-U78tQS9voIP4fOtYkEhZTZq1XwbMkHagwDc3uSZfAthJ9Clii2Aj1AzbEO7FaFysxBBq38XFectOf/fe9YwQNA==
"@swc-node/core-win32@^0.7.6":
version "0.7.6"
resolved "https://registry.npmjs.org/@swc-node/core-win32/-/core-win32-0.7.6.tgz#6944afe76b346725b753d5ea0def363857b3ab85"
integrity sha512-CUNG1kDXITphk79+Cj3oUem5EeLUG80TVEKIzjxuLy4WfTOWAiF2U7SY4oF/Lf5rLyMuCVLhyZL5VCZKXlfB4Q==
"@swc-node/core@^0.7.6":
version "0.7.6"
resolved "https://registry.npmjs.org/@swc-node/core/-/core-0.7.6.tgz#b260905701fa280c9302fad671dfd94ed2db75b4"
integrity sha512-nSCri4UnHxV/M7+esnajVuAOnthoh3E9S1GOxkxDTK1j0HXcRPeD5uknR9wLp1cQkx7SJMA9C5ma/6h3cdOibQ==
dependencies: dependencies:
"@node-rs/helper" "^0.4.0" "@swc/core" "^1.2.34"
optionalDependencies:
"@swc-node/core-darwin" "^0.7.6"
"@swc-node/core-linux" "^0.7.6"
"@swc-node/core-win32" "^0.7.6"
"@swc-node/register@^0.5.3": "@swc-node/register@^1.0.0":
version "0.5.3" version "1.0.0"
resolved "https://registry.npmjs.org/@swc-node/register/-/register-0.5.3.tgz#1f960fe4202a53625a9762ea66576eb26cb5a65a" resolved "https://registry.npmjs.org/@swc-node/register/-/register-1.0.0.tgz#c7bee0feea44b08c765b6745f928e7ed2f670511"
integrity sha512-6LaoX3OOreGmaTsqbgrKwyEdjMZbcHtpW9AqsHG7h+n5G/wVNixHL7OSA90uD4Q0nx3xKELZH6bTCKtjqWaiwQ== integrity sha512-pUz5KvJjg+cNlwTeqW4FOQ1nwWsqbFMifysKPEseBCiW/QKd/NhufYPdqkAa8uvMBEcxEtFsH7mnFT/es5AbCg==
dependencies: dependencies:
"@swc-node/core" "^0.7.6" "@swc-node/core" "^1.0.0"
"@swc-node/sourcemap-support" "^0.1.8" "@swc-node/sourcemap-support" "^0.1.8"
chalk "^4.1.0" chalk "^4.1.0"
debug "^4.1.1" debug "^4.2.0"
pirates "^4.0.1" pirates "^4.0.1"
"@swc-node/sourcemap-support@^0.1.8": "@swc-node/sourcemap-support@^0.1.8":
@ -438,6 +414,37 @@
dependencies: dependencies:
source-map-support "^0.5.19" source-map-support "^0.5.19"
"@swc/core-darwin@^1.2.34":
version "1.2.34"
resolved "https://registry.npmjs.org/@swc/core-darwin/-/core-darwin-1.2.34.tgz#dd69b1a12b7a2cb9e43a5e8a78a8d2d7ff392f53"
integrity sha512-OKOHOcqBgvBQiGC7doCa4CXKVDpO1QMIQogCFelqs82YbcQa6YEWvB6+ujiw1oUWaXP2fed1TFHDpHFJWorxIQ==
"@swc/core-linux-musl@^1.2.34":
version "1.2.34"
resolved "https://registry.npmjs.org/@swc/core-linux-musl/-/core-linux-musl-1.2.34.tgz#6853a747ce23dcb42754a04bdf753cb15f96a67d"
integrity sha512-et8kebSpVjWPNzuxqGALShhsIJymHzX63Auyqi9oyPiR9vEvMiIGvbTwH5eAHdM0Qc5iV0u8XyidHpoN2wtTYA==
"@swc/core-linux@^1.2.34":
version "1.2.34"
resolved "https://registry.npmjs.org/@swc/core-linux/-/core-linux-1.2.34.tgz#927fbdbfed1e842bbda4dc96d1407c5a0e67234d"
integrity sha512-85ryQe9M4xPY9R4mRfbU/Gk/z45GVPG1LiJhf99jA+7RmNiffwJXLRuD8SwkE5rKHO8My1mVCha8uBQnZIDhEg==
"@swc/core-win32@^1.2.34":
version "1.2.34"
resolved "https://registry.npmjs.org/@swc/core-win32/-/core-win32-1.2.34.tgz#2eeba70a72bb71acf4efcfab099d4cb96826b587"
integrity sha512-DxxKEo9Q/jOGTXizPJXdKkfSjGU3cU4df9ZY7nslWVp0c7r+hnHcplh2A1CklOdLinUTBUP+3DHtLTyhLElPBg==
"@swc/core@^1.2.34":
version "1.2.34"
resolved "https://registry.npmjs.org/@swc/core/-/core-1.2.34.tgz#bd1d64d219cf116667517aadd7eb804045743d7c"
integrity sha512-V0qMusSNpKUwkjN42zfeEEILldnAx+XFVH7q96ofrM/MRYDWjYZJU9eaCwAGNb/bLS7+UWq8e/nxxpOvKLnjdQ==
dependencies:
"@node-rs/helper" "^0.4.0"
optionalDependencies:
"@swc/core-darwin" "^1.2.34"
"@swc/core-linux" "^1.2.34"
"@swc/core-win32" "^1.2.34"
"@szmarczak/http-timer@^1.1.2": "@szmarczak/http-timer@^1.1.2":
version "1.1.2" version "1.1.2"
resolved "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421" resolved "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421"
@ -2073,9 +2080,9 @@ is-binary-path@~2.1.0:
binary-extensions "^2.0.0" binary-extensions "^2.0.0"
is-callable@^1.1.4, is-callable@^1.2.0: is-callable@^1.1.4, is-callable@^1.2.0:
version "1.2.1" version "1.2.2"
resolved "https://registry.npmjs.org/is-callable/-/is-callable-1.2.1.tgz#4d1e21a4f437509d25ce55f8184350771421c96d" resolved "https://registry.npmjs.org/is-callable/-/is-callable-1.2.2.tgz#c7c6715cd22d4ddb48d3e19970223aceabb080d9"
integrity sha512-wliAfSzx6V+6WfMOmus1xy0XvSgf/dlStkvTfq7F0g4bOIW0PSUbnyse3NhDwdyYS1ozfUtAAySqTws3z9Eqgg== integrity sha512-dnMqspv5nU3LoewK2N/y7KLtxtakvTuaCsU9FU50/QDmdbHNy/4/JuRtMHqRU22o3q+W89YQndQEeCVwK+3qrA==
is-ci@^2.0.0: is-ci@^2.0.0:
version "2.0.0" version "2.0.0"
@ -3112,9 +3119,9 @@ prettier@^2.1.2:
integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg== integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==
pretty-ms@^7.0.0: pretty-ms@^7.0.0:
version "7.0.0" version "7.0.1"
resolved "https://registry.npmjs.org/pretty-ms/-/pretty-ms-7.0.0.tgz#45781273110caf35f55cab21a8a9bd403a233dc0" resolved "https://registry.npmjs.org/pretty-ms/-/pretty-ms-7.0.1.tgz#7d903eaab281f7d8e03c66f867e239dc32fb73e8"
integrity sha512-J3aPWiC5e9ZeZFuSeBraGxSkGMOvulSWsxDByOcbD1Pr75YL3LSNIKIb52WXbCLE1sS5s4inBBbryjF4Y05Ceg== integrity sha512-973driJZvxiGOQ5ONsFhOF/DtzPMOMtgC11kCpUrPGMTgqp2q/1gwzCquocrN33is0VZ5GFHXZYMM9l6h67v2Q==
dependencies: dependencies:
parse-ms "^2.1.0" parse-ms "^2.1.0"