Make WordPress Core

Opened 4 months ago

Closed 4 months ago

#43075 closed defect (bug) (fixed)

Use tabs for indentation in `package.json`

Reported by: netweb Owned by: dd32
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch commit
Focuses: Cc:


Tabbed indentation is now supported by npm 5.x for package.json, package-lock.json and npm-shrinkwrap.json files via: http://blog.npmjs.org/post/161081169345/v500 - npm v5.0.0

Indentation is now detected and preserved for package.json, package-lock.json, and npm-shrinkwrap.json. If the package lock is missing, it will default to package.json’s current indentation.

As part of #35105 (updated patch pending) for WP 5.0 the npm and Node.js versions will be bumped to npm 5.x and Node.js 8.x LTS respectively as the official supported versions for WordPress' build tools.

This change to the indentation of npm files further simplifies WordPress' codebase to use tabs for indentation in files where possible.

Attachments (1)

43075.diff (3.0 KB) - added by netweb 4 months ago.

Download all attachments as: .zip

Change History (3)

4 months ago

#1 @netweb
4 months ago

  • Keywords has-patch commit added

#2 @dd32
4 months ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 42460:

Build: Switch package.json to using tabs for indents.

Props netweb.
Fixes #43075.

Note: See TracTickets for help on using tickets.