From f41eb705f7605b33a65522aa3a7aecd5345eb3e7 Mon Sep 17 00:00:00 2001 From: curbengh <43627182+curbengh@users.noreply.github.com> Date: Tue, 30 Jul 2019 13:31:56 +0930 Subject: [PATCH] chore: specify files (#63) * chore: specify files This reverts commit 32c61fcadb3b3a9ad3e934b6677a111706c9ed2e. * test: skip a line from eslint --- .npmignore | 13 ------------- lib/highlight.js | 2 +- package.json | 7 ++++++- 3 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index e392e771..00000000 --- a/.npmignore +++ /dev/null @@ -1,13 +0,0 @@ -test/ -tmp/ -coverage/ -*.log -.jshintrc -.travis.yml -gulpfile.js -.idea/ -appveyor.yml -.eslintignore -.eslintrc -.jscsrc -.npmignore \ No newline at end of file diff --git a/lib/highlight.js b/lib/highlight.js index 298b405a..d3a4a0bd 100644 --- a/lib/highlight.js +++ b/lib/highlight.js @@ -3,7 +3,7 @@ const hljs = require('highlight.js/lib/highlight'); const Entities = require('html-entities').XmlEntities; const entities = new Entities(); -const alias = require('../highlight_alias.json'); +const alias = require('../highlight_alias.json'); //eslint-disable-line function highlightUtil(str, options = {}) { if (typeof str !== 'string') throw new TypeError('str must be a string!'); diff --git a/package.json b/package.json index 941091aa..1df6b401 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,13 @@ "prepare": "npm run build:highlight" }, "directories": { - "lib": "./lib" + "lib": "./lib", + "scripts": "./scripts" }, + "files": [ + "lib/", + "scripts/" + ], "repository": "hexojs/hexo-util", "homepage": "https://hexo.io/", "keywords": [