Skip to content

Commit 458890f

Browse files
author
taoqiufeng
committed
fix publish task
1 parent 1c35193 commit 458890f

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

gulpfile.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ gulp.task('compile-ts', () => {
1414
.pipe(gulp.dest(dest));
1515
});
1616

17-
gulp.task('copy-files', () => {
18-
return gulp.src(['./package.json', 'readme.md'])
19-
.pipe(gulp.dest('./dist/'));
20-
});
21-
2217
gulp.task('watch-ts', async () => {
2318
const ts = require('gulp-typescript');
2419
const tsProject = ts.createProject('./tsconfig.json');
@@ -40,7 +35,7 @@ gulp.task('watch-ts', async () => {
4035

4136
gulp.task('default', (cb) => {
4237
const sequence = require('gulp-sequence');
43-
sequence('clean', 'copy-files', 'compile-ts', cb);
38+
sequence('clean', 'compile-ts', cb);
4439
});
4540

4641
gulp.task('dev', ['watch-ts']);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "node-html-parser",
33
"version": "1.1.0",
44
"description": "A very fast HTML parser, generating a simplified DOM, with basic element query support.",
5-
"main": "index.js",
5+
"main": "dist/index.js",
66
"scripts": {
77
"test": "mocha",
88
"build": "gulp",
@@ -56,4 +56,4 @@
5656
"url": "https://github.com/taoqf/node-fast-html-parser/issues"
5757
},
5858
"homepage": "https://github.com/taoqf/node-fast-html-parser"
59-
}
59+
}

0 commit comments

Comments
 (0)