Skip to content

Commit

Permalink
chore: specify files (#63)
Browse files Browse the repository at this point in the history
* chore: specify files

This reverts commit 32c61fcadb3b3a9ad3e934b6677a111706c9ed2e.

* test: skip a line from eslint
  • Loading branch information
curbengh authored and tomap committed Jul 30, 2019
1 parent 3d9e404 commit f41eb70
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
13 changes: 0 additions & 13 deletions .npmignore

This file was deleted.

2 changes: 1 addition & 1 deletion lib/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit f41eb70

Please sign in to comment.