Skip to content

Commit 61f8ec7

Browse files
authored
perf(npm): remove superfluous files from npm package (#328)
* perf(npm): remove superfluous files from npm package * test: fix TS tests to point to the right file
1 parent b440182 commit 61f8ec7

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.npmignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

index.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "4.8.1",
44
"description": "Node.js library for parsing crontab instructions",
55
"main": "lib/parser.js",
6-
"types": "index.d.ts",
6+
"types": "types/index.d.ts",
77
"typesVersions": {
88
"<4.1": {
99
"*": [
@@ -81,5 +81,11 @@
8181
"dom"
8282
]
8383
}
84-
}
84+
},
85+
"files": [
86+
"lib",
87+
"types",
88+
"LICENSE",
89+
"README.md"
90+
]
8591
}

test/index.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
parseString,
99
fieldsToExpression,
1010
StringResult
11-
} from '../index';
11+
} from '../types';
1212

1313
const interval = parseExpression('0 1 2 3 * 1-3,5');
1414
const intervalIterator = parseExpression('0 1 2 3 * 1-3,5', {iterator: true});

0 commit comments

Comments
 (0)