Comparing version 0.1.4 to 0.1.5
@@ -41,4 +41,9 @@ "use strict"; | ||
const methods = []; | ||
const properties = []; | ||
for (const item of dirs) { | ||
const drawerName = (_a = lodash_1.last(item.split(path_1.sep))) === null || _a === void 0 ? void 0 : _a.replace('.tsx', ''); | ||
properties.push({ | ||
name: drawerName, | ||
initializer: `'${drawerName}'`, | ||
}); | ||
methods.push({ | ||
@@ -60,2 +65,3 @@ name: 'open' + drawerName, | ||
name: 'DrawerService', | ||
properties, | ||
methods, | ||
@@ -62,0 +68,0 @@ }); |
@@ -15,2 +15,3 @@ "use strict"; | ||
const sourceFile = project.createSourceFile(outPath, undefined, { overwrite: true }); | ||
const properties = []; | ||
sourceFile.addImportDeclaration({ | ||
@@ -40,2 +41,6 @@ moduleSpecifier: '@common/modal', | ||
const modalName = (_a = lodash_1.last(item.split(path_1.sep))) === null || _a === void 0 ? void 0 : _a.replace('.tsx', ''); | ||
properties.push({ | ||
name: modalName, | ||
initializer: `'${modalName}'`, | ||
}); | ||
methods.push({ | ||
@@ -53,2 +58,3 @@ name: 'open' + modalName, | ||
name: 'ModalService', | ||
properties, | ||
methods, | ||
@@ -55,0 +61,0 @@ }); |
{ | ||
"name": "gqlgen", | ||
"description": "gqlgen", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"author": "forsigner", | ||
@@ -36,2 +36,3 @@ "bin": { | ||
"eslint-config-oclif-typescript": "^0.1.0", | ||
"standard-version": "^7.1.0", | ||
"ts-node": "^8.8.1", | ||
@@ -59,7 +60,8 @@ "typescript": "^3.8.3" | ||
"posttest": "eslint . --ext .ts --config .eslintrc", | ||
"prepack": "rm -rf lib && tsc -b && oclif-dev readme", | ||
"prepack": "rm -rf lib && tsc -b", | ||
"test": "echo NO TESTS", | ||
"version": "oclif-dev readme && git add README.md" | ||
"version": "oclif-dev readme && git add README.md", | ||
"release": "standard-version" | ||
}, | ||
"types": "lib/index.d.ts" | ||
} |
49188
37
1164
9