widget-ts-cookiecutter icon indicating copy to clipboard operation
widget-ts-cookiecutter copied to clipboard

.js dist directory & build

Open chuck-adaptive opened this issue 2 years ago • 0 comments
trafficstars

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

chuck-adaptive avatar Jul 01 '23 13:07 chuck-adaptive