@yr-lang/yr 0.3.11 → 0.3.15

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 +6 -6
  2. package/package.json +1 -1
package/node.js CHANGED
@@ -127,7 +127,7 @@ module.exports = {
127
127
  let result = '';
128
128
  if (extensions) result += extensions + '\n';
129
129
 
130
- for (let item of ['nosection', 'extensions']) {
130
+ for (let item of ['nosection', 'extensions', 'pixel']) {
131
131
  if (sections[item]) {
132
132
  result += sections[item] + '\n';
133
133
  delete sections[item];
@@ -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.15",
4
4
  "description": "Yr is a modern structural language and parser",
5
5
  "main": "./node.js",
6
6
  "exports": {