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/**/*"]
}