netlify-cli 8.6.7 → 8.6.8
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/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.8",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "8.6.
|
|
9
|
+
"version": "8.6.8",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"lodash": "^4.17.20",
|
|
74
74
|
"log-symbols": "^4.0.0",
|
|
75
75
|
"log-update": "^5.0.0",
|
|
76
|
-
"make-dir": "^3.0.0",
|
|
77
76
|
"memoize-one": "^6.0.0",
|
|
78
77
|
"minimist": "^1.2.5",
|
|
79
78
|
"multiparty": "^4.2.1",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
3
|
"description": "Netlify command line tool",
|
|
4
|
-
"version": "8.6.
|
|
4
|
+
"version": "8.6.8",
|
|
5
5
|
"author": "Netlify Inc.",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Mathias Biilmann <matt@netlify.com> (https://twitter.com/biilmann)",
|
|
@@ -141,7 +141,6 @@
|
|
|
141
141
|
"lodash": "^4.17.20",
|
|
142
142
|
"log-symbols": "^4.0.0",
|
|
143
143
|
"log-update": "^5.0.0",
|
|
144
|
-
"make-dir": "^3.0.0",
|
|
145
144
|
"memoize-one": "^6.0.0",
|
|
146
145
|
"minimist": "^1.2.5",
|
|
147
146
|
"multiparty": "^4.2.1",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
const { writeFile } = require('fs').promises
|
|
1
|
+
const { mkdir, writeFile } = require('fs').promises
|
|
2
2
|
const path = require('path')
|
|
3
3
|
|
|
4
4
|
const { zipFunction } = require('@netlify/zip-it-and-ship-it')
|
|
5
5
|
const decache = require('decache')
|
|
6
|
-
const makeDir = require('make-dir')
|
|
7
6
|
const readPkgUp = require('read-pkg-up')
|
|
8
7
|
const sourceMapSupport = require('source-map-support')
|
|
9
8
|
|
|
@@ -72,7 +71,7 @@ const getTargetDirectory = async ({ errorExit }) => {
|
|
|
72
71
|
const targetDirectory = path.resolve(getPathInProject(['functions-serve']))
|
|
73
72
|
|
|
74
73
|
try {
|
|
75
|
-
await
|
|
74
|
+
await mkdir(targetDirectory, { recursive: true })
|
|
76
75
|
} catch (error) {
|
|
77
76
|
errorExit(`${NETLIFYDEVERR} Could not create directory: ${targetDirectory}`)
|
|
78
77
|
}
|
|
@@ -4,7 +4,6 @@ const process = require('process')
|
|
|
4
4
|
|
|
5
5
|
const dotProp = require('dot-prop')
|
|
6
6
|
const findUp = require('find-up')
|
|
7
|
-
const makeDir = require('make-dir')
|
|
8
7
|
const writeFileAtomic = require('write-file-atomic')
|
|
9
8
|
|
|
10
9
|
const { getPathInProject } = require('../lib/settings')
|
|
@@ -55,7 +54,7 @@ class StateConfig {
|
|
|
55
54
|
set all(val) {
|
|
56
55
|
try {
|
|
57
56
|
// Make sure the folder exists as it could have been deleted in the meantime
|
|
58
|
-
|
|
57
|
+
fs.mkdirSync(path.dirname(this.path), { recursive: true })
|
|
59
58
|
writeFileAtomic.sync(this.path, JSON.stringify(val, null, '\t'))
|
|
60
59
|
} catch (error) {
|
|
61
60
|
// Improve the message of permission errors
|