Skip to content

.js dist directory & build #139

Description

@chuck-adaptive

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions