Skip to content

Commit

Permalink
refactor: export both src files (#45)
Browse files Browse the repository at this point in the history
* refactor: export both src files

* refactor: typo
  • Loading branch information
danielpeintner authored Jul 29, 2024
1 parent 16e13fa commit 1082606
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
4 changes: 2 additions & 2 deletions node/thing-model/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions node/thing-model/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thingweb/thing-model",
"version": "1.0.2",
"version": "1.0.3",
"repository": {
"type": "git",
"url": "git+https://github.com/eclipse-thingweb/td-tools.git",
Expand All @@ -17,8 +17,8 @@
"test": "mocha --require ts-node/register --extension ts",
"test:coverage": "nyc --reporter=lcov mocha --require ts-node/register --extension ts"
},
"main": "dist/src/tm-helpers.js",
"types": "dist/src/tm-helpers.d.ts",
"main": "dist/src/thing-model.js",
"types": "dist/src/thing-model.d.ts",
"description": "Tooling to use WoT Thing Models in your workflows such as validation, model resolution and more.",
"dependencies": {
"ajv": "^8.11.0",
Expand Down
18 changes: 18 additions & 0 deletions node/thing-model/src/thing-model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/********************************************************************************
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the W3C Software Notice and
* Document License (2015-05-13) which is available at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document.
*
* SPDX-License-Identifier: EPL-2.0 OR W3C-20150513
********************************************************************************/

/** Exports of thing-model tool */
export * from "./tm-helpers";
export * from "./resolver-interface";

0 comments on commit 1082606

Please sign in to comment.