Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated index.js file does not respect destDir build argument #1386

Closed
ikokostya opened this issue Dec 10, 2022 · 2 comments · Fixed by #1481
Closed

Generated index.js file does not respect destDir build argument #1386

ikokostya opened this issue Dec 10, 2022 · 2 comments · Fixed by #1481

Comments

@ikokostya
Copy link

Steps to reproduce:

  1. Generate new project

    $ napi new @test/test
    
  2. Specify destDir argument for napi build command:

    $ cd test
    $ napi build --platform build
    
  3. Run tests

    npm run test
    

Result:

$ npm run test

> @test/test@0.0.0 test
> ava


  Uncaught exception in __test__/index.spec.mjs

  Error: Cannot find module '@test/test-linux-x64-gnu'
  Require stack:
  - /home/kostya/code/test/index.js

  › - index.js
  › Object.<anonymous> (index.js:174:31)

  ✖ __test__/index.spec.mjs exited with a non-zero exit code: 1
  ─

  1 uncaught exception
@TheLarkInn
Copy link
Contributor

Agreed also running into this.

@TheLarkInn
Copy link
Contributor

Opened #1481 to fix.

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 a pull request may close this issue.

2 participants