You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
430 B
10 lines
430 B
const path = require('path')
|
|
const moduleAlias = require('module-alias')
|
|
moduleAlias.addAlias('../service', (fromPath, request, alias) => {
|
|
// @hap-toolkit/packager/lib/router/routes/index.js
|
|
if (fromPath.indexOf('@hap-toolkit') !== -1 && fromPath.indexOf('packager') !== -1) {
|
|
return path.resolve(__dirname, 'service.js')
|
|
}
|
|
return path.join(fromPath, '..', request)
|
|
})
|
|
require('@hap-toolkit/server').launchServer({})
|
|
|