@multiplatform.one/cli
Advanced tools
Comparing version 1.0.33 to 1.0.34
{ | ||
"name": "@multiplatform.one/cli", | ||
"version": "1.0.33", | ||
"version": "1.0.34", | ||
"author": "BitSpur <support@bitspur.com> (https://bitspur.com)", | ||
@@ -55,3 +55,3 @@ "contributors": [ | ||
"typescript": "~5.3.3", | ||
"@multiplatform.one/utils": "^0.0.18" | ||
"@multiplatform.one/utils": "^0.0.19" | ||
}, | ||
@@ -58,0 +58,0 @@ "dependencies": { |
@@ -32,3 +32,3 @@ /* | ||
process.env.COOKIECUTTER = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../scripts/cookiecutter.sh'); | ||
process.env.COOKIECUTTER = `sh ${path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../scripts/cookiecutter.sh')}`; | ||
program.name('multiplatform.one'); | ||
@@ -64,16 +64,20 @@ program.version( | ||
const cookieCutterConfigFile = path.join(await fs.mkdtemp(path.join(os.tmpdir(), 'multiplatform-')), 'config.json'); | ||
await fs.writeFile(cookieCutterConfigFile, JSON.stringify(cookieCutterConfig, null, 2)); | ||
await execa( | ||
'sh', | ||
[ | ||
path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../scripts/init.sh'), | ||
'-f', | ||
'--config-file', | ||
cookieCutterConfigFile, | ||
remote, | ||
], | ||
{ | ||
stdio: 'inherit', | ||
}, | ||
); | ||
try { | ||
await fs.writeFile(cookieCutterConfigFile, JSON.stringify(cookieCutterConfig, null, 2)); | ||
await execa( | ||
'sh', | ||
[ | ||
path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../scripts/init.sh'), | ||
'-f', | ||
'--config-file', | ||
cookieCutterConfigFile, | ||
remote, | ||
], | ||
{ | ||
stdio: 'inherit', | ||
}, | ||
); | ||
} finally { | ||
await fs.rm(cookieCutterConfigFile, { recursive: true, force: true }); | ||
} | ||
}); | ||
@@ -112,19 +116,23 @@ | ||
const cookieCutterConfigFile = path.join(await fs.mkdtemp(path.join(os.tmpdir(), 'multiplatform-')), 'config.json'); | ||
await fs.writeFile(cookieCutterConfigFile, JSON.stringify(cookieCutterConfig, null, 2)); | ||
await execa( | ||
'sh', | ||
[ | ||
path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../scripts/update.sh'), | ||
'-f', | ||
'--config-file', | ||
cookieCutterConfigFile, | ||
remote, | ||
], | ||
{ | ||
cwd: projectRoot, | ||
stdio: 'inherit', | ||
}, | ||
); | ||
try { | ||
await fs.writeFile(cookieCutterConfigFile, JSON.stringify(cookieCutterConfig, null, 2)); | ||
await execa( | ||
'sh', | ||
[ | ||
path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../scripts/update.sh'), | ||
'-f', | ||
'--config-file', | ||
cookieCutterConfigFile, | ||
remote, | ||
], | ||
{ | ||
cwd: projectRoot, | ||
stdio: 'inherit', | ||
}, | ||
); | ||
} finally { | ||
await fs.rm(cookieCutterConfigFile, { recursive: true, force: true }); | ||
} | ||
}); | ||
program.parse(process.argv); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25407
297