Comments (8)
Uploaded.
from web-serial-polyfill.
For anyone wanting to compile to JS
- Install Typescript
npm i -g typescript
- CD to the
web-serial-polyfill
foldercd node_modules/web-serial-polyfill
- Compile
tsc -d
- Find the JS files in
dist
from web-serial-polyfill.
James, can you upload a new version with the build artifacts in place?
from web-serial-polyfill.
Same problem in 1.0.8
from web-serial-polyfill.
My mistake. Dist folder should be included in 1.0.9.
from web-serial-polyfill.
Still no dist folder in 1.0.9
from web-serial-polyfill.
It looks like the issue is that dist/
is specified in the .gitignore
file in the repo. npm publish
will ignore files in .gitignore
when packaging and so it doesn't package this directory. You should be able to use npm publish --dry-run
to see what files have been packaged without actually uploading a new version to npm. From the documentation it seems like we want to add a "files" list to package.json
and/or create a separate .npmignore
file to specifically control packaging.
See https://docs.npmjs.com/cli/v7/commands/npm-publish for more details.
from web-serial-polyfill.
.npmignore file added. Sorry for all this trouble. Hopefully it is all working properly in 1.0.10. I created a new project and npm installed and I got the dist folder. If your experience is different please post back in here.
from web-serial-polyfill.
Related Issues (20)
- Unable to find interface with class 2
- Implement support for Prolific virtual COM port over WebUSB HOT 6
- add optional parameter signalOptions to open HOT 2
- Implement support for CDC composite gadget HOT 3
- Nothing happens after clicking RequestInfo HOT 2
- serial api(polyfill) show "access Denied" in windows and android chrome. HOT 5
- web-serial-polyfill and web-serial desktop and Android HOT 4
- Feature Request: Seamless Javascript integration between web-serial-polyfill and webSerial HOT 1
- Create a readable byte stream
- TypeError: serial.SerialPort is not a constructor
- Android: usb.getDevices() succeeds but serial.getDevices() fails HOT 3
- WebSerial update? HOT 5
- Static web serial Polyfill NPM example please. HOT 8
- Feature request: Design a webpage that informs if webSerial or polyfill works on the device. HOT 2
- Which phones support Android Polyfill? HOT 14
- Add support for bluetooth serial devices HOT 4
- Vanilla javascript example HOT 16
- NetworkError: Failed to execute 'transferIn' on 'USBDevice': A transfer error has occurred. HOT 3
- NetworkError: Failed to execute 'claimInterface' on 'USBDevice': Unable to claim interface. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-serial-polyfill.