Skip to content

Commit

Permalink
bump types version and go back to real import
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Jul 30, 2023
1 parent e289d3f commit ca436f0
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ 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) upgrade to new version of types package
### 3.0.2 (2023-07-30)
- (foxriver76) fix require of `@iobroker/types` in built module
Expand Down
1 change: 1 addition & 0 deletions build/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
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
16 changes: 8 additions & 8 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"devDependencies": {
"@alcalzone/release-script": "~3.5.9",
"@alcalzone/release-script-plugin-license": "~3.5.9",
"@iobroker/types": "^5.0.10",
"@iobroker/types": "^5.0.11",
"@types/chai": "^4.3.4",
"@types/chai-as-promised": "^7.1.5",
"@types/mocha": "^10.0.1",
Expand All @@ -66,6 +66,6 @@
"typescript": "^5.0.4"
},
"peerDependencies": {
"@iobroker/types": "^5.0.10"
"@iobroker/types": "^5.0.11"
}
}
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 ca436f0

Please sign in to comment.