Skip to content

Commit 75477eb

Browse files
committed
Set type module, module resolution: NodeNext
1 parent 11de005 commit 75477eb

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Image & configuration file storage
22
/storage*
3-
/karlsruhe*
3+
/data*
44
/ka/*
55
/ka*
66
/sunset-*

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.2.3",
44
"description": "Photo & Timelapse Bot",
55
"main": "dist/index.js",
6+
"type": "module",
67
"scripts": {
78
"start": "npm run build && npm run run-built",
89
"run-built": "node --env-file=.env dist/index.js",
@@ -18,6 +19,7 @@
1819
"space-test": "tsx --env-file=.env src/lib/storage/df.ts",
1920
"backup-test": "tsx --env-file=.env src/lib/storage/backup.ts",
2021
"still-test": "tsx --env-file=.env src/stillTest.ts",
22+
"upload-test": "tsx --env-file=.env src/uploadTest.ts",
2123
"test": "jest",
2224
"test-watch": "jest --watch"
2325
},
@@ -49,7 +51,6 @@
4951
"isomorphic-git": "^1.23.0",
5052
"libcamera": "^1.0.7",
5153
"libsodium-wrappers": "^0.7.13",
52-
"node-libcamera": "^1.0.6",
5354
"suncalc": "^1.9.0",
5455
"telegraf": "^4.12.2"
5556
},

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
/* Basic Options */
66
// "incremental": true, /* Enable incremental compilation */
77
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */,
8-
"module": "CommonJS" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
8+
"module": "NodeNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
9+
"moduleResolution": "NodeNext",
910
"lib": [] /* Specify library files to be included in the compilation. */,
1011
"allowJs": true /* Allow javascript files to be compiled. */,
1112
// "checkJs": true, /* Report errors in .js files. */

0 commit comments

Comments
 (0)