diff --git a/package.json b/package.json index a1d0d9c..b455df2 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "types": "dist/index.d.ts", "scripts": { "build": "npm run clean; tsc; npm run copy-assets", - "copy-assets": "cp src/worker.js dist; cp index.d.ts dist", + "copy-assets": "cp src/worker.js dist; cp src/index.d.ts dist", "clean": "rm -rf dist", "pretest": "npm run lint", "test": "node --experimental-worker node_modules/.bin/jest", diff --git a/index.d.ts b/src/index.d.ts similarity index 71% rename from index.d.ts rename to src/index.d.ts index f0befb3..3877372 100644 --- a/index.d.ts +++ b/src/index.d.ts @@ -1,4 +1,4 @@ -import {Config} from './src/interfaces' +import { Config } from './interfaces' export function job(handler: Function, config?: Config): Promise export function stop(): void