From ece52a3dda09b1df960ae042d53560f18d446d5f Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 11 Jul 2023 09:11:45 -0700 Subject: [PATCH] fix: remove "tmp" config BREAKING CHANGE: the unused "tmp" config has been removed --- .../config/lib/definitions/definitions.js | 20 +------------------ .../test/type-description.js.test.cjs | 3 --- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/workspaces/config/lib/definitions/definitions.js b/workspaces/config/lib/definitions/definitions.js index fe5cafa1922d9..6eb845c7e4bae 100644 --- a/workspaces/config/lib/definitions/definitions.js +++ b/workspaces/config/lib/definitions/definitions.js @@ -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( @@ -2127,24 +2127,6 @@ define('timing', { `, }) -define('tmp', { - default: tmpdir(), - defaultDescription: ` - The value returned by the Node.js \`os.tmpdir()\` method - - `, - 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, diff --git a/workspaces/config/tap-snapshots/test/type-description.js.test.cjs b/workspaces/config/tap-snapshots/test/type-description.js.test.cjs index 5157d6708b0a4..4ef28584bf993 100644 --- a/workspaces/config/tap-snapshots/test/type-description.js.test.cjs +++ b/workspaces/config/tap-snapshots/test/type-description.js.test.cjs @@ -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)", ],