@atlaspack/parcel-to-atlaspack 2.12.1-dev.3450 → 2.12.1-dev.3478

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const cli_1 = require("./cli");
5
- (0, cli_1.run)().catch(err => {
5
+ (0, cli_1.run)().catch((err) => {
6
6
  console.error(err);
7
7
  process.exitCode = 1;
8
8
  });
@@ -14,7 +14,7 @@ async function migratePackageJson({ cwd, dryRun, skipDependencies, skipEngines,
14
14
  console.log(chalk.blue('[INFO]'), 'Searching for package.json files');
15
15
  const packageJsonPaths = await new fdir_1.fdir()
16
16
  .withFullPaths()
17
- .exclude(dir => dir.startsWith('node_modules'))
17
+ .exclude((dir) => dir.startsWith('node_modules'))
18
18
  .filter((path) => (0, node_path_1.basename)(path) === 'package.json')
19
19
  .crawl(cwd)
20
20
  .withPromise();
@@ -11,7 +11,7 @@ async function migrateParcelRc({ cwd, dryRun }) {
11
11
  console.log(chalk.blue('[INFO]'), 'Searching for .parcelrc files');
12
12
  const parcelrcPaths = await new fdir_1.fdir()
13
13
  .withFullPaths()
14
- .exclude(dir => dir.startsWith('node_modules'))
14
+ .exclude((dir) => dir.startsWith('node_modules'))
15
15
  .filter((path) => (0, node_path_1.basename)(path).startsWith('.parcelrc'))
16
16
  .crawl(cwd)
17
17
  .withPromise();
@@ -4,7 +4,7 @@ exports.migrateConfigFields = migrateConfigFields;
4
4
  // TODO Preserve order?
5
5
  function migrateConfigFields(packageJson) {
6
6
  let didConfigChange = false;
7
- for (const field of Object.keys(packageJson).filter(key => key.startsWith('@parcel/'))) {
7
+ for (const field of Object.keys(packageJson).filter((key) => key.startsWith('@parcel/'))) {
8
8
  packageJson[`@atlaspack/${field.replace('@parcel/', '')}`] =
9
9
  packageJson[field];
10
10
  delete packageJson[field];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/parcel-to-atlaspack",
3
- "version": "2.12.1-dev.3450+58845ef87",
3
+ "version": "2.12.1-dev.3478+5fd2da535",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/atlassian-labs/atlaspack.git"
@@ -34,5 +34,5 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "58845ef87446fcedb7d7d8876440c64184645cbb"
37
+ "gitHead": "5fd2da535ecbe096d57e03aec15e80bb1d7601f7"
38
38
  }