Compare commits

..

4 Commits

Author SHA1 Message Date
b53240a2ea 4.1.9 2017-03-15 20:45:59 +01:00
2ba39cf2ac Merge branch 'master' into 'master'
fix smartfile.fs.fileTreeToObject

See merge request !1
2017-03-15 19:44:42 +00:00
675934d049 fix smartfile.fs.fileTreeToObject 2017-03-15 15:25:41 +01:00
dda4c1af07 update npmextra.json 2017-03-12 00:10:01 +01:00
4 changed files with 11 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,5 +5,10 @@
}, },
"npmdocker":{ "npmdocker":{
},
"npmci": {
"globalNpmTools": [
"npmts"
]
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "smartfile", "name": "smartfile",
"version": "4.1.8", "version": "4.1.9",
"description": "offers smart ways to work with files in nodejs", "description": "offers smart ways to work with files in nodejs",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
@ -41,7 +41,6 @@
}, },
"devDependencies": { "devDependencies": {
"gulp-function": "^2.2.3", "gulp-function": "^2.2.3",
"npmts-g": "^6.0.0",
"smartchai": "^1.0.3", "smartchai": "^1.0.3",
"typings-test": "^1.0.3" "typings-test": "^1.0.3"
} }

View File

@ -214,7 +214,9 @@ export let fileTreeToObject = async (dirPathArg: string, miniMatchFilter: string
for (let filePath of fileTree) { for (let filePath of fileTree) {
smartfileArray.push(new Smartfile({ smartfileArray.push(new Smartfile({
path: filePath, path: filePath,
contentBuffer: new Buffer(toStringSync(filePath)) contentBuffer: new Buffer(toStringSync(
plugins.path.join(dirPathArg, filePath)
))
})) }))
} }
return smartfileArray return smartfileArray