diff --git a/lib/server/app.js b/lib/server/app.js index 78df91ea158..d8489377391 100644 --- a/lib/server/app.js +++ b/lib/server/app.js @@ -343,7 +343,7 @@ function create (env, ctx) { , coffee_match: /coffeescript/ , json_match: /json/ , cssmin: myCssmin - , cache: resolvePath('/node_modules/_ns_cache/public') + , cache: resolvePath('/node_modules/.cache/_ns_cache/public') , onerror: undefined , })); diff --git a/lib/server/enclave.js b/lib/server/enclave.js index 6d403dbd546..3e62a04a0c6 100644 --- a/lib/server/enclave.js +++ b/lib/server/enclave.js @@ -19,7 +19,7 @@ const init = function init () { let apiKeySet = false; function readKey (filename) { - let filePath = path.resolve(__dirname + '/../../node_modules/_ns_cache/' + filename); + let filePath = path.resolve(__dirname + '/../../node_modules/.cache/_ns_cache/' + filename); if (fs.existsSync(filePath)) { return fs.readFileSync(filePath).toString().trim(); } diff --git a/package.json b/package.json index 842f853c41a..b32aee9db10 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "bundle": "webpack --mode production --config webpack/webpack.config.js && npm run-script generate-keys", "bundle-dev": "webpack --mode development --config webpack/webpack.config.js && npm run-script generate-keys", "bundle-analyzer": "webpack --mode development --config webpack/webpack.config.js --profile --json > stats.json && webpack-bundle-analyzer stats.json", - "generate-keys": "mkdir node_modules/_ns_cache | node bin/generateRandomString.js >node_modules/_ns_cache/randomString", + "generate-keys": "mkdir node_modules/.cache/_ns_cache | node bin/generateRandomString.js >node_modules/.cache/_ns_cache/randomString", "coverage": "cat ./coverage/lcov.info | env-cmd -f ./tests/ci.test.env codacy-coverage || echo NO COVERAGE", "dev": "env-cmd -f ./my.env nodemon --inspect lib/server/server.js 0.0.0.0", "dev-test": "env-cmd -f ./my.devtest.env nodemon --inspect lib/server/server.js 0.0.0.0", diff --git a/webpack/webpack.config.js b/webpack/webpack.config.js index 82e623ad043..dfde535ef2f 100644 --- a/webpack/webpack.config.js +++ b/webpack/webpack.config.js @@ -149,7 +149,7 @@ module.exports = { clock: clockEntry }, output: { - path: path.resolve(projectRoot, './node_modules/_ns_cache/public'), + path: path.resolve(projectRoot, './node_modules/.cache/_ns_cache/public'), publicPath, filename: 'js/bundle.[name].js', sourceMapFilename: 'js/bundle.[name].js.map',