Skip to content

Commit

Permalink
fix: remove "tmp" config
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the unused "tmp" config has been removed
  • Loading branch information
wraithgar authored and lukekarrys committed Jul 26, 2023
1 parent 1f767aa commit ece52a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
20 changes: 1 addition & 19 deletions workspaces/config/lib/definitions/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const editor = process.env.EDITOR ||
const shell = isWindows ? process.env.ComSpec || 'cmd'
: process.env.SHELL || 'sh'

const { tmpdir, networkInterfaces } = require('os')
const { networkInterfaces } = require('os')
const getLocalAddresses = () => {
try {
return Object.values(networkInterfaces()).map(
Expand Down Expand Up @@ -2127,24 +2127,6 @@ define('timing', {
`,
})

define('tmp', {
default: tmpdir(),
defaultDescription: `
The value returned by the Node.js \`os.tmpdir()\` method
<https://nodejs.org/api/os.html#os_os_tmpdir>
`,
type: path,
deprecated: `
This setting is no longer used. npm stores temporary files in a special
location in the cache, and they are managed by
[\`cacache\`](http://npm.im/cacache).
`,
description: `
Historically, the location where temporary files were stored. No longer
relevant.
`,
})

define('umask', {
default: 0,
type: Umask,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,6 @@ Object {
"timing": Array [
"boolean value (true or false)",
],
"tmp": Array [
"valid filesystem path",
],
"umask": Array [
"octal number in range 0o000..0o777 (0..511)",
],
Expand Down

0 comments on commit ece52a3

Please sign in to comment.