@yr-lang/yr 0.3.11 → 0.3.12
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/node.js +5 -5
- package/package.json +1 -1
package/node.js
CHANGED
|
@@ -447,13 +447,13 @@ function parsePaths(newPaths) {
|
|
|
447
447
|
|
|
448
448
|
return newStrPath.join(',');
|
|
449
449
|
}
|
|
450
|
-
//let _PROJECT_PATH = '${parsePaths(projectPath)}';
|
|
451
|
-
//_PROJECT_PATH = parsePaths(_PROJECT_PATH);
|
|
452
|
-
//const _config = require(\`\${_PROJECT_PATH}/yrconfig.json\`);
|
|
453
|
-
//const env = require(\`\${_PROJECT_PATH}/.env.json\`);
|
|
454
450
|
setGlobal('path', require('path'));
|
|
455
|
-
|
|
451
|
+
let _PROJECT_PATH = '${parsePaths(projectPath)}';
|
|
452
|
+
_PROJECT_PATH = parsePaths(_PROJECT_PATH);
|
|
453
|
+
//const _PROJECT_PATH = path.resolve(process.cwd(), '..');
|
|
456
454
|
const PROJECT_PATH = _PROJECT_PATH;
|
|
455
|
+
//const _config = require(\`\${_PROJECT_PATH}/yrconfig.json\`);
|
|
456
|
+
//const env = require(\`\${_PROJECT_PATH}/.env.json\`);
|
|
457
457
|
const _config = JSON.parse(
|
|
458
458
|
fs.readFileSync(path.join(PROJECT_PATH, 'yrconfig.json'), 'utf8'));
|
|
459
459
|
const env = JSON.parse(
|