feat: convert to Node.js compatible ES Module

This commit is contained in:
Simon Chan 2022-03-15 16:53:07 +08:00
parent 730aac8da2
commit d9212b4dac
No known key found for this signature in database
GPG key ID: 8F75717685A974FB
94 changed files with 429 additions and 466 deletions

View file

@ -22,7 +22,7 @@
"url": "https://github.com/yume-chan/ya-webadb/issues"
},
"type": "module",
"module": "esm/index.js",
"main": "esm/index.js",
"types": "esm/index.d.ts",
"scripts": {
"build": "build-ts-package",
@ -37,7 +37,7 @@
},
"devDependencies": {
"jest": "^26.6.3",
"typescript": "^4.6.2",
"typescript": "next",
"@yume-chan/ts-package-builder": "^1.0.0"
}
}

View file

@ -1,3 +1,3 @@
export * from './backend';
export { AdbWebUsbBackend as default } from './backend';
export * from './watcher';
export * from './backend.js';
export { AdbWebUsbBackend as default } from './backend.js';
export * from './watcher.js';