@yarnpkg/pnpify
Advanced tools
Comparing version 2.0.0-rc.6 to 2.0.0-rc.7
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fslib_1 = require("@yarnpkg/fslib"); | ||
const json5_1 = __importDefault(require("json5")); | ||
const dynamicRequire_1 = require("./dynamicRequire"); | ||
@@ -28,4 +32,4 @@ const TEMPLATE = (relPnpApiPath, module, { usePnpify }) => [ | ||
const content = await fslib_1.xfs.existsPromise(settingsPath) ? await fslib_1.xfs.readFilePromise(settingsPath, `utf8`) : `{}`; | ||
const data = JSON.parse(content); | ||
const patched = `${JSON.stringify(Object.assign(Object.assign({}, data), settings), null, 2)}\n`; | ||
const data = json5_1.default.parse(content); | ||
const patched = `${json5_1.default.stringify(Object.assign(Object.assign({}, data), settings), null, 2)}\n`; | ||
await fslib_1.xfs.mkdirpPromise(fslib_1.ppath.dirname(settingsPath)); | ||
@@ -32,0 +36,0 @@ await fslib_1.xfs.changeFilePromise(settingsPath, patched); |
{ | ||
"name": "@yarnpkg/pnpify", | ||
"version": "2.0.0-rc.6", | ||
"version": "2.0.0-rc.7", | ||
"main": "./lib/index.js", | ||
@@ -8,8 +8,9 @@ "bin": "./lib/cli.js", | ||
"dependencies": { | ||
"@yarnpkg/fslib": "2.0.0-rc.4", | ||
"cross-spawn": "^6.0.5" | ||
"@yarnpkg/fslib": "2.0.0-rc.5", | ||
"cross-spawn": "^6.0.5", | ||
"json5": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@yarnpkg/monorepo": "0.0.0", | ||
"@yarnpkg/pnp": "2.0.0-rc.5", | ||
"@yarnpkg/pnp": "2.0.0-rc.6", | ||
"eslint": "^5.16.0", | ||
@@ -16,0 +17,0 @@ "typescript": "next" |
39515
910
5
+ Addedjson5@^2.1.0
+ Added@yarnpkg/fslib@2.0.0-rc.5(transitive)
+ Addedjson5@2.2.3(transitive)
- Removed@yarnpkg/fslib@2.0.0-rc.4(transitive)
Updated@yarnpkg/fslib@2.0.0-rc.5