We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffa49e7 commit 050aafbCopy full SHA for 050aafb
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@torchlight-api/torchlight-cli",
3
- "version": "0.0.4",
+ "version": "0.0.5",
4
"description": "A CLI for Torchlight - the syntax highlighting API",
5
"main": "index.js",
6
"scripts": {
src/cache/file.js
@@ -13,6 +13,10 @@ const {
13
* @constructor
14
*/
15
let File = function (options = {}) {
16
+ if (!options.directory) {
17
+ throw new Error('No cache directory specified.');
18
+ }
19
+
20
this.directory = path.resolve(options.directory)
21
22
ensureDirSync(this.directory);
0 commit comments