Skip to content

Commit a375964

Browse files
authored
Merge pull request ksky521#152 from HakurouKen/master
添加 main 入口 && 非公共 imgs 文件移动
2 parents 367dfe7 + bff6712 commit a375964

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

bin/nodeppt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ program
3434
console.log();
3535
});
3636

37-
function assertPathWarn(){
37+
function assetPathWarn(){
3838
console.warn('The asset-path params will be ignored when output all files.');
3939
}
4040

@@ -58,15 +58,15 @@ program
5858
filename = cmd;
5959
shouldAll = options.all;
6060
if (options.assetPath && shouldAll ) {
61-
assertPathWarn();
61+
assetPathWarn();
6262
} else {
6363
path = options.assetPath;
6464
}
6565
} else if (typeof cmd === 'object') {
6666
shouldAll = cmd.all;
6767
output = cmd.output;
6868
if (cmd.assetPath && shouldAll ) {
69-
assertPathWarn();
69+
assetPathWarn();
7070
} else {
7171
path = cmd.assetPath;
7272
}

lib/nodePPT.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
var fs = require('fs');
22
var path = require('path');
3+
var exec = require('child_process').exec;
34

4-
var color = require('colors');
55
var read = require('read');
6-
var exec = require('child_process').exec;
6+
require('colors');
77

88
var $ = require('./helper');
99

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
"name": "nodeppt",
33
"jsname": "nodeppt",
44
"description": "A simple, in-browser, markdown-driven presentation framework",
5-
"version": "1.4.2",
5+
"version": "1.4.3",
66
"site": "https://github.com/ksky521/nodePPT",
7+
"main": "lib/nodePPT.js",
78
"author": {
89
"name": "Theo Wang",
910
"email": "ksky521@gmail.com"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)