From 57c78a6c6331c82288611844602d644450760a1a Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Mon, 29 Jul 2024 13:50:22 +0200 Subject: [PATCH] refactor: export both src files --- node/thing-model/package-lock.json | 4 ++-- node/thing-model/package.json | 6 +++--- node/thing-model/src/thing-model.ts | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 node/thing-model/src/thing-model.ts diff --git a/node/thing-model/package-lock.json b/node/thing-model/package-lock.json index 4b0e973..b9a67d7 100644 --- a/node/thing-model/package-lock.json +++ b/node/thing-model/package-lock.json @@ -1,12 +1,12 @@ { "name": "@thingweb/thing-model", - "version": "1.0.2", + "version": "1.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@thingweb/thing-model", - "version": "1.0.2", + "version": "1.0.3", "license": "EPL-2.0 OR W3C-20150513", "dependencies": { "ajv": "^8.11.0", diff --git a/node/thing-model/package.json b/node/thing-model/package.json index 59862a2..7cfac03 100644 --- a/node/thing-model/package.json +++ b/node/thing-model/package.json @@ -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", @@ -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", diff --git a/node/thing-model/src/thing-model.ts b/node/thing-model/src/thing-model.ts new file mode 100644 index 0000000..4339b2f --- /dev/null +++ b/node/thing-model/src/thing-model.ts @@ -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-module tool */ +export * from "./tm-helpers"; +export * from "./resolver-interface";