Skip to content

Commit

Permalink
migrate types/iobroker to iobroker/types
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed May 25, 2024
1 parent f22ca35 commit 4670611
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 24 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,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) removed `@types/iobroker`
### 2.6.11 (2024-05-18)
* (foxriver76) removed letsEncrypt support as next controller won't support it anymore (use `@iobroker/webserver` instead)

Expand Down
2 changes: 1 addition & 1 deletion build/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference types="iobroker" />
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 @@ -18,7 +18,7 @@ exports.EXIT_CODES = exports.getAbsoluteInstanceDataDir = exports.getAbsoluteDef
const path = require("path");
const controllerTools_1 = require("./controllerTools");
const utils = require("./utils");
/* eslint-disable @typescript-eslint/no-var-requires */
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
1 change: 0 additions & 1 deletion build/utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="iobroker" />
/** The root directory of JS-Controller */
export declare const controllerDir: string;
/** Reads the configuration file of JS-Controller */
Expand Down
37 changes: 18 additions & 19 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@types/iobroker": "^4.0.5"
"@iobroker/types": "*"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as path from "path";
import { controllerToolsInternal, resolveNamedModule } from "./controllerTools";
import { ExitCodes } from "./exitCodes";
import * as utils from "./utils";
/* eslint-disable @typescript-eslint/no-var-requires */
import "@iobroker/types";

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

0 comments on commit 4670611

Please sign in to comment.