Skip to content

Commit ece52a3

Browse files
wraithgarlukekarrys
authored andcommitted
fix: remove "tmp" config
BREAKING CHANGE: the unused "tmp" config has been removed
1 parent 1f767aa commit ece52a3

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

workspaces/config/lib/definitions/definitions.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const editor = process.env.EDITOR ||
6464
const shell = isWindows ? process.env.ComSpec || 'cmd'
6565
: process.env.SHELL || 'sh'
6666

67-
const { tmpdir, networkInterfaces } = require('os')
67+
const { networkInterfaces } = require('os')
6868
const getLocalAddresses = () => {
6969
try {
7070
return Object.values(networkInterfaces()).map(
@@ -2127,24 +2127,6 @@ define('timing', {
21272127
`,
21282128
})
21292129

2130-
define('tmp', {
2131-
default: tmpdir(),
2132-
defaultDescription: `
2133-
The value returned by the Node.js \`os.tmpdir()\` method
2134-
<https://nodejs.org/api/os.html#os_os_tmpdir>
2135-
`,
2136-
type: path,
2137-
deprecated: `
2138-
This setting is no longer used. npm stores temporary files in a special
2139-
location in the cache, and they are managed by
2140-
[\`cacache\`](http://npm.im/cacache).
2141-
`,
2142-
description: `
2143-
Historically, the location where temporary files were stored. No longer
2144-
relevant.
2145-
`,
2146-
})
2147-
21482130
define('umask', {
21492131
default: 0,
21502132
type: Umask,

workspaces/config/tap-snapshots/test/type-description.js.test.cjs

-3
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,6 @@ Object {
477477
"timing": Array [
478478
"boolean value (true or false)",
479479
],
480-
"tmp": Array [
481-
"valid filesystem path",
482-
],
483480
"umask": Array [
484481
"octal number in range 0o000..0o777 (0..511)",
485482
],

0 commit comments

Comments
 (0)