Skip to content

Commit

Permalink
fix require of in built module
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Jul 30, 2023
1 parent bce17d8 commit 762a995
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ If you find errors in the definitions, e.g. function calls that should be allowe
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### **WORK IN PROGRESS**
- (foxriver76) fix require of `@iobroker/types` in built module
### 3.0.1 (2023-07-29)
- (foxriver76) remove non-existing webserver from tools
Expand Down
1 change: 0 additions & 1 deletion build/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ExitCodes } from "./exitCodes";
import "@iobroker/types";
export { commonTools } from "./controllerTools";
export * from "./utils";
/**
Expand Down
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.EXIT_CODES = exports.getAbsoluteInstanceDataDir = exports.getAbsoluteDefaultDataDir = exports.commonTools = void 0;
/// <reference types="@iobroker/types" />
const path = require("path");
const controllerTools_1 = require("./controllerTools");
const utils = require("./utils");
require("@iobroker/types");
// Export utility methods to be used in adapters
var controllerTools_2 = require("./controllerTools");
Object.defineProperty(exports, "commonTools", { enumerable: true, get: function () { return controllerTools_2.commonTools; } });
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/// <reference types="@iobroker/types" />
import * as path from "path";
import { controllerToolsInternal, resolveNamedModule } from "./controllerTools";
import { ExitCodes } from "./exitCodes";
import * as utils from "./utils";
import "@iobroker/types";

// Export utility methods to be used in adapters
export { commonTools } from "./controllerTools";
Expand Down

0 comments on commit 762a995

Please sign in to comment.