Skip to content

Conversation

@mooooooi
Copy link
Contributor

@mooooooi mooooooi commented Oct 14, 2021

Environment:
assemblyscript: 0.19.17
platform: macos
cmd: yarn asbuild
asconfig:

{
    // ...someting not important
    options: {
        "transform": "./transform.ts"
    }
}

The segment of options.js

function resolvePath(p, baseDir, useNodeResolution = false) {
  if (path.isAbsolute(p)) return p;
  if (useNodeResolution && !p.startsWith(".")) {
    return dynrequire.resolve(p, { paths: [ baseDir ] });
  }
  return path.join(baseDir, p);
}

The default value of baseDir is .. When p is relative path, then ...

path.join(".", "./transform.ts"); // The result is 'transform.ts'. It lost the information about relative
  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@mooooooi mooooooi requested a review from dcodeIO October 23, 2021 08:43
@mooooooi
Copy link
Contributor Author

Is there any another problem? @dcodeIO

@dcodeIO dcodeIO merged commit 341cb9d into AssemblyScript:main Nov 11, 2021
@dcodeIO
Copy link
Member

dcodeIO commented Nov 11, 2021

Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants