diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | lib/__tests__/index.spec.ts (renamed from src/__tests__/index.spec.ts) | 0 | ||||
-rw-r--r-- | lib/__tests__/samples/2019/12/12/test.md (renamed from src/__tests__/samples/2019/12/12/test.md) | 0 | ||||
-rw-r--r-- | lib/getPosts.ts (renamed from src/getPosts.ts) | 0 | ||||
-rw-r--r-- | lib/index.ts (renamed from src/index.ts) | 0 | ||||
-rw-r--r-- | lib/interfaces.ts (renamed from src/interfaces.ts) | 0 | ||||
-rw-r--r-- | lib/parsePost.ts (renamed from src/parsePost.ts) | 0 | ||||
-rw-r--r-- | lib/utils.ts (renamed from src/utils.ts) | 0 | ||||
-rw-r--r-- | package.json | 5 | ||||
-rw-r--r-- | tsconfig.json | 6 |
10 files changed, 7 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore index 48912d2..db4c6d9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -build +dist node_modules \ No newline at end of file diff --git a/src/__tests__/index.spec.ts b/lib/__tests__/index.spec.ts index 52e28ba..52e28ba 100644 --- a/src/__tests__/index.spec.ts +++ b/lib/__tests__/index.spec.ts diff --git a/src/__tests__/samples/2019/12/12/test.md b/lib/__tests__/samples/2019/12/12/test.md index 5fc0158..5fc0158 100644 --- a/src/__tests__/samples/2019/12/12/test.md +++ b/lib/__tests__/samples/2019/12/12/test.md diff --git a/src/getPosts.ts b/lib/getPosts.ts index 4170292..4170292 100644 --- a/src/getPosts.ts +++ b/lib/getPosts.ts diff --git a/src/index.ts b/lib/index.ts index 61e38c8..61e38c8 100644 --- a/src/index.ts +++ b/lib/index.ts diff --git a/src/interfaces.ts b/lib/interfaces.ts index 8c3493d..8c3493d 100644 --- a/src/interfaces.ts +++ b/lib/interfaces.ts diff --git a/src/parsePost.ts b/lib/parsePost.ts index 01e8d1c..01e8d1c 100644 --- a/src/parsePost.ts +++ b/lib/parsePost.ts diff --git a/src/utils.ts b/lib/utils.ts index 23a3947..23a3947 100644 --- a/src/utils.ts +++ b/lib/utils.ts diff --git a/package.json b/package.json index 2f6711c..c301df4 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "kronikarz", - "version": "0.1.0", + "version": "0.1.1", "description": "System elektronicznej kroniki", - "main": "src/index.js", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "test": "jest", "build": "tsc", diff --git a/tsconfig.json b/tsconfig.json index c2c5466..cc0e6fa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,13 +4,13 @@ // "incremental": true, /* Enable incremental compilation */ "target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */, "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, - "rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */, - "outDir": "./build" /* Redirect output structure to the directory. */, + "rootDir": "lib" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */, + "outDir": "./dist" /* Redirect output structure to the directory. */, // "lib": [], /* Specify library files to be included in the compilation. */ // "allowJs": true /* Allow javascript files to be compiled. */, // "checkJs": true, /* Report errors in .js files. */ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - // "declaration": true, /* Generates corresponding '.d.ts' file. */ + "declaration": true /* Generates corresponding '.d.ts' file. */, // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ // "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ |