Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ERR_INVALID_URL_SCHEME Error (#119)
`local-action` was consistently failing with an error similar to the following: ```plain TypeError [ERR_INVALID_URL_SCHEME]: The URL must be of scheme file at fileURLToPath (node:internal/url:1499:11) at finalizeResolution (node:internal/modules/esm/resolve:258:42) at moduleResolve (node:internal/modules/esm/resolve:914:10) at defaultResolve (node:internal/modules/esm/resolve:1038:11) at nextResolve (node:internal/modules/esm/hooks:748:28) ... { code: 'ERR_INVALID_URL_SCHEME' ``` This was occurring when quibble was attempting to stub out `@actions/core`. Removing the `allowJs` setting in `tsconfig.base.json` resolves this error. Additionally, the `bin/local-action.js` script that generates the TSX command that is run was causing a similar error when trying to find the `node_modules` path for the called action. This has been resolved with a more OS-independent lookup.
- Loading branch information