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

.js dist directory & build #139

Open
chuck-adaptive opened this issue Jul 1, 2023 · 0 comments
Open

.js dist directory & build #139

chuck-adaptive opened this issue Jul 1, 2023 · 0 comments

Comments

@chuck-adaptive
Copy link

Repro -

  • yarn build
  • python -m build .
  • twine check dist/*

Result: Checking dist/index.js: ERROR InvalidDistribution: Unknown distribution format: 'index.js'

This is definitely what's expected from source - the webpack build creates a dist directory, and the the python build is output to the same directory. I was able to publish and use my widgets by moving the python artifacts to a new directory and deploying that one.

  • Does the Webpack configuration need updating? I see the dist dir is included as part of the files in the package.json
  • Can someone explain the duplicate package.json? When I build - it is copied over to {{project name}}/labextension/package.json
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

No branches or pull requests

1 participant