diff --git a/tsconfig.json b/tsconfig.json index 13ee4c5..3b520cf 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,7 +27,7 @@ /* Modules */ "module": "commonjs", /* Specify what module code is generated. */ - "rootDir": "./", /* Specify the root folder within your source files. */ + "rootDir": "./src", /* Specify the root folder within your source files. */ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ @@ -59,7 +59,7 @@ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ // "noEmit": true, /* Disable emitting files from a compilation. */ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ - "outDir": "./typings", /* Specify an output folder for all emitted files. */ + // "outDir": "./typings", /* Specify an output folder for all emitted files. */ // "removeComments": true, /* Disable emitting comments. */ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ @@ -72,7 +72,7 @@ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ - // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ + "declarationDir": "./typings", /* Specify the output directory for generated declaration files. */ /* Interop Constraints */ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ @@ -110,7 +110,7 @@ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ "skipLibCheck": true /* Skip type checking all .d.ts files. */ }, - "exclude": [ - "typings" + "include": [ + "src" ] } diff --git a/typings/src/byte.d.ts b/typings/byte.d.ts similarity index 100% rename from typings/src/byte.d.ts rename to typings/byte.d.ts diff --git a/typings/src/clone.d.ts b/typings/clone.d.ts similarity index 100% rename from typings/src/clone.d.ts rename to typings/clone.d.ts diff --git a/typings/src/combinator.d.ts b/typings/combinator.d.ts similarity index 100% rename from typings/src/combinator.d.ts rename to typings/combinator.d.ts diff --git a/typings/src/cond.d.ts b/typings/cond.d.ts similarity index 100% rename from typings/src/cond.d.ts rename to typings/cond.d.ts diff --git a/typings/src/const.d.ts b/typings/const.d.ts similarity index 100% rename from typings/src/const.d.ts rename to typings/const.d.ts diff --git a/typings/dist/index.d.ts b/typings/dist/index.d.ts deleted file mode 100644 index e69de29..0000000 diff --git a/typings/src/fn.d.ts b/typings/fn.d.ts similarity index 100% rename from typings/src/fn.d.ts rename to typings/fn.d.ts diff --git a/typings/src/index.d.ts b/typings/index.d.ts similarity index 100% rename from typings/src/index.d.ts rename to typings/index.d.ts diff --git a/typings/src/iter.d.ts b/typings/iter.d.ts similarity index 100% rename from typings/src/iter.d.ts rename to typings/iter.d.ts diff --git a/typings/src/multi.d.ts b/typings/multi.d.ts similarity index 100% rename from typings/src/multi.d.ts rename to typings/multi.d.ts diff --git a/typings/src/state.d.ts b/typings/state.d.ts similarity index 100% rename from typings/src/state.d.ts rename to typings/state.d.ts diff --git a/typings/tests/index.d.ts b/typings/tests/index.d.ts deleted file mode 100644 index b798801..0000000 --- a/typings/tests/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -export {}; diff --git a/typings/tests/units/bytes.d.ts b/typings/tests/units/bytes.d.ts deleted file mode 100644 index feba6d8..0000000 --- a/typings/tests/units/bytes.d.ts +++ /dev/null @@ -1 +0,0 @@ -export const Byte: any[]; diff --git a/typings/tests/units/common.d.ts b/typings/tests/units/common.d.ts deleted file mode 100644 index f614221..0000000 --- a/typings/tests/units/common.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const assertState: any; -export const parseEq: any; -export const parseErr: any; diff --git a/typings/tests/units/cond.d.ts b/typings/tests/units/cond.d.ts deleted file mode 100644 index b6db36d..0000000 --- a/typings/tests/units/cond.d.ts +++ /dev/null @@ -1 +0,0 @@ -export const Conditionals: any[]; diff --git a/typings/tests/units/index.d.ts b/typings/tests/units/index.d.ts deleted file mode 100644 index 7e6d287..0000000 --- a/typings/tests/units/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./bytes.js"; -export * from "./iter.js"; -export * from "./cond.js"; diff --git a/typings/tests/units/iter.d.ts b/typings/tests/units/iter.d.ts deleted file mode 100644 index c5e3d0c..0000000 --- a/typings/tests/units/iter.d.ts +++ /dev/null @@ -1 +0,0 @@ -export const Iterator: any[]; diff --git a/typings/src/tuple.d.ts b/typings/tuple.d.ts similarity index 100% rename from typings/src/tuple.d.ts rename to typings/tuple.d.ts