Skip to content

[7.0] Switch to scoped packages - #5294

Closed
hzoo wants to merge 6 commits into
masterfrom
scoped-pkgs
Closed

hzoo wants to merge 6 commits into
masterfrom
scoped-pkgs

Conversation

@hzoo

@hzoo hzoo commented Feb 10, 2017 •

Copy link
Copy Markdown
Member

Ref https://twitter.com/left_pad/status/821551189166878722

  • prevents package squatting (babel-preset-es2016,17,etc)
  • easier to know what is official vs community
  • con: no download counts
  • workaroud: just alias @babel/cli -> babel-cli?

This is going to be an annoying PR so will make a few commits and you'll probably want to check out locally as well?

checking for "babel- but can check 'babel-, `babel-, /babel-


regexes:

packages/babel-*/package.json

"name" : "babel- -> "name" : "@babel/
"babel-(.+?)": "7.0.0-beta.3" -> "@babel/$1": "7.0.0-beta.3"

/Users/hzhu/dev/babel-7.0/packages/babel-plugin-transform-async-functions/package.json:
   12:     "babel-plugin-syntax-async-functions": "7.0.0-beta.0"

/Users/hzhu/dev/babel-7.0/packages/babel-plugin-transform-async-to-generator/package.json:
   13:     "babel-plugin-syntax-async-functions": "7.0.0-beta.0"

/Users/hzhu/dev/babel-7.0/packages/babel-plugin-transform-async-to-module-method/package.json:
   14:     "babel-plugin-syntax-async-functions": "7.0.0-beta.0",

/Users/hzhu/dev/babel-7.0/packages/babel-plugin-transform-exponentiation-operator/package.json:
   13:     "babel-plugin-syntax-exponentiation-operator": "7.0.0-beta.0"

/Users/hzhu/dev/babel-7.0/packages/babel-preset-es2017/package.json:
   11:     "babel-plugin-syntax-trailing-function-commas": "7.0.0-beta.0",

/Users/hzhu/dev/babel-7.0/packages/babel-standalone/package.json:
   16:     "babel-plugin-syntax-async-functions": "7.0.0-beta.0",
   22:     "babel-plugin-syntax-exponentiation-operator": "7.0.0-beta.0",
   30:     "babel-plugin-syntax-trailing-function-commas": "7.0.0-beta.0",
   66:     "babel-plugin-transform-export-extensions": "7.0.0-alpha.19",

packages/babel-*/src/

from "babel- -> from "@babel/

/Users/hzhu/dev/babel-7.0/packages/babel-cli/src/babel-external-helpers.js:
    5:   // If the user passed the option with no value, like "babel-external-helpers --whitelist", do nothing.

/Users/hzhu/dev/babel-7.0/packages/babel-helper-transform-fixture-test-runner/src/index.js:
   41: runModuleInTestContext("babel-polyfill", __filename);

/Users/hzhu/dev/babel-7.0/packages/babel-node/src/_babel-node.js:
    8: import "babel-polyfill";
   13: const program = new commander.Command("babel-node");
   16:   // If the user passed the option with no value, like "babel-node file.js --presets", do nothing.

/Users/hzhu/dev/babel-7.0/packages/babel-plugin-transform-runtime/src/index.js:
    8:     moduleName = "babel-runtime",

/Users/hzhu/dev/babel-7.0/packages/babel-register/src/cache.js:
    8: const DEFAULT_CACHE_DIR = findCacheDir({ name: "babel-register" }) || homeOrTmp;

/Users/hzhu/dev/babel-7.0/packages/babel-standalone/src/index.js:
  141:   "check-es2015-constants": require("babel-plugin-check-es2015-constants"),

packages/babel-*/test/

from "babel- -> from "@babel/

/Users/hzhu/dev/babel-7.0/packages/babel-cli/test/index.js:
  130:     if (binName !== "babel-external-helpers") {

/Users/hzhu/dev/babel-7.0/packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/override-import-name/actual.js:
    1: import "babel-template";

/Users/hzhu/dev/babel-7.0/packages/babel-plugin-transform-es2015-modules-umd/test/fixtures/umd/override-import-name/options.json:
    6:           "babel-template": "baz"

@mention-bot

Copy link
Copy Markdown

@hzoo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @kaicataldo, @pr0x1m4 and @danez to be potential reviewers.

hzoo added 2 commits February 10, 2017 15:13
Specifically target package.json
- ignore "bin" scripts (only relevant for @babel/cli)
- ignore the top level package.json for now
hzoo added 3 commits February 10, 2017 16:57
- skip some bin checks in @babel/cli tests
- skip get-possible-preset.js/get-possible-plugin.js
@hzoo hzoo added this to the Babel 7 milestone Feb 10, 2017
@hzoo hzoo added the PR: New Feature 🚀 A type of pull request used for our changelog categories label Feb 10, 2017
@xtuc

xtuc commented Feb 11, 2017

Copy link
Copy Markdown
Member

I made some related READMEs changes in https://github.com/xtuc/babel/tree/scoped-pkgs-update-readme. Based on your branch, feel free to merge it into it.

@hzoo hzoo removed the PR: New Feature 🚀 A type of pull request used for our changelog categories label Mar 7, 2017
@hzoo hzoo modified the milestones: Infra, Babel 7 Mar 7, 2017
@deepsweet

Copy link
Copy Markdown

Great idea, but looks a bit abandoned. Is this still intended to land with 7.0?

@danez danez closed this Aug 31, 2017
@danez danez reopened this Aug 31, 2017
@danez
danez changed the base branch from 7.0 to master August 31, 2017 18:25
@hzoo

hzoo commented Oct 17, 2017

Copy link
Copy Markdown
Member Author

Moving to #6495

@hzoo hzoo closed this in #6495 Oct 17, 2017
@Andarist
Andarist deleted the scoped-pkgs branch October 17, 2017 13:04
@lock lock Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 5, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Oct 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

i: discussion outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants