@nxlv/python
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "@nxlv/python", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Custom NX Plugin to support the Python language", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -16,3 +16,3 @@ "use strict"; | ||
const projectName = projectDirectory.replace(new RegExp('/', 'g'), '-'); | ||
const moduleName = projectName.replace(new RegExp('-', 'g'), '_'); | ||
const moduleName = options.moduleName ? options.moduleName : projectName.replace(new RegExp('-', 'g'), '_'); | ||
let projectRoot = ''; | ||
@@ -28,4 +28,4 @@ if (options.type === 'application') { | ||
: []; | ||
return Object.assign(Object.assign({}, options), { description: (_a = options.description) !== null && _a !== void 0 ? _a : '', projectName, | ||
moduleName, | ||
return Object.assign(Object.assign({}, options), { description: (_a = options.description) !== null && _a !== void 0 ? _a : '', moduleName, | ||
projectName, | ||
projectRoot, | ||
@@ -32,0 +32,0 @@ projectDirectory, |
@@ -12,4 +12,5 @@ export interface Schema { | ||
packageName: string; | ||
moduleName: string; | ||
publishable: boolean; | ||
addDevDependencies: boolean; | ||
} |
@@ -22,2 +22,6 @@ { | ||
}, | ||
"moduleName": { | ||
"type": "string", | ||
"description": "Python module name" | ||
}, | ||
"publishable": { | ||
@@ -24,0 +28,0 @@ "type": "boolean", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
140658
1521