files and bin
This commit is contained in:
3
package-lock.json
generated
3
package-lock.json
generated
@@ -12,6 +12,9 @@
|
|||||||
"json5": "2.2.3",
|
"json5": "2.2.3",
|
||||||
"openweather-api-node": "3.1.5"
|
"openweather-api-node": "3.1.5"
|
||||||
},
|
},
|
||||||
|
"bin": {
|
||||||
|
"morning-report": "distribution/src/index.js"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "24.3.0",
|
"@types/node": "24.3.0",
|
||||||
"@vitest/coverage-v8": "3.2.4",
|
"@vitest/coverage-v8": "3.2.4",
|
||||||
|
@@ -19,6 +19,12 @@
|
|||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "distribution/index.js",
|
"main": "distribution/index.js",
|
||||||
|
"bin": {
|
||||||
|
"morning-report": "./distribution/src/index.js"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"distribution"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"start": "node distribution/src/index.js",
|
"start": "node distribution/src/index.js",
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fsp from 'fs/promises';
|
import fsp from 'fs/promises';
|
||||||
import json5 from 'json5';
|
import json5 from 'json5';
|
||||||
|
Reference in New Issue
Block a user