Skip to content

Commit

Permalink
tsconfig: Switch module to node16
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
thgreasi committed Nov 27, 2024
1 parent f98ec86 commit 24b8b04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "balena-sdk",
"version": "20.6.11",
"description": "The Balena JavaScript SDK",
"type": "commonjs",
"main": "index.js",
"types": "index.d.ts",
"browser": {
Expand Down
2 changes: 1 addition & 1 deletion src/models/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const getDeviceModel = function (
const getOsUpdateHelper = once(async () => {
const $deviceUrlsBase = await getDeviceUrlsBase();
const _getOsUpdateHelper = (
await import('../util/device-actions/os-update')
require('../util/device-actions/os-update') as typeof import('../util/device-actions/os-update')
).getOsUpdateHelper;
return _getOsUpdateHelper($deviceUrlsBase, request);
});
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"module": "commonjs",
"module": "node16",
"declaration": true,
"outDir": "build",
"removeComments": false,
Expand All @@ -15,7 +15,6 @@
"dom",
"es2019"
],
"moduleResolution": "node",
"esModuleInterop": true,
"allowJs": true,
"importHelpers": true
Expand Down

0 comments on commit 24b8b04

Please sign in to comment.