added build script

This commit is contained in:
Rudis Muiznieks 2022-04-19 17:26:04 -05:00
parent 8912bce342
commit dde7d10e4f
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
4 changed files with 8 additions and 4 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
node_modules/
bin/

View File

@ -1,6 +1,7 @@
{
"scripts": {
"start": "ts-node --project tsconfig.json src/index.ts"
"build": "tsc --project tsconfig.json",
"start": "node bin/index.js"
},
"dependencies": {
"i2c-bus": "^5.2.2",

View File

@ -1,5 +1,5 @@
import { openSync } from 'i2c-bus';
import Oled = require('oled-i2c-bus');
import Oled from 'oled-i2c-bus';
const i2cbus = openSync(1);
const opts = {

View File

@ -12,13 +12,15 @@
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true,
"paths": {
"*": ["@types/*"]
"*": ["./@types/*"]
},
"typeRoots": [
"./node_modules/@types",
"./@types"
]
],
"outDir": "./bin"
},
"include": ["src/**/*"]
}