diff --git a/.npmignore b/.npmignore deleted file mode 100644 index cdabd3fe..00000000 --- a/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -.idea -.vscode -.history -.nyc_output -node_modules diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index c9f6f047..00000000 --- a/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './types' diff --git a/package.json b/package.json index b3be32f7..afe048c0 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "4.8.1", "description": "Node.js library for parsing crontab instructions", "main": "lib/parser.js", - "types": "index.d.ts", + "types": "types/index.d.ts", "typesVersions": { "<4.1": { "*": [ @@ -81,5 +81,11 @@ "dom" ] } - } + }, + "files": [ + "lib", + "types", + "LICENSE", + "README.md" + ] } diff --git a/test/index.test-d.ts b/test/index.test-d.ts index 09941325..b2a91dd4 100644 --- a/test/index.test-d.ts +++ b/test/index.test-d.ts @@ -8,7 +8,7 @@ import { parseString, fieldsToExpression, StringResult -} from '../index'; +} from '../types'; const interval = parseExpression('0 1 2 3 * 1-3,5'); const intervalIterator = parseExpression('0 1 2 3 * 1-3,5', {iterator: true});