diff --git a/CliClient/gulpfile.js b/CliClient/gulpfile.js index 695db513d..ed2265a83 100644 --- a/CliClient/gulpfile.js +++ b/CliClient/gulpfile.js @@ -16,10 +16,10 @@ tasks.build = { await tasks.copyLib.fn(); await utils.copyFile(`${__dirname}/package.json`, `${buildDir}/package.json`); - const packageRaw = await fs.readFile(`${buildDir}/package.json`); - const package = JSON.parse(packageRaw.toString()); - package.scripts.postinstall = package.scripts.postinstall.replace(/\.\.\/patches/, './patches'); - await fs.writeFile(`${buildDir}/package.json`, JSON.stringify(package, null, 2), 'utf8'); + // const packageRaw = await fs.readFile(`${buildDir}/package.json`); + // const package = JSON.parse(packageRaw.toString()); + // package.scripts.postinstall = package.scripts.postinstall.replace(/\.\.\/patches/, './patches'); + // await fs.writeFile(`${buildDir}/package.json`, JSON.stringify(package, null, 2), 'utf8'); fs.chmodSync(`${buildDir}/main.js`, 0o755); }, diff --git a/CliClient/package.json b/CliClient/package.json index 5bf15c190..1823b9980 100644 --- a/CliClient/package.json +++ b/CliClient/package.json @@ -5,7 +5,7 @@ "author": "Laurent Cozic", "scripts": { "test": "gulp buildTests -L && jasmine --config=tests/support/jasmine.json", - "postinstall": "patch-package --patch-dir ../patches && npm run build", + "postinstall": "patch-package --patch-dir ./patches && npm run build", "build": "gulp build", "start": "gulp build -L && node 'build/main.js' --profile ~/Temp/TestNotes2 --stack-trace-enabled --log-level debug --env dev" }, diff --git a/Tools/release-cli.js b/Tools/release-cli.js index 24e001be1..be04b9a8a 100644 --- a/Tools/release-cli.js +++ b/Tools/release-cli.js @@ -59,7 +59,7 @@ async function main() { await execCommand('git pull'); await execCommand('touch app/main.js'); await execCommand('npm run build'); - await execCommand('cp package.json build/'); + // await execCommand('cp package.json build/'); await execCommand('cp ../README.md build/'); process.chdir(`${appDir}/build`);