Skip to content

Commit

Permalink
修改
Browse files Browse the repository at this point in the history
  • Loading branch information
ksky521 committed Jan 31, 2019
1 parent b4404ec commit 63ce611
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/nodeppt/commands/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const {
clearConsole
} = require('nodeppt-shared-utils');
const ALIAS_MAP = process.env.alias || {
buildin: require.resolve('nodeppt-template-default'),
buildin: path.parse(require.resolve('nodeppt-template-default')).dir,
default: 'ksky521/nodeppt-template-default'
};
const alias = name => {
Expand Down
1 change: 0 additions & 1 deletion packages/nodeppt/lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ module.exports = async (src, dest, cmdOpts) => {
logWithSpinner('🐝', '开始初始化模板...');

const tpl = getTemplateContent(src);

const content = await template(tpl, data);

fs.writeFileSync(path.resolve(dest), content);
Expand Down
2 changes: 1 addition & 1 deletion packages/nodeppt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"nodeppt-parser": "^2.0.0-beta",
"nodeppt-serve": "^2.0.0-beta",
"nodeppt-shared-utils": "^2.0.0-beta",
"nodeppt-template-default": "^1.0.0",
"nodeppt-template-default": "^1.0.2",
"semver": "^5.6.0",
"user-home": "^2.0.0",
"username": "^4.1.0"
Expand Down

0 comments on commit 63ce611

Please sign in to comment.