@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.
Files changed (2) hide show
  1. package/node.js +5 -5
  2. 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
- const _PROJECT_PATH = path.resolve(process.cwd(), '..');
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(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yr-lang/yr",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "Yr is a modern structural language and parser",
5
5
  "main": "./node.js",
6
6
  "exports": {