@nxlv/python
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -10,2 +10,8 @@ # Changelog | ||
## [1.8.1] - 2022-07-15 | ||
### Fixed | ||
- Fixed `spawnSync` for windows OS. | ||
## [1.8.0] - 2022-07-13 | ||
@@ -12,0 +18,0 @@ |
{ | ||
"name": "@nxlv/python", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "Custom NX Plugin to support the Python language", | ||
@@ -16,2 +16,3 @@ "main": "src/index.js", | ||
"@iarna/toml": "^2.2.5", | ||
"cross-spawn": "^7.0.3", | ||
"uuid": "^8.3.2" | ||
@@ -18,0 +19,0 @@ }, |
@@ -10,3 +10,3 @@ "use strict"; | ||
const toml_1 = require("@iarna/toml"); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
function updateDependencyTree(context) { | ||
@@ -22,3 +22,3 @@ const rootPyprojectToml = (0, fs_extra_1.existsSync)('pyproject.toml'); | ||
console.log((0, chalk_1.default) `\nUpdating root {bold pyproject.toml} dependency {bold ${name}}`); | ||
(0, child_process_1.spawnSync)('poetry', ['update', name], { | ||
cross_spawn_1.default.sync('poetry', ['update', name], { | ||
shell: false, | ||
@@ -25,0 +25,0 @@ stdio: 'inherit', |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk")); | ||
@@ -30,3 +30,3 @@ const update_dependency_1 = require("../../dependency/update-dependency"); | ||
console.log((0, chalk_1.default) `{bold Running command}: ${installCommand} at {bold ${projectConfig.root}} folder\n`); | ||
(0, child_process_1.spawnSync)(executable, installArgs, { | ||
cross_spawn_1.default.sync(executable, installArgs, { | ||
cwd: projectConfig.root, | ||
@@ -33,0 +33,0 @@ shell: false, |
@@ -7,3 +7,3 @@ "use strict"; | ||
const toml_1 = require("@iarna/toml"); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
const os_1 = require("os"); | ||
@@ -47,3 +47,3 @@ const uuid_1 = require("uuid"); | ||
logger.info((0, chalk_1.default) ` Running ${command}`); | ||
(0, child_process_1.spawnSync)(executable, buildArgs, { | ||
cross_spawn_1.default.sync(executable, buildArgs, { | ||
cwd: buildFolderPath, | ||
@@ -167,3 +167,3 @@ shell: false, | ||
} | ||
(0, child_process_1.spawnSync)('poetry', exportArgs, { | ||
cross_spawn_1.default.sync('poetry', exportArgs, { | ||
cwd: root, | ||
@@ -170,0 +170,0 @@ shell: false, |
@@ -5,3 +5,3 @@ "use strict"; | ||
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk")); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
const logger_1 = require("../utils/logger"); | ||
@@ -27,3 +27,3 @@ const path_1 = (0, tslib_1.__importDefault)(require("path")); | ||
const lintingArgs = ['run', 'flake8', '--output-file', absPath]; | ||
(0, child_process_1.spawnSync)(executable, lintingArgs, { | ||
cross_spawn_1.default.sync(executable, lintingArgs, { | ||
cwd: cwd, | ||
@@ -30,0 +30,0 @@ shell: false, |
@@ -6,3 +6,3 @@ "use strict"; | ||
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk")); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
const path_1 = (0, tslib_1.__importDefault)(require("path")); | ||
@@ -36,3 +36,3 @@ const logger = new logger_1.Logger(); | ||
} | ||
(0, child_process_1.spawnSync)(executable, installArgs, execOpts); | ||
cross_spawn_1.default.sync(executable, installArgs, execOpts); | ||
return { | ||
@@ -39,0 +39,0 @@ success: true, |
@@ -5,3 +5,3 @@ "use strict"; | ||
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk")); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
const update_dependency_1 = require("../../dependency/update-dependency"); | ||
@@ -27,3 +27,3 @@ const poetry_1 = require("../utils/poetry"); | ||
console.log((0, chalk_1.default) `{bold Running command}: ${removeCommand} at {bold ${projectConfig.root}} folder\n`); | ||
(0, child_process_1.spawnSync)(executable, removeArgs, { | ||
cross_spawn_1.default.sync(executable, removeArgs, { | ||
cwd: projectConfig.root, | ||
@@ -30,0 +30,0 @@ shell: false, |
@@ -5,3 +5,3 @@ "use strict"; | ||
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk")); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
const logger_1 = require("../utils/logger"); | ||
@@ -33,3 +33,3 @@ const path_1 = (0, tslib_1.__importDefault)(require("path")); | ||
.concat(options.force ? ['--force'] : []); | ||
(0, child_process_1.spawnSync)(executable, deployArgs, { | ||
cross_spawn_1.default.sync(executable, deployArgs, { | ||
cwd: cwd, | ||
@@ -36,0 +36,0 @@ shell: false, |
@@ -5,3 +5,3 @@ "use strict"; | ||
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk")); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
const logger_1 = require("../utils/logger"); | ||
@@ -31,3 +31,3 @@ const path_1 = (0, tslib_1.__importDefault)(require("path")); | ||
const deployArgs = ['sls', 'package', '--stage', options.stage]; | ||
(0, child_process_1.spawnSync)(executable, deployArgs, { | ||
cross_spawn_1.default.sync(executable, deployArgs, { | ||
cwd: cwd, | ||
@@ -34,0 +34,0 @@ shell: false, |
@@ -8,3 +8,3 @@ "use strict"; | ||
const logger_1 = require("../utils/logger"); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
const fs_extra_1 = require("fs-extra"); | ||
@@ -42,3 +42,3 @@ const logger = new logger_1.Logger(); | ||
logger.info((0, chalk_1.default) `\n Running Command: {bold ${command}}\n`); | ||
(0, child_process_1.spawnSync)(executable, toxArgs, { | ||
cross_spawn_1.default.sync(executable, toxArgs, { | ||
cwd: projectConfig.root, | ||
@@ -45,0 +45,0 @@ shell: false, |
@@ -6,3 +6,3 @@ "use strict"; | ||
const poetry_1 = require("../utils/poetry"); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
const update_dependency_1 = require("../../dependency/update-dependency"); | ||
@@ -35,3 +35,3 @@ const fs_extra_1 = require("fs-extra"); | ||
console.log((0, chalk_1.default) `{bold Running command}: ${updateCommand} at {bold ${projectConfig.root}} folder\n`); | ||
(0, child_process_1.spawnSync)(executable, updateArgs, { | ||
cross_spawn_1.default.sync(executable, updateArgs, { | ||
cwd: projectConfig.root, | ||
@@ -38,0 +38,0 @@ shell: false, |
@@ -6,3 +6,3 @@ "use strict"; | ||
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk")); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
const path_1 = (0, tslib_1.__importDefault)(require("path")); | ||
@@ -40,3 +40,3 @@ const toml_1 = (0, tslib_1.__importDefault)(require("@iarna/toml")); | ||
console.log((0, chalk_1.default) `{bold Running command}: ${updateLockCommand} at {bold ${cwd}} folder\n`); | ||
(0, child_process_1.spawnSync)(executable, updateLockArgs, { | ||
cross_spawn_1.default.sync(executable, updateLockArgs, { | ||
cwd, | ||
@@ -43,0 +43,0 @@ shell: false, |
@@ -8,3 +8,3 @@ "use strict"; | ||
const toml_1 = require("@iarna/toml"); | ||
const child_process_1 = require("child_process"); | ||
const cross_spawn_1 = (0, tslib_1.__importDefault)(require("cross-spawn")); | ||
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk")); | ||
@@ -75,3 +75,3 @@ function normalizeOptions(host, options) { | ||
const updateArgs = ['update', normalizedOptions.packageName]; | ||
(0, child_process_1.spawnSync)(executable, updateArgs, { | ||
cross_spawn_1.default.sync(executable, updateArgs, { | ||
shell: false, | ||
@@ -78,0 +78,0 @@ stdio: 'inherit', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
147175
0
4
+ Addedcross-spawn@^7.0.3
+ Addedcross-spawn@7.0.6(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedwhich@2.0.2(transitive)