Skip to content

Commit 6d058f7

Browse files
Replace npmjs.com links with npmx.dev (babel#17847)
Backport of af15dfe
1 parent fe67ac1 commit 6d058f7

3 files changed

Lines changed: 19 additions & 22 deletions

File tree

.github/CHANGELOG-v6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2098,7 +2098,7 @@ Some small but very important additions in this release:
20982098

20992099
### Preset options ([babel/notes](https://github.com/babel/notes/blob/master/2016-07/july-31.md#preset-options-pr-3331))
21002100

2101-
Initially, presets were supposed to be one-off sets of plugins that didn't have any configuration. If you wanted to do something different you would make your own presets. There are [> 600 presets](https://www.npmjs.com/search?q=babel-preset-) on npm now. We want to give users more flexibility in certain cases: like when you want to pass the same option to multiple presets or to remove a default plugin.
2101+
Initially, presets were supposed to be one-off sets of plugins that didn't have any configuration. If you wanted to do something different you would make your own presets. There are [> 600 presets](https://npmx.dev/search?q=babel-preset) on npm now. We want to give users more flexibility in certain cases: like when you want to pass the same option to multiple presets or to remove a default plugin.
21022102

21032103
### `loose` and `modules` options for `babel-preset-es2015` ([#3331](https://github.com/babel/babel/pull/3331), [#3627](https://github.com/babel/babel/pull/3627))
21042104

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,15 @@
99
</p>
1010

1111
<p align="center">
12-
<a href="https://gitpod.io/#https://github.com/babel/babel"><img alt="Gitpod ready-to-code" src="https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod"></a>
13-
<a href="https://pkg.pr.new/~/babel/babel"><img alt="pkg.pr.new" src="https://img.shields.io/npm/dm/@babel/core?style=flat&color=000&logo=babel&logoSize=auto"></a>
12+
<a href="https://npmx.dev/package/@babel/core"><img alt="npm Downloads" src="https://img.shields.io/npm/dm/@babel/core.svg?maxAge=43200&label=npm%20downloads&logo=babel&logoSize=auto"></a>
1413
</p>
1514
<p align="center">
16-
<a href="https://www.npmjs.com/package/@babel/core"><img alt="v7 npm Downloads" src="https://img.shields.io/npm/dm/@babel/core.svg?maxAge=43200&label=v7%20downloads"></a>
17-
<a href="https://www.npmjs.com/package/babel-core"><img alt="v6 npm Downloads" src="https://img.shields.io/npm/dm/babel-core.svg?maxAge=43200&label=v6%20downloads"></a>
15+
<a href="https://github.com/babel/babel/actions/workflows/ci.yml"><img alt="GitHub CI Status" src="https://github.com/babel/babel/actions/workflows/ci.yml/badge.svg?branch=main"></a>
16+
<a href="https://codecov.io/github/babel/babel"><img alt="Coverage Status" src="https://img.shields.io/codecov/c/github/babel/babel/main.svg?maxAge=43200&logo=codecov"></a>
17+
<a href="https://pkg.pr.new/~/babel/babel"><img alt="pkg.pr.new" src="https://img.shields.io/badge/PR_previews-pkg.pr.new-10a5e9"></a>
1818
</p>
1919
<p align="center">
20-
<a href="https://github.com/babel/babel/actions/workflows/ci.yml"><img alt="GitHub CI Status" src="https://github.com/babel/babel/actions/workflows/ci.yml/badge.svg?branch=main"></a>
21-
<a href="https://codecov.io/github/babel/babel"><img alt="Coverage Status" src="https://img.shields.io/codecov/c/github/babel/babel/main.svg?maxAge=43200"></a>
2220
<a href="https://slack.babeljs.io/"><img alt="Slack Status" src="https://img.shields.io/badge/chat-on_slack-brightgreen?style=flat&logo=slack&logoColor=white"></a>
23-
<a href="https://twitter.com/intent/follow?screen_name=babeljs"><img alt="Follow on Twitter" src="https://img.shields.io/twitter/follow/babeljs.svg?style=social&label=Follow"></a>
2421
</p>
2522

2623
<h2 align="center">Supporting Babel</h2>

packages/README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ A monorepo, muhahahahahaha. See the [monorepo design doc](/doc/design/monorepo.m
1313

1414
| Package | Version |
1515
|---------|---------|
16-
| [`@babel/core`](/packages/babel-core) | [![npm](https://img.shields.io/npm/v/@babel/core.svg?maxAge=3600)](https://www.npmjs.com/package/@babel/core) |
17-
| [`@babel/parser`](/packages/babel-parser) | [![npm](https://img.shields.io/npm/v/@babel/parser.svg?maxAge=3600)](https://www.npmjs.com/package/@babel/parser) |
18-
| [`@babel/traverse`](/packages/babel-traverse) | [![npm](https://img.shields.io/npm/v/@babel/traverse.svg?maxAge=3600)](https://www.npmjs.com/package/@babel/traverse) |
19-
| [`@babel/generator`](/packages/babel-generator) | [![npm](https://img.shields.io/npm/v/@babel/generator.svg?maxAge=3600)](https://www.npmjs.com/package/@babel/generator) |
16+
| [`@babel/core`](/packages/babel-core) | [![npm](https://img.shields.io/npm/v/@babel/core.svg?maxAge=3600)](https://npmx.dev/package/@babel/core) |
17+
| [`@babel/parser`](/packages/babel-parser) | [![npm](https://img.shields.io/npm/v/@babel/parser.svg?maxAge=3600)](https://npmx.dev/package/@babel/parser) |
18+
| [`@babel/traverse`](/packages/babel-traverse) | [![npm](https://img.shields.io/npm/v/@babel/traverse.svg?maxAge=3600)](https://npmx.dev/package/@babel/traverse) |
19+
| [`@babel/generator`](/packages/babel-generator) | [![npm](https://img.shields.io/npm/v/@babel/generator.svg?maxAge=3600)](https://npmx.dev/package/@babel/generator) |
2020

2121
[`@babel/core`](/packages/babel-core) is the Babel compiler itself; it exposes the `babel.transform` method, where `transformedCode = transform(src).code`.
2222

@@ -36,13 +36,13 @@ Check out the [`babel-handbook`](https://github.com/thejameskyle/babel-handbook/
3636

3737
| Package | Version |
3838
|---------|---------|
39-
| [`@babel/cli`](/packages/babel-cli) | [![npm](https://img.shields.io/npm/v/@babel/cli.svg?maxAge=3600)](https://www.npmjs.com/package/@babel/cli) |
40-
| [`@babel/types`](/packages/babel-types) | [![npm](https://img.shields.io/npm/v/@babel/types.svg?maxAge=3600)](https://www.npmjs.com/package/@babel/types) |
41-
| [`@babel/runtime`](/packages/babel-runtime) | [![npm](https://img.shields.io/npm/v/@babel/runtime.svg?maxAge=3600)](https://www.npmjs.com/package/@babel/runtime) |
42-
| [`@babel/register`](/packages/babel-register) | [![npm](https://img.shields.io/npm/v/@babel/register.svg?maxAge=3600)](https://www.npmjs.com/package/@babel/register) |
43-
| [`@babel/template`](/packages/babel-template) | [![npm](https://img.shields.io/npm/v/@babel/template.svg?maxAge=3600)](https://www.npmjs.com/package/@babel/template) |
44-
| [`@babel/helpers`](/packages/babel-helpers) | [![npm](https://img.shields.io/npm/v/@babel/helpers.svg?maxAge=3600)](https://www.npmjs.com/package/@babel/helpers) |
45-
| [`@babel/code-frame`](/packages/babel-code-frame) | [![npm](https://img.shields.io/npm/v/@babel/code-frame.svg?maxAge=3600)](https://www.npmjs.com/package/@babel/code-frame) |
39+
| [`@babel/cli`](/packages/babel-cli) | [![npm](https://img.shields.io/npm/v/@babel/cli.svg?maxAge=3600)](https://npmx.dev/package/@babel/cli) |
40+
| [`@babel/types`](/packages/babel-types) | [![npm](https://img.shields.io/npm/v/@babel/types.svg?maxAge=3600)](https://npmx.dev/package/@babel/types) |
41+
| [`@babel/runtime`](/packages/babel-runtime) | [![npm](https://img.shields.io/npm/v/@babel/runtime.svg?maxAge=3600)](https://npmx.dev/package/@babel/runtime) |
42+
| [`@babel/register`](/packages/babel-register) | [![npm](https://img.shields.io/npm/v/@babel/register.svg?maxAge=3600)](https://npmx.dev/package/@babel/register) |
43+
| [`@babel/template`](/packages/babel-template) | [![npm](https://img.shields.io/npm/v/@babel/template.svg?maxAge=3600)](https://npmx.dev/package/@babel/template) |
44+
| [`@babel/helpers`](/packages/babel-helpers) | [![npm](https://img.shields.io/npm/v/@babel/helpers.svg?maxAge=3600)](https://npmx.dev/package/@babel/helpers) |
45+
| [`@babel/code-frame`](/packages/babel-code-frame) | [![npm](https://img.shields.io/npm/v/@babel/code-frame.svg?maxAge=3600)](https://npmx.dev/package/@babel/code-frame) |
4646

4747
- [`@babel/cli`](/packages/babel-cli) is the CLI tool that runs `@babel/core` and helps with outputting to a directory, a file, stdout and more (also includes `@babel/node` cli). Check out the [docs](https://babeljs.io/docs/usage/cli/).
4848
- [`@babel/types`](/packages/babel-types) is used to validate, build and change AST nodes.
@@ -60,15 +60,15 @@ The transformer[s] used in Babel are the independent pieces of code that transfo
6060

6161
| Package | Version | Description |
6262
|---------|---------|-------------|
63-
| [`@babel/preset-env`](/packages/babel-preset-env) | [![npm](https://img.shields.io/npm/v/@babel/preset-env.svg?maxAge=?maxAge=3600)](https://www.npmjs.com/package/@babel/preset-env) | automatically determines plugins and polyfills you need based on your supported environments |
63+
| [`@babel/preset-env`](/packages/babel-preset-env) | [![npm](https://img.shields.io/npm/v/@babel/preset-env.svg?maxAge=3600)](https://npmx.dev/package/@babel/preset-env) | automatically determines plugins and polyfills you need based on your supported environments |
6464

65-
> You can find community maintained presets on [npm](https://www.npmjs.com/search?q=babel-preset)
65+
> You can find community maintained presets on [npm](https://npmx.dev/search?q=babel-preset)
6666
6767
### [Plugins](http://babeljs.io/docs/plugins)
6868

6969
Plugins are the heart of Babel and what make it work.
7070

71-
> You can find community plugins on [npm](https://www.npmjs.com/search?q=babel-plugin).
71+
> You can find community plugins on [npm](https://npmx.dev/search?q=babel-plugin).
7272
7373
#### Transform Plugins
7474

0 commit comments

Comments
 (0)