diff --git a/package-lock.json b/package-lock.json index 856f7f3e5f..f06fdb4fa5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1714,7 +1714,7 @@ }, "@cocos/babel-plugin-dynamic-import-vars": { "version": "1.0.2", - "resolved": "https://registry.nlark.com/@cocos/babel-plugin-dynamic-import-vars/download/@cocos/babel-plugin-dynamic-import-vars-1.0.2.tgz", + "resolved": "https://registry.npm.taobao.org/@cocos/babel-plugin-dynamic-import-vars/download/@cocos/babel-plugin-dynamic-import-vars-1.0.2.tgz?cache=0&sync_timestamp=1604048375532&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40cocos%2Fbabel-plugin-dynamic-import-vars%2Fdownload%2F%40cocos%2Fbabel-plugin-dynamic-import-vars-1.0.2.tgz", "integrity": "sha1-chaboK/r3jjHTS02cU95rWZBT5g=", "dev": true, "requires": { @@ -1746,9 +1746,9 @@ } }, "@cocos/build-engine": { - "version": "4.2.19-patch.3", - "resolved": "https://registry.npmmirror.com/@cocos/build-engine/download/@cocos/build-engine-4.2.19-patch.3.tgz", - "integrity": "sha512-5ES9mVF42E9WbsWMXkKdX9dXhIrwrPt8zmgW+Ob/3g8iukayYlJmidV18cUz2OO5+QJNKR3VlkSMS8waRZCGgw==", + "version": "4.2.19", + "resolved": "https://registry.npmmirror.com/@cocos/build-engine/download/@cocos/build-engine-4.2.19.tgz", + "integrity": "sha512-gH20zlmoalTEEKrE9xCU/Cr4gxdPh1J8/pznC6nGL5aliQeTXwWAufRKd/WUIfVoICwNC7L6mPrtveD38Yssaw==", "dev": true, "requires": { "@babel/core": "^7.13.10", @@ -1772,7 +1772,7 @@ "rollup-plugin-terser": "^7.0.2", "rollup-plugin-visualizer": "^4.2.0", "semver": "^7.3.2", - "tfig": "^3.2.3", + "tfig": "^3.2.2", "typescript": "^4.3.5", "yargs": "^15.1.0" }, @@ -1785,7 +1785,7 @@ }, "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz", + "resolved": "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz", "integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=", "dev": true, "requires": { @@ -1794,7 +1794,7 @@ }, "cliui": { "version": "6.0.0", - "resolved": "https://registry.nlark.com/cliui/download/cliui-6.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/cliui/download/cliui-6.0.0.tgz", "integrity": "sha1-UR1wLAxOQcoVbX0OlgIfI+EyJbE=", "dev": true, "requires": { @@ -1805,7 +1805,7 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/color-convert/download/color-convert-2.0.1.tgz", + "resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz", "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=", "dev": true, "requires": { @@ -1820,7 +1820,7 @@ }, "find-up": { "version": "4.1.0", - "resolved": "https://registry.npmmirror.com/find-up/download/find-up-4.1.0.tgz?cache=0&sync_timestamp=1633618631704&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Ffind-up%2Fdownload%2Ffind-up-4.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz", "integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=", "dev": true, "requires": { @@ -1845,24 +1845,15 @@ "integrity": "sha1-T5RBKoLbMvNuOwuXQfipf+sDH34=", "dev": true }, - "is-core-module": { - "version": "2.8.1", - "resolved": "https://registry.npmmirror.com/is-core-module/download/is-core-module-2.8.1.tgz", - "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, "is-fullwidth-code-point": { "version": "3.0.0", - "resolved": "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz?cache=0&sync_timestamp=1618552489864&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-fullwidth-code-point%2Fdownload%2Fis-fullwidth-code-point-3.0.0.tgz", "integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=", "dev": true }, "json5": { "version": "2.2.0", - "resolved": "https://registry.npm.taobao.org/json5/download/json5-2.2.0.tgz", + "resolved": "https://registry.npm.taobao.org/json5/download/json5-2.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjson5%2Fdownload%2Fjson5-2.2.0.tgz", "integrity": "sha1-Lf7+cgxrpSXZ69kJlQ8FFTFsiaM=", "dev": true, "requires": { @@ -1871,7 +1862,7 @@ }, "locate-path": { "version": "5.0.0", - "resolved": "https://registry.nlark.com/locate-path/download/locate-path-5.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/locate-path/download/locate-path-5.0.0.tgz", "integrity": "sha1-Gvujlq/WdqbUJQTQpno6frn2KqA=", "dev": true, "requires": { @@ -1880,7 +1871,7 @@ }, "p-locate": { "version": "4.1.0", - "resolved": "https://registry.nlark.com/p-locate/download/p-locate-4.1.0.tgz?cache=0&sync_timestamp=1629892721671&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fp-locate%2Fdownload%2Fp-locate-4.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/p-locate/download/p-locate-4.1.0.tgz", "integrity": "sha1-o0KLtwiLOmApL2aRkni3wpetTwc=", "dev": true, "requires": { @@ -1889,30 +1880,29 @@ }, "path-exists": { "version": "4.0.0", - "resolved": "https://registry.nlark.com/path-exists/download/path-exists-4.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/path-exists/download/path-exists-4.0.0.tgz", "integrity": "sha1-UTvb4tO5XXdi6METfvoZXGxhtbM=", "dev": true }, "require-main-filename": { "version": "2.0.0", - "resolved": "https://registry.nlark.com/require-main-filename/download/require-main-filename-2.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/require-main-filename/download/require-main-filename-2.0.0.tgz", "integrity": "sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs=", "dev": true }, "resolve": { - "version": "1.21.0", - "resolved": "https://registry.npmmirror.com/resolve/download/resolve-1.21.0.tgz", - "integrity": "sha512-3wCbTpk5WJlyE4mSOtDLhqQmGFi0/TD9VPwmiolnk8U0wRgMEktqCXd3vy5buTO3tljvalNvKrjHEfrd2WpEKA==", + "version": "1.20.0", + "resolved": "https://registry.npm.taobao.org/resolve/download/resolve-1.20.0.tgz", + "integrity": "sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU=", "dev": true, "requires": { - "is-core-module": "^2.8.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" + "is-core-module": "^2.2.0", + "path-parse": "^1.0.6" } }, "semver": { "version": "7.3.5", - "resolved": "https://registry.npm.taobao.org/semver/download/semver-7.3.5.tgz", + "resolved": "https://registry.npm.taobao.org/semver/download/semver-7.3.5.tgz?cache=0&sync_timestamp=1616463603361&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsemver%2Fdownload%2Fsemver-7.3.5.tgz", "integrity": "sha1-C2Ich5NI2JmOSw5L6Us/EuYBjvc=", "dev": true, "requires": { @@ -1941,13 +1931,13 @@ }, "which-module": { "version": "2.0.0", - "resolved": "https://registry.nlark.com/which-module/download/which-module-2.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/which-module/download/which-module-2.0.0.tgz", "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, "wrap-ansi": { "version": "6.2.0", - "resolved": "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-6.2.0.tgz?cache=0&sync_timestamp=1631557201275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrap-ansi%2Fdownload%2Fwrap-ansi-6.2.0.tgz", + "resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-6.2.0.tgz", "integrity": "sha1-6Tk7oHEC5skaOyIUePAlfNKFblM=", "dev": true, "requires": { @@ -1958,13 +1948,13 @@ }, "y18n": { "version": "4.0.3", - "resolved": "https://registry.nlark.com/y18n/download/y18n-4.0.3.tgz", + "resolved": "https://registry.npm.taobao.org/y18n/download/y18n-4.0.3.tgz", "integrity": "sha1-tfJZyCzW4zaSHv17/Yv1YN6e7t8=", "dev": true }, "yargs": { "version": "15.4.1", - "resolved": "https://registry.npmmirror.com/yargs/download/yargs-15.4.1.tgz", + "resolved": "https://registry.nlark.com/yargs/download/yargs-15.4.1.tgz?cache=0&sync_timestamp=1620086465147&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-15.4.1.tgz", "integrity": "sha1-DYehbeAa7p2L7Cv7909nhRcw9Pg=", "dev": true, "requires": { @@ -3225,7 +3215,7 @@ }, "@rollup/plugin-babel": { "version": "5.3.0", - "resolved": "https://registry.npmmirror.com/@rollup/plugin-babel/download/@rollup/plugin-babel-5.3.0.tgz", + "resolved": "https://registry.npm.taobao.org/@rollup/plugin-babel/download/@rollup/plugin-babel-5.3.0.tgz", "integrity": "sha1-nLHFFG3daklorZbyCcUMYvkvmHk=", "dev": true, "requires": { @@ -3234,33 +3224,33 @@ }, "dependencies": { "@babel/helper-module-imports": { - "version": "7.16.7", - "resolved": "https://registry.npmmirror.com/@babel/helper-module-imports/download/@babel/helper-module-imports-7.16.7.tgz", - "integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==", + "version": "7.16.0", + "resolved": "https://registry.npmmirror.com/@babel/helper-module-imports/download/@babel/helper-module-imports-7.16.0.tgz", + "integrity": "sha1-kFOOYLZy7PG0SPX09UM9N+eaPsM=", "dev": true, "requires": { - "@babel/types": "^7.16.7" + "@babel/types": "^7.16.0" } }, "@babel/helper-validator-identifier": { - "version": "7.16.7", - "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.16.7.tgz", - "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", + "version": "7.15.7", + "resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.15.7.tgz?cache=0&sync_timestamp=1631920000984&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fhelper-validator-identifier%2Fdownload%2F%40babel%2Fhelper-validator-identifier-7.15.7.tgz", + "integrity": "sha1-Ig35k7/pBKSmsCq08zhaXr9uI4k=", "dev": true }, "@babel/types": { - "version": "7.16.7", - "resolved": "https://registry.npmmirror.com/@babel/types/download/@babel/types-7.16.7.tgz", - "integrity": "sha512-E8HuV7FO9qLpx6OtoGfUQ2cjIYnbFwvZWYBS+87EwtdMvmUPJSwykpovFB+8insbpF0uJcpr8KMUi64XZntZcg==", + "version": "7.16.0", + "resolved": "https://registry.npmmirror.com/@babel/types/download/@babel/types-7.16.0.tgz", + "integrity": "sha1-2zsxOAT5aq3Qt3bEgj4SetZyibo=", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.16.7", + "@babel/helper-validator-identifier": "^7.15.7", "to-fast-properties": "^2.0.0" } }, "@rollup/pluginutils": { "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/@rollup/pluginutils/download/@rollup/pluginutils-3.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/@rollup/pluginutils/download/@rollup/pluginutils-3.1.0.tgz?cache=0&sync_timestamp=1603767889260&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fpluginutils%2Fdownload%2F%40rollup%2Fpluginutils-3.1.0.tgz", "integrity": "sha1-cGtFJO5tyLEDs8mVUz5a1oDAK5s=", "dev": true, "requires": { @@ -3273,7 +3263,7 @@ }, "@rollup/plugin-commonjs": { "version": "11.1.0", - "resolved": "https://registry.npmmirror.com/@rollup/plugin-commonjs/download/@rollup/plugin-commonjs-11.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/@rollup/plugin-commonjs/download/@rollup/plugin-commonjs-11.1.0.tgz", "integrity": "sha1-YGNsenIvVLQeQZ4XCd8FxyNFV+8=", "dev": true, "requires": { @@ -3288,7 +3278,7 @@ "dependencies": { "@rollup/pluginutils": { "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/@rollup/pluginutils/download/@rollup/pluginutils-3.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/@rollup/pluginutils/download/@rollup/pluginutils-3.1.0.tgz?cache=0&sync_timestamp=1603767889260&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fpluginutils%2Fdownload%2F%40rollup%2Fpluginutils-3.1.0.tgz", "integrity": "sha1-cGtFJO5tyLEDs8mVUz5a1oDAK5s=", "dev": true, "requires": { @@ -3301,7 +3291,7 @@ }, "@rollup/plugin-json": { "version": "4.1.0", - "resolved": "https://registry.npm.taobao.org/@rollup/plugin-json/download/@rollup/plugin-json-4.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/@rollup/plugin-json/download/@rollup/plugin-json-4.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fplugin-json%2Fdownload%2F%40rollup%2Fplugin-json-4.1.0.tgz", "integrity": "sha1-VOCYZ65pY8WThE2L16nHGClElvM=", "dev": true, "requires": { @@ -3310,7 +3300,7 @@ "dependencies": { "@rollup/pluginutils": { "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/@rollup/pluginutils/download/@rollup/pluginutils-3.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/@rollup/pluginutils/download/@rollup/pluginutils-3.1.0.tgz?cache=0&sync_timestamp=1603767889260&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fpluginutils%2Fdownload%2F%40rollup%2Fpluginutils-3.1.0.tgz", "integrity": "sha1-cGtFJO5tyLEDs8mVUz5a1oDAK5s=", "dev": true, "requires": { @@ -3323,7 +3313,7 @@ }, "@rollup/plugin-node-resolve": { "version": "7.1.3", - "resolved": "https://registry.npmmirror.com/@rollup/plugin-node-resolve/download/@rollup/plugin-node-resolve-7.1.3.tgz", + "resolved": "https://registry.npm.taobao.org/@rollup/plugin-node-resolve/download/@rollup/plugin-node-resolve-7.1.3.tgz?cache=0&sync_timestamp=1603765888985&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fplugin-node-resolve%2Fdownload%2F%40rollup%2Fplugin-node-resolve-7.1.3.tgz", "integrity": "sha1-gN44Tt+9e/yRARZJEPhgeBUaPso=", "dev": true, "requires": { @@ -3336,7 +3326,7 @@ "dependencies": { "@rollup/pluginutils": { "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/@rollup/pluginutils/download/@rollup/pluginutils-3.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/@rollup/pluginutils/download/@rollup/pluginutils-3.1.0.tgz?cache=0&sync_timestamp=1603767889260&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40rollup%2Fpluginutils%2Fdownload%2F%40rollup%2Fpluginutils-3.1.0.tgz", "integrity": "sha1-cGtFJO5tyLEDs8mVUz5a1oDAK5s=", "dev": true, "requires": { @@ -3349,14 +3339,14 @@ }, "@rollup/plugin-virtual": { "version": "2.0.3", - "resolved": "https://registry.nlark.com/@rollup/plugin-virtual/download/@rollup/plugin-virtual-2.0.3.tgz", + "resolved": "https://registry.npm.taobao.org/@rollup/plugin-virtual/download/@rollup/plugin-virtual-2.0.3.tgz", "integrity": "sha1-CvyI11weE3irKQuOmJjU7bW+DXQ=", "dev": true }, "@rollup/pluginutils": { - "version": "4.1.2", - "resolved": "https://registry.npmmirror.com/@rollup/pluginutils/download/@rollup/pluginutils-4.1.2.tgz", - "integrity": "sha512-ROn4qvkxP9SyPeHaf7uQC/GPFY6L/OWy9+bd9AwcjOAWQwxRscoEyAUD8qCY5o5iL4jqQwoLk2kaTKJPb/HwzQ==", + "version": "4.1.1", + "resolved": "https://registry.nlark.com/@rollup/pluginutils/download/@rollup/pluginutils-4.1.1.tgz?cache=0&sync_timestamp=1626393703548&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40rollup%2Fpluginutils%2Fdownload%2F%40rollup%2Fpluginutils-4.1.1.tgz", + "integrity": "sha1-HU2obdTt7RVlalfZM/2iuaCNR+w=", "dev": true, "requires": { "estree-walker": "^2.0.1", @@ -3365,7 +3355,7 @@ "dependencies": { "estree-walker": { "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/estree-walker/download/estree-walker-2.0.2.tgz", + "resolved": "https://registry.npm.taobao.org/estree-walker/download/estree-walker-2.0.2.tgz?cache=0&sync_timestamp=1611956983677&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Festree-walker%2Fdownload%2Festree-walker-2.0.2.tgz", "integrity": "sha1-UvAQF4wqTBF6d1fP6UKtt9LaTKw=", "dev": true } @@ -3432,7 +3422,7 @@ }, "@types/estree": { "version": "0.0.39", - "resolved": "https://registry.npmmirror.com/@types/estree/download/@types/estree-0.0.39.tgz?cache=0&sync_timestamp=1637264753186&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40types%2Festree%2Fdownload%2F%40types%2Festree-0.0.39.tgz", + "resolved": "https://registry.npm.taobao.org/@types/estree/download/@types/estree-0.0.39.tgz", "integrity": "sha1-4Xfmme4bjCLSMXTKqnQiZEOJUJ8=", "dev": true }, @@ -3520,7 +3510,7 @@ }, "@types/resolve": { "version": "0.0.8", - "resolved": "https://registry.npmmirror.com/@types/resolve/download/@types/resolve-0.0.8.tgz", + "resolved": "https://registry.npm.taobao.org/@types/resolve/download/@types/resolve-0.0.8.tgz?cache=0&sync_timestamp=1596840738717&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fresolve%2Fdownload%2F%40types%2Fresolve-0.0.8.tgz", "integrity": "sha1-8mB00jjgJlnjI84aE9BB7uKA4ZQ=", "dev": true, "requires": { @@ -3781,7 +3771,7 @@ }, "ansi-gray": { "version": "0.1.1", - "resolved": "https://registry.npm.taobao.org/ansi-gray/download/ansi-gray-0.1.1.tgz", + "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", "dev": true, "requires": { @@ -3790,7 +3780,7 @@ }, "ansi-regex": { "version": "2.1.1", - "resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-2.1.1.tgz", + "resolved": "http://registry.npm.taobao.org/ansi-regex/download/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true }, @@ -3805,7 +3795,7 @@ }, "ansi-wrap": { "version": "0.1.0", - "resolved": "https://registry.npm.taobao.org/ansi-wrap/download/ansi-wrap-0.1.0.tgz", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", "dev": true }, @@ -3845,7 +3835,7 @@ }, "arr-diff": { "version": "4.0.0", - "resolved": "https://registry.npm.taobao.org/arr-diff/download/arr-diff-4.0.0.tgz", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", "dev": true }, @@ -3875,7 +3865,7 @@ }, "arr-union": { "version": "3.1.0", - "resolved": "https://registry.npm.taobao.org/arr-union/download/arr-union-3.1.0.tgz", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", "dev": true }, @@ -4015,13 +4005,13 @@ }, "assert-plus": { "version": "1.0.0", - "resolved": "https://registry.npm.taobao.org/assert-plus/download/assert-plus-1.0.0.tgz", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true }, "assign-symbols": { "version": "1.0.0", - "resolved": "https://registry.npm.taobao.org/assign-symbols/download/assign-symbols-1.0.0.tgz", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", "dev": true }, @@ -4069,7 +4059,7 @@ }, "asynckit": { "version": "0.4.0", - "resolved": "https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", "dev": true }, @@ -4081,7 +4071,7 @@ }, "aws-sign2": { "version": "0.7.0", - "resolved": "https://registry.npm.taobao.org/aws-sign2/download/aws-sign2-0.7.0.tgz", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", "dev": true }, @@ -4364,7 +4354,7 @@ }, "bcrypt-pbkdf": { "version": "1.0.2", - "resolved": "https://registry.npm.taobao.org/bcrypt-pbkdf/download/bcrypt-pbkdf-1.0.2.tgz", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", "dev": true, "requires": { @@ -4487,7 +4477,7 @@ }, "builtin-modules": { "version": "3.2.0", - "resolved": "https://registry.nlark.com/builtin-modules/download/builtin-modules-3.2.0.tgz", + "resolved": "https://registry.npm.taobao.org/builtin-modules/download/builtin-modules-3.2.0.tgz?cache=0&sync_timestamp=1608615096289&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbuiltin-modules%2Fdownload%2Fbuiltin-modules-3.2.0.tgz", "integrity": "sha1-RdXbmefuXmvE82LgCL+RerUEmIc=", "dev": true }, @@ -4541,7 +4531,7 @@ }, "caseless": { "version": "0.12.0", - "resolved": "https://registry.npm.taobao.org/caseless/download/caseless-0.12.0.tgz", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", "dev": true }, @@ -4796,7 +4786,7 @@ }, "commondir": { "version": "1.0.1", - "resolved": "https://registry.nlark.com/commondir/download/commondir-1.0.1.tgz", + "resolved": "https://registry.npm.taobao.org/commondir/download/commondir-1.0.1.tgz", "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", "dev": true }, @@ -4875,7 +4865,7 @@ }, "core-util-is": { "version": "1.0.2", - "resolved": "https://registry.npm.taobao.org/core-util-is/download/core-util-is-1.0.2.tgz", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, @@ -4933,7 +4923,7 @@ }, "dashdash": { "version": "1.14.1", - "resolved": "https://registry.npm.taobao.org/dashdash/download/dashdash-1.14.1.tgz", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "dev": true, "requires": { @@ -4986,7 +4976,7 @@ }, "dedent": { "version": "0.7.0", - "resolved": "https://registry.nlark.com/dedent/download/dedent-0.7.0.tgz", + "resolved": "https://registry.npm.taobao.org/dedent/download/dedent-0.7.0.tgz", "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=", "dev": true }, @@ -5101,7 +5091,7 @@ }, "delayed-stream": { "version": "1.0.0", - "resolved": "https://registry.npm.taobao.org/delayed-stream/download/delayed-stream-1.0.0.tgz", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", "dev": true }, @@ -5190,7 +5180,7 @@ }, "ecc-jsbn": { "version": "0.1.2", - "resolved": "https://registry.npm.taobao.org/ecc-jsbn/download/ecc-jsbn-0.1.2.tgz", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", "dev": true, "requires": { @@ -6114,7 +6104,7 @@ }, "estree-walker": { "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/estree-walker/download/estree-walker-1.0.1.tgz", + "resolved": "https://registry.npm.taobao.org/estree-walker/download/estree-walker-1.0.1.tgz", "integrity": "sha1-MbxdYSyWtwQQa0d+bdXYqhOMtwA=", "dev": true }, @@ -6343,7 +6333,7 @@ }, "extend-shallow": { "version": "3.0.2", - "resolved": "https://registry.npm.taobao.org/extend-shallow/download/extend-shallow-3.0.2.tgz", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", "dev": true, "requires": { @@ -6429,7 +6419,7 @@ }, "extsprintf": { "version": "1.3.0", - "resolved": "https://registry.npm.taobao.org/extsprintf/download/extsprintf-1.3.0.tgz", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", "dev": true }, @@ -6574,7 +6564,7 @@ }, "find-up": { "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/find-up/download/find-up-3.0.0.tgz?cache=0&sync_timestamp=1633618631704&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Ffind-up%2Fdownload%2Ffind-up-3.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/find-up/download/find-up-3.0.0.tgz?cache=0&sync_timestamp=1597169872380&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-3.0.0.tgz", "integrity": "sha1-SRafHXmTQwZG2mHsxa41XCHJe3M=", "dev": true, "requires": { @@ -6672,7 +6662,7 @@ }, "forever-agent": { "version": "0.6.1", - "resolved": "https://registry.npm.taobao.org/forever-agent/download/forever-agent-0.6.1.tgz", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", "dev": true }, @@ -7401,7 +7391,7 @@ }, "getpass": { "version": "0.1.7", - "resolved": "https://registry.npm.taobao.org/getpass/download/getpass-0.1.7.tgz", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "dev": true, "requires": { @@ -7703,7 +7693,7 @@ }, "har-schema": { "version": "2.0.0", - "resolved": "https://registry.npm.taobao.org/har-schema/download/har-schema-2.0.0.tgz", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", "dev": true }, @@ -7886,7 +7876,7 @@ }, "http-signature": { "version": "1.2.0", - "resolved": "https://registry.npm.taobao.org/http-signature/download/http-signature-1.2.0.tgz?cache=0&sync_timestamp=1582588506861&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhttp-signature%2Fdownload%2Fhttp-signature-1.2.0.tgz", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "dev": true, "requires": { @@ -8222,7 +8212,7 @@ }, "is-module": { "version": "1.0.0", - "resolved": "https://registry.nlark.com/is-module/download/is-module-1.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/is-module/download/is-module-1.0.0.tgz", "integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=", "dev": true }, @@ -8296,7 +8286,7 @@ }, "is-reference": { "version": "1.2.1", - "resolved": "https://registry.nlark.com/is-reference/download/is-reference-1.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/is-reference/download/is-reference-1.2.1.tgz", "integrity": "sha1-iy2sCzcfS8mU/eq6nrVC0DAC0Lc=", "dev": true, "requires": { @@ -8347,7 +8337,7 @@ }, "is-stream": { "version": "1.1.0", - "resolved": "https://registry.npm.taobao.org/is-stream/download/is-stream-1.1.0.tgz", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", "dev": true }, @@ -8379,7 +8369,7 @@ }, "is-typedarray": { "version": "1.0.0", - "resolved": "https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, @@ -8422,25 +8412,25 @@ }, "isarray": { "version": "1.0.0", - "resolved": "https://registry.npm.taobao.org/isarray/download/isarray-1.0.0.tgz?cache=0&sync_timestamp=1562592096220&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fisarray%2Fdownload%2Fisarray-1.0.0.tgz", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, "isexe": { "version": "2.0.0", - "resolved": "https://registry.npm.taobao.org/isexe/download/isexe-2.0.0.tgz", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, "isobject": { "version": "3.0.1", - "resolved": "https://registry.npm.taobao.org/isobject/download/isobject-3.0.1.tgz", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", "dev": true }, "isstream": { "version": "0.1.2", - "resolved": "https://registry.npm.taobao.org/isstream/download/isstream-0.1.2.tgz", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", "dev": true }, @@ -11924,7 +11914,7 @@ }, "jsbn": { "version": "0.1.1", - "resolved": "https://registry.npm.taobao.org/jsbn/download/jsbn-0.1.1.tgz", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", "dev": true }, @@ -11990,7 +11980,7 @@ }, "json-schema": { "version": "0.2.3", - "resolved": "https://registry.npm.taobao.org/json-schema/download/json-schema-0.2.3.tgz", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", "dev": true }, @@ -12008,7 +11998,7 @@ }, "json-stringify-safe": { "version": "5.0.1", - "resolved": "https://registry.npm.taobao.org/json-stringify-safe/download/json-stringify-safe-5.0.1.tgz", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, @@ -12032,7 +12022,7 @@ }, "jsprim": { "version": "1.4.1", - "resolved": "https://registry.npm.taobao.org/jsprim/download/jsprim-1.4.1.tgz", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", "dev": true, "requires": { @@ -12050,7 +12040,7 @@ }, "kind-of": { "version": "6.0.2", - "resolved": "https://registry.npm.taobao.org/kind-of/download/kind-of-6.0.2.tgz", + "resolved": "http://registry.npm.taobao.org/kind-of/download/kind-of-6.0.2.tgz", "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true }, @@ -12159,7 +12149,7 @@ }, "locate-path": { "version": "3.0.0", - "resolved": "https://registry.nlark.com/locate-path/download/locate-path-3.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/locate-path/download/locate-path-3.0.0.tgz", "integrity": "sha1-2+w7OrdZdYBxtY/ln8QYca8hQA4=", "dev": true, "requires": { @@ -12217,7 +12207,7 @@ }, "magic-string": { "version": "0.25.7", - "resolved": "https://registry.nlark.com/magic-string/download/magic-string-0.25.7.tgz?cache=0&sync_timestamp=1618847046304&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fmagic-string%2Fdownload%2Fmagic-string-0.25.7.tgz", + "resolved": "https://registry.npm.taobao.org/magic-string/download/magic-string-0.25.7.tgz?cache=0&sync_timestamp=1583500518436&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmagic-string%2Fdownload%2Fmagic-string-0.25.7.tgz", "integrity": "sha1-P0l9b9NMZpxnmNy4IfLvMfVEUFE=", "dev": true, "requires": { @@ -12466,8 +12456,8 @@ }, "nanoid": { "version": "3.1.30", - "resolved": "https://registry.npmmirror.com/nanoid/download/nanoid-3.1.30.tgz", - "integrity": "sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==", + "resolved": "https://registry.npmmirror.com/nanoid/download/nanoid-3.1.30.tgz?cache=0&sync_timestamp=1634166192601&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fnanoid%2Fdownload%2Fnanoid-3.1.30.tgz", + "integrity": "sha1-Y/k8xUjSoRPcXfvGO/oJ4rm2Q2I=", "dev": true, "optional": true }, @@ -12813,7 +12803,7 @@ }, "open": { "version": "7.4.2", - "resolved": "https://registry.npmmirror.com/open/download/open-7.4.2.tgz", + "resolved": "https://registry.nlark.com/open/download/open-7.4.2.tgz?cache=0&sync_timestamp=1621868447130&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fopen%2Fdownload%2Fopen-7.4.2.tgz", "integrity": "sha1-uBR+Jtzz5CYxbHMAif1x7dKcIyE=", "dev": true, "optional": true, @@ -12895,7 +12885,7 @@ }, "p-locate": { "version": "3.0.0", - "resolved": "https://registry.nlark.com/p-locate/download/p-locate-3.0.0.tgz?cache=0&sync_timestamp=1629892721671&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fp-locate%2Fdownload%2Fp-locate-3.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/p-locate/download/p-locate-3.0.0.tgz", "integrity": "sha1-Mi1poFwCZLJZl9n0DNiokasAZKQ=", "dev": true, "requires": { @@ -13038,7 +13028,7 @@ }, "performance-now": { "version": "2.1.0", - "resolved": "https://registry.npm.taobao.org/performance-now/download/performance-now-2.1.0.tgz", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", "dev": true }, @@ -13056,13 +13046,13 @@ }, "pinkie": { "version": "2.0.4", - "resolved": "https://registry.npm.taobao.org/pinkie/download/pinkie-2.0.4.tgz", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", "dev": true }, "pinkie-promise": { "version": "2.0.1", - "resolved": "https://registry.npm.taobao.org/pinkie-promise/download/pinkie-promise-2.0.1.tgz", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { @@ -13353,7 +13343,7 @@ }, "randombytes": { "version": "2.1.0", - "resolved": "https://registry.nlark.com/randombytes/download/randombytes-2.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/randombytes/download/randombytes-2.1.0.tgz", "integrity": "sha1-32+ENy8CcNxlzfYpE0mrekc9Tyo=", "dev": true, "requires": { @@ -13790,7 +13780,7 @@ }, "rollup": { "version": "2.26.6", - "resolved": "https://registry.npmmirror.com/rollup/download/rollup-2.26.6.tgz", + "resolved": "https://registry.npm.taobao.org/rollup/download/rollup-2.26.6.tgz", "integrity": "sha1-C0YMHaIkxq8SoelIooxROqEfK5M=", "dev": true, "requires": { @@ -13799,7 +13789,7 @@ "dependencies": { "fsevents": { "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/fsevents/download/fsevents-2.1.3.tgz", + "resolved": "https://registry.npm.taobao.org/fsevents/download/fsevents-2.1.3.tgz?cache=0&sync_timestamp=1612537044236&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffsevents%2Fdownload%2Ffsevents-2.1.3.tgz", "integrity": "sha1-+3OHA66NL5/pAMM4Nt3r7ouX8j4=", "dev": true, "optional": true @@ -13828,27 +13818,27 @@ }, "dependencies": { "@babel/code-frame": { - "version": "7.16.7", - "resolved": "https://registry.npmmirror.com/@babel/code-frame/download/@babel/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", + "version": "7.16.0", + "resolved": "https://registry.npmmirror.com/@babel/code-frame/download/@babel/code-frame-7.16.0.tgz", + "integrity": "sha1-DfyAMJvuyEEeZecGRhxAiwu5tDE=", "dev": true, "requires": { - "@babel/highlight": "^7.16.7" + "@babel/highlight": "^7.16.0" } }, "@babel/helper-validator-identifier": { - "version": "7.16.7", - "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.16.7.tgz", - "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", + "version": "7.15.7", + "resolved": "https://registry.nlark.com/@babel/helper-validator-identifier/download/@babel/helper-validator-identifier-7.15.7.tgz?cache=0&sync_timestamp=1631920000984&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40babel%2Fhelper-validator-identifier%2Fdownload%2F%40babel%2Fhelper-validator-identifier-7.15.7.tgz", + "integrity": "sha1-Ig35k7/pBKSmsCq08zhaXr9uI4k=", "dev": true }, "@babel/highlight": { - "version": "7.16.7", - "resolved": "https://registry.npmmirror.com/@babel/highlight/download/@babel/highlight-7.16.7.tgz", - "integrity": "sha512-aKpPMfLvGO3Q97V0qhw/V2SWNWlwfJknuwAunU7wZLSfrM4xTBvg7E5opUVi1kJTBKihE38CPg4nBiqX83PWYw==", + "version": "7.16.0", + "resolved": "https://registry.npmmirror.com/@babel/highlight/download/@babel/highlight-7.16.0.tgz", + "integrity": "sha1-bOsysspLj182H7f9gh4/3fShclo=", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.16.7", + "@babel/helper-validator-identifier": "^7.15.7", "chalk": "^2.0.0", "js-tokens": "^4.0.0" } @@ -13877,7 +13867,7 @@ }, "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995588464&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz", + "resolved": "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz", "integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=", "dev": true, "optional": true, @@ -13887,7 +13877,7 @@ }, "cliui": { "version": "7.0.4", - "resolved": "https://registry.nlark.com/cliui/download/cliui-7.0.4.tgz", + "resolved": "https://registry.npm.taobao.org/cliui/download/cliui-7.0.4.tgz", "integrity": "sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08=", "dev": true, "optional": true, @@ -13899,7 +13889,7 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/color-convert/download/color-convert-2.0.1.tgz", + "resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz", "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=", "dev": true, "optional": true, @@ -13923,7 +13913,7 @@ }, "is-fullwidth-code-point": { "version": "3.0.0", - "resolved": "https://registry.nlark.com/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz?cache=0&sync_timestamp=1618552489864&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-fullwidth-code-point%2Fdownload%2Fis-fullwidth-code-point-3.0.0.tgz", "integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=", "dev": true, "optional": true @@ -13959,7 +13949,7 @@ }, "wrap-ansi": { "version": "7.0.0", - "resolved": "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-7.0.0.tgz?cache=0&sync_timestamp=1631557201275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrap-ansi%2Fdownload%2Fwrap-ansi-7.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-7.0.0.tgz", "integrity": "sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM=", "dev": true, "optional": true, @@ -13971,7 +13961,7 @@ }, "yargs": { "version": "16.2.0", - "resolved": "https://registry.npmmirror.com/yargs/download/yargs-16.2.0.tgz", + "resolved": "https://registry.nlark.com/yargs/download/yargs-16.2.0.tgz?cache=0&sync_timestamp=1620086465147&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-16.2.0.tgz", "integrity": "sha1-HIK/D2tqZur85+8w43b0mhJHf2Y=", "dev": true, "optional": true, @@ -13987,7 +13977,7 @@ }, "yargs-parser": { "version": "20.2.9", - "resolved": "https://registry.npmmirror.com/yargs-parser/download/yargs-parser-20.2.9.tgz?cache=0&sync_timestamp=1637031023704&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fyargs-parser%2Fdownload%2Fyargs-parser-20.2.9.tgz", + "resolved": "https://registry.nlark.com/yargs-parser/download/yargs-parser-20.2.9.tgz", "integrity": "sha1-LrfcOwKJcY/ClfNidThFxBoMlO4=", "dev": true, "optional": true @@ -14076,7 +14066,7 @@ }, "serialize-javascript": { "version": "4.0.0", - "resolved": "https://registry.nlark.com/serialize-javascript/download/serialize-javascript-4.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/serialize-javascript/download/serialize-javascript-4.0.0.tgz?cache=0&sync_timestamp=1599740689479&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fserialize-javascript%2Fdownload%2Fserialize-javascript-4.0.0.tgz", "integrity": "sha1-tSXhI4SJpez8Qq+sw/6Z5mb0sao=", "dev": true, "requires": { @@ -14397,7 +14387,7 @@ }, "sourcemap-codec": { "version": "1.4.8", - "resolved": "https://registry.nlark.com/sourcemap-codec/download/sourcemap-codec-1.4.8.tgz", + "resolved": "https://registry.npm.taobao.org/sourcemap-codec/download/sourcemap-codec-1.4.8.tgz", "integrity": "sha1-6oBL2UhXQC5pktBaOO8a41qatMQ=", "dev": true }, @@ -14662,7 +14652,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-3.0.1.tgz", + "resolved": "http://registry.npm.taobao.org/strip-ansi/download/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { @@ -14732,12 +14722,6 @@ } } }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/download/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true - }, "sver-compat": { "version": "1.5.0", "resolved": "https://registry.npm.taobao.org/sver-compat/download/sver-compat-1.5.0.tgz", @@ -14855,7 +14839,7 @@ }, "source-map-support": { "version": "0.5.21", - "resolved": "https://registry.npmmirror.com/source-map-support/download/source-map-support-0.5.21.tgz?cache=0&sync_timestamp=1637320322789&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fsource-map-support%2Fdownload%2Fsource-map-support-0.5.21.tgz", + "resolved": "https://registry.npmmirror.com/source-map-support/download/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, "requires": { @@ -14865,7 +14849,7 @@ "dependencies": { "source-map": { "version": "0.6.1", - "resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz", + "resolved": "https://registry.nlark.com/source-map/download/source-map-0.6.1.tgz", "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=", "dev": true } @@ -14891,9 +14875,9 @@ "dev": true }, "tfig": { - "version": "3.2.3", - "resolved": "https://registry.npmmirror.com/tfig/download/tfig-3.2.3.tgz", - "integrity": "sha512-goaWScDX50AorEETh9+QNSRf0UzYU0ztQ/HycpWnTgbwtGA40MuVyu5lbl60XZQQlCFWD4vRLyR2Tyky+9miEQ==", + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/tfig/download/tfig-3.2.2.tgz?cache=0&sync_timestamp=1636105695153&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Ftfig%2Fdownload%2Ftfig-3.2.2.tgz", + "integrity": "sha1-sqgkI7L3FXQLph8jyJv1Q6HvpDY=", "dev": true, "requires": { "fs-extra": "^7.0.1", @@ -14903,13 +14887,13 @@ "dependencies": { "ansi-regex": { "version": "4.1.0", - "resolved": "https://registry.nlark.com/ansi-regex/download/ansi-regex-4.1.0.tgz?cache=0&sync_timestamp=1631634988487&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-regex%2Fdownload%2Fansi-regex-4.1.0.tgz", + "resolved": "https://registry.nlark.com/ansi-regex/download/ansi-regex-4.1.0.tgz", "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=", "dev": true }, "cliui": { "version": "5.0.0", - "resolved": "https://registry.nlark.com/cliui/download/cliui-5.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/cliui/download/cliui-5.0.0.tgz", "integrity": "sha1-3u/P2y6AB4SqNPRvoI4GhRx7u8U=", "dev": true, "requires": { @@ -14932,13 +14916,13 @@ }, "require-main-filename": { "version": "2.0.0", - "resolved": "https://registry.nlark.com/require-main-filename/download/require-main-filename-2.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/require-main-filename/download/require-main-filename-2.0.0.tgz", "integrity": "sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs=", "dev": true }, "string-width": { "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/string-width/download/string-width-3.1.0.tgz?cache=0&sync_timestamp=1632421309919&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fstring-width%2Fdownload%2Fstring-width-3.1.0.tgz", + "resolved": "https://registry.nlark.com/string-width/download/string-width-3.1.0.tgz", "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=", "dev": true, "requires": { @@ -14949,7 +14933,7 @@ }, "strip-ansi": { "version": "5.2.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/download/strip-ansi-5.2.0.tgz", + "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-5.2.0.tgz?cache=0&sync_timestamp=1618553320591&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-5.2.0.tgz", "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", "dev": true, "requires": { @@ -14958,13 +14942,13 @@ }, "which-module": { "version": "2.0.0", - "resolved": "https://registry.nlark.com/which-module/download/which-module-2.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/which-module/download/which-module-2.0.0.tgz", "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, "wrap-ansi": { "version": "5.1.0", - "resolved": "https://registry.nlark.com/wrap-ansi/download/wrap-ansi-5.1.0.tgz?cache=0&sync_timestamp=1631557201275&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrap-ansi%2Fdownload%2Fwrap-ansi-5.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-5.1.0.tgz", "integrity": "sha1-H9H2cjXVttD+54EFYAG/tpTAOwk=", "dev": true, "requires": { @@ -14975,13 +14959,13 @@ }, "y18n": { "version": "4.0.3", - "resolved": "https://registry.nlark.com/y18n/download/y18n-4.0.3.tgz", + "resolved": "https://registry.npm.taobao.org/y18n/download/y18n-4.0.3.tgz", "integrity": "sha1-tfJZyCzW4zaSHv17/Yv1YN6e7t8=", "dev": true }, "yargs": { "version": "13.3.2", - "resolved": "https://registry.npmmirror.com/yargs/download/yargs-13.3.2.tgz", + "resolved": "https://registry.nlark.com/yargs/download/yargs-13.3.2.tgz?cache=0&sync_timestamp=1620086465147&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs%2Fdownload%2Fyargs-13.3.2.tgz", "integrity": "sha1-rX/+/sGqWVZayRX4Lcyzipwxot0=", "dev": true, "requires": { @@ -14999,7 +14983,7 @@ }, "yargs-parser": { "version": "13.1.2", - "resolved": "https://registry.npmmirror.com/yargs-parser/download/yargs-parser-13.1.2.tgz?cache=0&sync_timestamp=1637031023704&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fyargs-parser%2Fdownload%2Fyargs-parser-13.1.2.tgz", + "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-13.1.2.tgz", "integrity": "sha1-Ew8JcC667vJlDVTObj5XBvek+zg=", "dev": true, "requires": { @@ -15037,7 +15021,7 @@ }, "time-stamp": { "version": "1.1.0", - "resolved": "https://registry.npm.taobao.org/time-stamp/download/time-stamp-1.1.0.tgz", + "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", "dev": true }, @@ -15220,7 +15204,7 @@ }, "tunnel-agent": { "version": "0.6.0", - "resolved": "https://registry.npm.taobao.org/tunnel-agent/download/tunnel-agent-0.6.0.tgz", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "dev": true, "requires": { @@ -15229,7 +15213,7 @@ }, "tweetnacl": { "version": "0.14.5", - "resolved": "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-0.14.5.tgz?cache=0&sync_timestamp=1581364203962&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftweetnacl%2Fdownload%2Ftweetnacl-0.14.5.tgz", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", "dev": true }, @@ -15262,7 +15246,7 @@ }, "typedarray": { "version": "0.0.6", - "resolved": "https://registry.npm.taobao.org/typedarray/download/typedarray-0.0.6.tgz", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, @@ -15619,7 +15603,7 @@ }, "util-deprecate": { "version": "1.0.2", - "resolved": "https://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, @@ -15688,7 +15672,7 @@ }, "verror": { "version": "1.10.0", - "resolved": "https://registry.npm.taobao.org/verror/download/verror-1.10.0.tgz", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "dev": true, "requires": { @@ -15922,7 +15906,7 @@ }, "y18n": { "version": "5.0.8", - "resolved": "https://registry.nlark.com/y18n/download/y18n-5.0.8.tgz", + "resolved": "https://registry.npm.taobao.org/y18n/download/y18n-5.0.8.tgz", "integrity": "sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU=", "dev": true, "optional": true diff --git a/package.json b/package.json index 1d12c5b05b..514e8df3e1 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@babel/core": "^7.13.10", "@babel/preset-env": "7.8.7", "@cocos/babel-preset-cc": "2.2.0", - "@cocos/build-engine": "4.2.19-patch.3", + "@cocos/build-engine": "4.2.19", "@cocos/typedoc-plugin-internal-external": "^1.0.1", "@cocos/typedoc-plugin-localization": "^1.0.0", "@types/fs-extra": "^5.0.4", diff --git a/scripts/build-engine/package-lock.json b/scripts/build-engine/package-lock.json index cd66d9445d..54cb2ce197 100644 --- a/scripts/build-engine/package-lock.json +++ b/scripts/build-engine/package-lock.json @@ -1,6 +1,6 @@ { "name": "@cocos/build-engine", - "version": "4.2.19-patch.3", + "version": "4.2.19-patch.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2725,9 +2725,9 @@ } }, "tfig": { - "version": "3.2.3", - "resolved": "https://registry.npmmirror.com/tfig/download/tfig-3.2.3.tgz", - "integrity": "sha512-goaWScDX50AorEETh9+QNSRf0UzYU0ztQ/HycpWnTgbwtGA40MuVyu5lbl60XZQQlCFWD4vRLyR2Tyky+9miEQ==", + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/tfig/download/tfig-3.2.2.tgz?cache=0&sync_timestamp=1636105695153&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Ftfig%2Fdownload%2Ftfig-3.2.2.tgz", + "integrity": "sha1-sqgkI7L3FXQLph8jyJv1Q6HvpDY=", "requires": { "fs-extra": "^7.0.1", "typescript": "^4.2.3", @@ -2851,7 +2851,7 @@ }, "yargs-parser": { "version": "13.1.2", - "resolved": "https://registry.npmmirror.com/yargs-parser/download/yargs-parser-13.1.2.tgz?cache=0&sync_timestamp=1637031023704&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fyargs-parser%2Fdownload%2Fyargs-parser-13.1.2.tgz", + "resolved": "https://registry.nlark.com/yargs-parser/download/yargs-parser-13.1.2.tgz?cache=0&sync_timestamp=1624233514145&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fyargs-parser%2Fdownload%2Fyargs-parser-13.1.2.tgz", "integrity": "sha1-Ew8JcC667vJlDVTObj5XBvek+zg=", "requires": { "camelcase": "^5.0.0", diff --git a/scripts/build-engine/package.json b/scripts/build-engine/package.json index dd33733e1c..3d6a04eaa5 100644 --- a/scripts/build-engine/package.json +++ b/scripts/build-engine/package.json @@ -1,6 +1,6 @@ { "name": "@cocos/build-engine", - "version": "4.2.19-patch.3", + "version": "4.2.19-patch.1", "description": "", "repository": { "type": "git", @@ -32,7 +32,7 @@ "rollup-plugin-progress": "^1.1.1", "rollup-plugin-terser": "^7.0.2", "semver": "^7.3.2", - "tfig": "^3.2.3", + "tfig": "^3.2.2", "typescript": "^4.3.5", "yargs": "^15.1.0" }, diff --git a/scripts/build-engine/src/build-declarations/index.ts b/scripts/build-engine/src/build-declarations/index.ts index a88df60d73..e7d347eec7 100644 --- a/scripts/build-engine/src/build-declarations/index.ts +++ b/scripts/build-engine/src/build-declarations/index.ts @@ -8,7 +8,6 @@ const DEBUG = false; const REMOVE_TMP = true; const REMOVE_OLD = !DEBUG; const RECOMPILE = !DEBUG; -const REMOVE_UNBUNDLED_CACHE = !DEBUG; export async function build (options: { engine: string; @@ -36,15 +35,14 @@ export async function build (options: { const tsConfigPath = statsQuery.tsConfigPath; - const unbundledOutDir = ps.join(outDir, '__before_bundle'); + const unbundledOutFile = ps.join(outDir, `cc-before-rollup.js`); const parsedCommandLine = ts.getParsedCommandLineOfConfigFile( tsConfigPath, { declaration: true, noEmit: false, emitDeclarationOnly: true, - outFile: undefined, - outDir: unbundledOutDir, - allowJs: true, + outFile: unbundledOutFile, + outDir: undefined, }, { onUnRecoverableConfigFileDiagnostic: () => {}, useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames, @@ -58,12 +56,28 @@ export async function build (options: { throw new Error(`Can not get 'parsedCommandLine'.`); } - const unbundledOutDirNormalized = ps.resolve(engine, parsedCommandLine.options.outDir!); - console.debug(`Unbundled will write to: ${unbundledOutDirNormalized}`); + const outputJSPath = ps.join(ps.dirname(tsConfigPath), unbundledOutFile); + // console.log(outputJSPath); - await fs.ensureDir(unbundledOutDirNormalized); + const extName = ps.extname(outputJSPath); + if (extName !== '.js') { + console.error(`Unexpected output extension ${extName}, please check it.`); + return undefined; + } + const dirName = ps.dirname(outputJSPath); + const baseName = ps.basename(outputJSPath, extName); + const destExtensions = [ + '.d.ts', + '.d.ts.map', + ]; if (REMOVE_OLD) { - await fs.emptyDir(unbundledOutDirNormalized); + for (const destExtension of destExtensions) { + const destFile = ps.join(dirName, baseName + destExtension); + if (await fs.pathExists(destFile)) { + console.log(`Delete old ${destFile}.`); + await fs.unlink(destFile); + } + } } console.log(`Generating...`); @@ -116,58 +130,31 @@ export async function build (options: { } } - const patchSpineCoreDtsSource = ps.join(engine, 'cocos', 'spine', 'lib', 'spine-core.d.ts'); - const patchSpineCoreDtsTarget = ps.join(unbundledOutDirNormalized, 'cocos', 'spine', 'lib', 'spine-core.d.ts'); - if (!await fs.pathExists(patchSpineCoreDtsSource)) { - console.debug(`Does 'cocos/spine/lib/spine-core.d.ts' no longer existed? I have a patch for it.`); - } else { - console.debug(`It's ${new Date().toLocaleString()}, we're still doing the hack for spine-core.d.ts`); - await fs.ensureDir(ps.dirname(patchSpineCoreDtsTarget)); - await fs.copyFile( - patchSpineCoreDtsSource, - patchSpineCoreDtsTarget, - ); + const tscOutputDtsFile = ps.join(dirName, `${baseName}.d.ts`); + if (!await fs.pathExists(tscOutputDtsFile)) { + console.error(`Failed to compile.`); + return false; } const types = parsedCommandLine.options.types?.map((typeFile) => `${typeFile}.d.ts`); if (types) { for (const file of types) { - const destPath = ps.join(unbundledOutDirNormalized, ps.isAbsolute(file) ? ps.basename(file) : file); + const destPath = ps.join(outDir, ps.isAbsolute(file) ? ps.basename(file) : file); await fs.ensureDir(ps.dirname(destPath)); await fs.copyFile(file, destPath); } } - const giftInputs: string[] = []; - const listGiftInputs = async (dir: string) => { - for (const file of await fs.readdir(dir)) { - const path = ps.join(dir, file); - // eslint-disable-next-line no-await-in-loop - const stats = await fs.stat(path); - if (stats.isFile()) { - giftInputs.push(path); - } else if (stats.isDirectory()) { - // eslint-disable-next-line no-await-in-loop - await listGiftInputs(path); - } - } - }; - await listGiftInputs(unbundledOutDirNormalized); + const giftInputs = [tscOutputDtsFile]; const giftEntries: Record = { }; - const cleanupFiles: string[] = []; - - const getModuleNameInTsOutFile = (moduleFile: string) => { - const path = ps.relative(statsQuery.path, moduleFile); - const pathDts = path.replace(/\.ts$/, '.d.ts'); - return ps.join(unbundledOutDirNormalized, pathDts); - }; + const cleanupFiles = [tscOutputDtsFile]; if (withExports) { for (const exportEntry of featureUnits) { giftEntries[exportEntry] = getModuleNameInTsOutFile( - statsQuery.getFeatureUnitFile(exportEntry), + statsQuery.getFeatureUnitFile(exportEntry), statsQuery, ); } } @@ -175,39 +162,37 @@ export async function build (options: { if (withEditorExports) { for (const editorExportModule of editorExportModules) { giftEntries[editorExportModule] = getModuleNameInTsOutFile( - statsQuery.getEditorPublicModuleFile(editorExportModule), + statsQuery.getEditorPublicModuleFile(editorExportModule), statsQuery, ); } } - let ccDtsFile: string | undefined; if (withIndex && !withExports) { - ccDtsFile = ps.join(unbundledOutDirNormalized, 'virtual-cc.d.ts'); - giftEntries.cc = ccDtsFile; + giftEntries.cc = 'cc'; + const ccDtsFile = ps.join(dirName, 'virtual-cc.d.ts'); giftInputs.push(ccDtsFile); cleanupFiles.push(ccDtsFile); - const code = `${ + const code = `declare module "cc" {\n${ statsQuery.evaluateIndexModuleSource(featureUnits, - (featureUnit) => getModuleNameInTsOutFile(statsQuery.getFeatureUnitFile(featureUnit)).replace(/\\/g, '/').replace(/\.d.ts$/, '')) - }\n`; + (featureUnit) => getModuleNameInTsOutFile(statsQuery.getFeatureUnitFile(featureUnit), statsQuery)) + }\n}`; await fs.writeFile(ccDtsFile, code, { encoding: 'utf8' }); } console.log(`Bundling...`); try { - const indexOutputPath = ps.join(outDir, 'cc.d.ts'); + const indexOutputPath = ps.join(dirName, 'cc.d.ts'); const giftResult = gift.bundle({ input: giftInputs, - rootDir: unbundledOutDirNormalized, name: 'cc', rootModule: 'index', entries: giftEntries, priority: [ - ...(ccDtsFile ? [ccDtsFile] : []), // Things should be exported to 'cc' as far as possible. + 'cc', // Things should be exported to 'cc' as far as possible. ], groups: [ - { test: /^cc\/editor.*$/, path: ps.join(outDir, 'cc.editor.d.ts') }, - { test: /^cc\/.*$/, path: ps.join(outDir, 'index.d.ts') }, + { test: /^cc\/editor.*$/, path: ps.join(dirName, 'cc.editor.d.ts') }, + { test: /^cc\/.*$/, path: ps.join(dirName, 'index.d.ts') }, { test: /^cc.*$/, path: indexOutputPath }, ], nonExportedSymbolDistribution: [{ @@ -237,10 +222,6 @@ export async function build (options: { if (REMOVE_TMP) { await Promise.all((cleanupFiles.map(async (file) => fs.unlink(file)))); } - - if (REMOVE_UNBUNDLED_CACHE) { - await fs.remove(unbundledOutDirNormalized); - } } return true; @@ -254,3 +235,9 @@ export function buildIndexModule (featureUnits: string[], statsQuery: StatsQuery .join('\n') }\n}`; } + +function getModuleNameInTsOutFile (moduleFile: string, statsQuery: StatsQuery) { + const path = ps.relative(statsQuery.path, moduleFile); + const tsOutFileModuleName = ps.join(ps.dirname(path), ps.basename(path, ps.extname(path))).replace(/\\/g, '/'); + return tsOutFileModuleName; +}