greybel-interpreter 1.9.8 → 1.9.9

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/dist/cps.js +1 -5
  2. package/package.json +3 -3
package/dist/cps.js CHANGED
@@ -139,11 +139,7 @@ const visit = (context, stack, item) => __awaiter(void 0, void 0, void 0, functi
139
139
  }
140
140
  case greyscript_core_1.ASTType.ImportCodeExpression: {
141
141
  const importExpr = item;
142
- if (importExpr.fileSystemDirectory === null) {
143
- console.warn(`Ignoring dependency "${importExpr.gameDirectory}" in "${currentTarget}" at line "${item.start.line}" due to missing file system path. Using noop operation.`);
144
- return new noop_1.Noop(item, currentTarget);
145
- }
146
- const target = yield context.handler.resourceHandler.getTargetRelativeTo(currentTarget, importExpr.fileSystemDirectory);
142
+ const target = yield context.handler.resourceHandler.getTargetRelativeTo(currentTarget, importExpr.directory);
147
143
  if (stack.includes(target)) {
148
144
  console.warn(`Found circluar dependency between "${currentTarget}" and "${target}" at line ${item.start.line}. Using noop instead to prevent overflow.`);
149
145
  return new noop_1.Noop(item, target);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",
@@ -48,8 +48,8 @@
48
48
  "typescript": "^5.0.4"
49
49
  },
50
50
  "dependencies": {
51
- "greybel-core": "^0.7.6",
52
- "greyscript-core": "^0.7.6"
51
+ "greybel-core": "^0.8.0",
52
+ "greyscript-core": "^0.8.0"
53
53
  },
54
54
  "keywords": [
55
55
  "greyscript",