Skip to content

Commit

Permalink
move to scoped package: core-js-builder -> @core-js/builder
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 11, 2023
1 parent fab46b2 commit 90e17e6
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ You can run parts of the test case separately:
```sh
npx run-s prepare test-compat-tools
```
- `core-js-builder` tests:
- `@core-js/builder` tests:
```sh
npx run-s prepare test-builder
```
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ It does not work with some features. Also, if you change the default behaviour,

### Custom build[](#index)

For some cases could be useful to exclude some `core-js` features or generate a polyfill for target engines. You could use [`core-js-builder`](/packages/core-js-builder) package for that.
For some cases could be useful to exclude some `core-js` features or generate a polyfill for target engines. You could use [`@core-js/builder`](/packages/core-js-builder) package for that.

## Supported engines and compatibility data[](#index)

Expand Down
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/core-js-builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div align="center">

[![fundraising](https://opencollective.com/core-js/all/badge.svg?label=fundraising)](https://opencollective.com/core-js) [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md) [![version](https://img.shields.io/npm/v/core-js-builder.svg)](https://www.npmjs.com/package/core-js-builder)
[![fundraising](https://opencollective.com/core-js/all/badge.svg?label=fundraising)](https://opencollective.com/core-js) [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md) [![version](https://img.shields.io/npm/v/@core-js/builder.svg)](https://www.npmjs.com/package/@core-js/builder)

</div>

Expand All @@ -12,7 +12,7 @@
For some cases could be useful to exclude some `core-js` features or generate a polyfill for target engines. This API helps conditionally include or exclude certain parts of [`core-js`](https://github.com/zloirock/core-js) and build for targets. `modules`, `exclude` and `targets` options are specified in [the `@core-js/compat` format](https://github.com/zloirock/core-js/tree/master/packages/@core-js/compat).

```js
import builder from 'core-js-builder';
import builder from '@core-js/builder';

const { script } = await builder({
// entry / module / namespace / an array of them, by default - all `core-js` modules
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "core-js-builder",
"name": "@core-js/builder",
"version": "3.33.0",
"description": "core-js builder",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/bundle-package/bundle-package.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { minify } from 'terser';
import builder from 'core-js-builder';
import config from 'core-js-builder/config.js';
import builder from '@core-js/builder';
import config from '@core-js/builder/config.js';

const { cyan, green } = chalk;
const DENO = argv._.includes('deno');
Expand Down
2 changes: 1 addition & 1 deletion tests/builder/builder.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ok } from 'node:assert/strict';
import builder from 'core-js-builder';
import builder from '@core-js/builder';

const { script } = await builder({
modules: 'core-js/actual',
Expand Down
2 changes: 1 addition & 1 deletion tests/eslint/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const pluginReDoS = require('eslint-plugin-redos');
const pluginRegExp = require('eslint-plugin-regexp');
const pluginSonarJS = require('eslint-plugin-sonarjs');
const pluginUnicorn = require('eslint-plugin-unicorn');
const PACKAGES_NODE_VERSIONS = require('core-js-builder/package').engines.node;
const PACKAGES_NODE_VERSIONS = require('@core-js/builder/package').engines.node;

const DEV_NODE_VERSIONS = '^18.12';

Expand Down
2 changes: 1 addition & 1 deletion tests/type-definitions/builder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import builder from 'core-js-builder';
import builder from '@core-js/builder';

const a: Promise<string> = builder({ targets: { node: 17 } });
const b: string = await builder({ targets: { node: 17 } });
Expand Down

0 comments on commit 90e17e6

Please sign in to comment.