From 9ef99fd8bde4b18e5714b8ca3e28d4a7d765a1df Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 23 Jan 2020 14:15:44 -0800 Subject: [PATCH 1/2] Fix d.ts generation 1. Generate d.ts files for all .js files by adding `"declaration": true` in tsconfig.json. 2. In index.d.ts, export * from './lib/core' instead of './core' --- index.d.ts | 2 +- tsconfig.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 2487aab..8a24823 100644 --- a/index.d.ts +++ b/index.d.ts @@ -77,4 +77,4 @@ // declare const Sift: Sift; // export default Sift; -export * from "./core"; +export * from "./lib/core"; diff --git a/tsconfig.json b/tsconfig.json index 7e68753..142bcb2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "target": "es5", "moduleResolution": "node", "module": "commonjs", + "declaration": true, "allowSyntheticDefaultImports": true }, "exclude": ["node_modules", "*-test", "lib", "index.d.ts", "test"], From fbc2cec902a919502982993d84a5f41e4aeba02a Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 23 Jan 2020 14:20:21 -0800 Subject: [PATCH 2/2] Bump node to 12.0.0 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f5dd151..d1ec8ea 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,11 @@ language: node_js node_js: - - 8.0.0 + - 12.0.0 script: npm run test notifications: - email: + email: - craig.j.condon@gmail.com branches: