Skip to content

Commit 6186aaa

Browse files
committed
Upravy v konfiguracich tsconfig a package.
# Co: - Vyreseni problemu s importem package.json souboru do ts souboru. # Proc: - Soubor json je potreba pro zjisteni/vypsani verze nastroje `versioner` - Soubor `package.json` je potrebny ve vysledne distribuci. - Proto byla zmenena `rootDir`, `main` a `start`.
1 parent 1ed6aa8 commit 6186aaa

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "versioner",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "",
5-
"main": "dist/index.js",
5+
"main": "dist/src/index.js",
66
"author": "MWarCZ",
77
"license": "MIT",
88
"env": {
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"scripts": {
15-
"start": "node $npm_package_env_path_dist/index.js",
15+
"start": "node $npm_package_main",
1616
"prebuild": "$npm_execpath run build:clean",
1717
"build": "$npm_execpath run tsc",
1818
"build:clean": "rimraf $npm_package_env_path_dist",

tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"outDir": "dist/",
4-
"rootDir": "src/",
4+
"rootDir": ".",
55

66
"target": "es6",
77
"module": "commonjs",
@@ -30,8 +30,8 @@
3030
// "strictNullChecks": true,
3131
// "strictPropertyInitialization": true,
3232

33-
"esModuleInterop": true
34-
33+
"esModuleInterop": true,
34+
"resolveJsonModule": true
3535
},
3636
"compileOnSave": false,
3737
"include": [

0 commit comments

Comments
 (0)