@yr-lang/yr 0.5.0 → 0.5.1

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/package.json +1 -1
  2. package/yr.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yr-lang/yr",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Yr is a modern structural language and parser",
5
5
  "main": "./node.js",
6
6
  "exports": {
package/yr.js CHANGED
@@ -167,7 +167,7 @@ function transformJS(code, kind, sections, section, config) {
167
167
  const result = esbuild.buildSync({
168
168
  stdin: {
169
169
  contents: code, loader: spec.loader,
170
- resolveDir: config.projectPath || process.cwd()
170
+ resolveDir: config?.projectPath || process.cwd()
171
171
  },
172
172
  bundle: true, write: false, format: 'iife',
173
173
  nodePaths: [path.join(__dirname, 'node_modules')]