Skip to content

Conversation

@deanshub
Copy link

@deanshub deanshub commented Mar 8, 2021

Hi, I'm Nissix, the automated PR bot!

Wix is moving its internal packages to the @wix scope (but still in the internal registry). Publishing new unscoped internal packages is no longer allowed, and all existing packages are moving to @wix. This means changing package names, and also all usages of those packages to their @wix scope version.

This PR is an automatic codemod that moves all of your packages to @wix scope, and changes any usages (pacakge.json, imports, requires, etc..) to their @wix version.

‼️ This codemod is best-effort! Meaning it may not have found and fixed all usages, but it did change your package.jsons. So go over the changes carefully and test this version carefully

If you want to know why we don't support publishing unscoped to the internal registry, check out this article on Dependency Confusion

If you are unsure, need help or have questions, reach us at #wix-scope-migration

Error Log:
npx: installed 234 in 7.608s
warning @wix/yoshi > yoshi-flow-legacy > [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information.
warning @wix/yoshi > yoshi-common > @zeit/[email protected]: "@zeit/webpack-asset-relocator-loader" is deprecated in favor of "@vercel/webpack-asset-relocator-loader".
warning @wix/yoshi > yoshi-flow-legacy > yoshi-webpack-utils > @zeit/[email protected]: "@zeit/webpack-asset-relocator-loader" is deprecated in favor of "@vercel/webpack-asset-relocator-loader".
warning @wix/yoshi > yoshi-flow-legacy > tslint-config-yoshi > [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint-react#210 for more information.
warning " > @storybook/[email protected]" has unmet peer dependency "react-dom@".
warning "@storybook/react > @storybook/[email protected]" has unmet peer dependency "react-dom@
".
warning "@storybook/react > @storybook/[email protected]" has unmet peer dependency "react-dom@".
warning "@storybook/react > @storybook/core > @storybook/[email protected]" has unmet peer dependency "react-dom@
".
warning "@storybook/react > @storybook/core > @storybook/router > @reach/[email protected]" has unmet peer dependency "[email protected] || 16.x || 16.4.0-alpha.0911da3".
warning " > [email protected]" has unmet peer dependency "webpack@>=2".
warning " > [email protected]" has unmet peer dependency "jest@>=24 <25".
warning "@wix/yoshi > yoshi-flow-legacy > [email protected]" has incorrect peer dependency "webpack@^3.1.0".
warning "@wix/yoshi > yoshi-flow-legacy > [email protected]" has unmet peer dependency "babel-core@^7.0.0-0".
warning "@wix/yoshi > yoshi-flow-legacy > [email protected]" has unmet peer dependency "react-dom@^15.0.0 || ^16.0.0 || ^17.0.0 ".
warning "@wix/yoshi > yoshi-flow-legacy > [email protected]" has incorrect peer dependency "tslint@^5.0.0".
warning "@wix/yoshi > yoshi-flow-legacy > [email protected]" has incorrect peer dependency "typescript@^2.4.0".
warning "@wix/yoshi > yoshi-flow-legacy > [email protected]" has unmet peer dependency "prettier@^2.0.5".
warning "@wix/yoshi > yoshi-flow-legacy > tslint-config-yoshi-base > [email protected]" has incorrect peer dependency "tslint@^5.0.0".
warning "@wix/yoshi > yoshi-flow-legacy > tslint-config-yoshi-base > [email protected]" has incorrect peer dependency "tslint@^5.0.0".
warning "@wix/yoshi > yoshi-flow-legacy > tslint-config-yoshi-base > [email protected]" has incorrect peer dependency "tslint@^5.1.0".
warning "@wix/yoshi > yoshi-flow-legacy > tslint-config-yoshi-base > tslint-consistent-codestyle > @fimbul/[email protected]" has incorrect peer dependency "tslint@^5.0.0".
warning "@wix/yoshi > yoshi-flow-legacy > [email protected]" has unmet peer dependency "node-sass@^4.11.0".
warning "@wix/yoshi > yoshi-flow-legacy > tslint-config-yoshi > [email protected]" has incorrect peer dependency "tslint@^5.1.0".
warning "@wix/yoshi > yoshi-flow-legacy > tslint-config-yoshi-base > [email protected]" has unmet peer dependency "prettier@^1.9.0 || ^2.0.0".
warning "@wix/yoshi > yoshi-flow-legacy > tslint-config-yoshi-base > tslint-plugin-prettier > [email protected]" has unmet peer dependency "prettier@>= 0.11.0".
warning "@wix/yoshi > yoshi-flow-legacy > yoshi-webpack-utils > [email protected]" has unmet peer dependency "[email protected]".

Output Log:
Migrating package "storybook-snapper" in .

Migration from non scope to @wix/scoped packages

/tmp/882ec5cc98719bc98434b7b2d980bf2a

rename package.json dependencies/dev/bundled/peer/optional, jest & eslintConfig

package.json

replace import/require in js/ts files

wallaby.js
.storybook/webpack.config.js

replace node_modules in include & files in json configs

tsconfig.json

yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 10.22s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant