File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 "version" : " 0.1.0" ,
44 "description" : " Node.js implementation of a W3C WoT Web Thing" ,
55 "type" : " module" ,
6+ "types" : " dist/index.d.ts" ,
67 "scripts" : {
78 "test" : " node --test test/*.test.js" ,
89 "lint" : " eslint ." ,
910 "format" : " prettier --write ." ,
1011 "format:check" : " prettier --check ." ,
11- "typecheck" : " tsc" ,
12+ "build" : " tsc" ,
13+ "typecheck" : " tsc -p tsconfig.typecheck.json" ,
1214 "example" : " node ./examples/lamp.js"
1315 },
1416 "repository" : {
Original file line number Diff line number Diff line change 1+ export { default as Thing } from './thing.js' ;
2+ export { default as ThingServer } from './thing-server.js' ;
3+ export { default as InteractionAffordance } from './interaction-affordance.js' ;
4+ export { default as PropertyAffordance } from './property-affordance.js' ;
5+ export { default as ValidationError } from './validation-error.js' ;
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "allowJs" : true ,
44 "checkJs" : true ,
5- "noEmit" : true ,
5+ "declaration" : true ,
6+ "emitDeclarationOnly" : true ,
7+ "outDir" : " dist" ,
8+ "rootDir" : " src" ,
69 "strict" : true ,
710 "module" : " nodenext" ,
811 "moduleResolution" : " nodenext" ,
912 "target" : " es2022"
1013 },
11- "include" : [" src/**/*.js" , " examples/**/*.js " ]
14+ "include" : [" src/**/*.js" ]
1215}
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./tsconfig.json" ,
3+ "compilerOptions" : {
4+ "declaration" : false ,
5+ "emitDeclarationOnly" : false ,
6+ "noEmit" : true ,
7+ "rootDir" : " ."
8+ },
9+ "include" : [" src/**/*.js" , " examples/**/*.js" ]
10+ }
You can’t perform that action at this time.
0 commit comments