Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
8f1254b4de | |||
735708d950 | |||
0ab254e4ed | |||
185b7a38d5 |
18
package.json
18
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smarthbs",
|
"name": "@pushrocks/smarthbs",
|
||||||
"version": "3.0.1",
|
"version": "3.0.3",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "handlebars with better fs support",
|
"description": "handlebars with better fs support",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@ -24,19 +24,17 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/pkunz/smarthbs#README",
|
"homepage": "https://gitlab.com/pkunz/smarthbs#README",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartfile": "^10.0.2",
|
"@pushrocks/smartfile": "^10.0.17",
|
||||||
"@pushrocks/smartpath": "^5.0.5",
|
"@pushrocks/smartpath": "^5.0.5",
|
||||||
"@pushrocks/smartpromise": "^3.1.7",
|
"@pushrocks/smartpromise": "^4.0.2",
|
||||||
"@types/lodash.uniq": "^4.5.7",
|
"handlebars": "^4.7.7"
|
||||||
"handlebars": "^4.7.7",
|
|
||||||
"lodash.uniq": "^4.5.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.63",
|
"@gitzone/tsbuild": "^2.1.66",
|
||||||
"@gitzone/tsrun": "^1.2.37",
|
"@gitzone/tsrun": "^1.2.42",
|
||||||
"@gitzone/tstest": "^1.0.72",
|
"@gitzone/tstest": "^1.0.72",
|
||||||
"@pushrocks/tapbundle": "^5.0.4",
|
"@pushrocks/tapbundle": "^5.0.8",
|
||||||
"@types/node": "^18.0.6"
|
"@types/node": "^20.3.1"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
2500
pnpm-lock.yaml
generated
2500
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smarthbs',
|
name: '@pushrocks/smarthbs',
|
||||||
version: '3.0.1',
|
version: '3.0.3',
|
||||||
description: 'handlebars with better fs support'
|
description: 'handlebars with better fs support'
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,15 @@
|
|||||||
import handlebars from 'handlebars';
|
// node native
|
||||||
import lodashUniq from 'lodash.uniq';
|
|
||||||
import * as smartpath from '@pushrocks/smartpath';
|
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
|
||||||
|
export { path };
|
||||||
|
|
||||||
|
import * as smartpath from '@pushrocks/smartpath';
|
||||||
import * as smartfile from '@pushrocks/smartfile';
|
import * as smartfile from '@pushrocks/smartfile';
|
||||||
import * as smartpromise from '@pushrocks/smartpromise';
|
import * as smartpromise from '@pushrocks/smartpromise';
|
||||||
|
|
||||||
export { handlebars, lodashUniq, path, smartfile, smartpromise };
|
export { smartpath, smartfile, smartpromise };
|
||||||
|
|
||||||
|
// third party
|
||||||
|
import handlebars from 'handlebars';
|
||||||
|
|
||||||
|
export { handlebars };
|
||||||
|
@ -31,7 +31,10 @@ export let findVarsInHbsString = async (hbsStringArg: string) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// make sure are uniq
|
// make sure are uniq
|
||||||
varNameArray = plugins.lodashUniq(varNameArray);
|
function uniqueArray(input: string[]): string[] {
|
||||||
|
return Array.from(new Set(input));
|
||||||
|
}
|
||||||
|
varNameArray = uniqueArray(varNameArray);
|
||||||
return varNameArray;
|
return varNameArray;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user