Skip to content

Commit

Permalink
Separate source and generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-hellhake committed Oct 10, 2021
1 parent ea95091 commit 31e6b45
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "webthing",
"version": "0.15.0",
"description": "HTTP Web Thing implementation",
"main": "webthing.js",
"main": "lib/webthing.js",
"scripts": {
"lint": "tsc --noEmit && eslint . --ext .ts",
"node": "NODE_PATH=. node",
"start": "NODE_PATH=. node example/multiple-things",
"test": "make test",
"simplest": "NODE_PATH=. node example/simplest-thing",
"prettier": "npx prettier -w '*.ts' 'lib/*.ts' 'example/**/*.{js,ts}'",
"prettier": "npx prettier -w 'src/*.ts' 'example/**/*.{js,ts}'",
"build": "tsc -p ."
},
"repository": {
Expand All @@ -28,7 +28,7 @@
"url": "https://github.com/WebThingsIO/webthing-node/issues"
},
"homepage": "https://github.com/WebThingsIO/webthing-node#readme",
"types": "index.d.ts",
"types": "lib/index.d.ts",
"dependencies": {
"ajv": "^7.0.4",
"body-parser": "^1.19.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions src/webthing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Action from './action';
import Event from './event';
import Property from './property';
import Thing from './thing';
import Value from './value';

export { Action, Event, Property, Thing, Value };

export * from './server';
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"rootDir": "src",
"outDir": "lib",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
9 changes: 0 additions & 9 deletions webthing.ts

This file was deleted.

0 comments on commit 31e6b45

Please sign in to comment.