chore: Update package.json version to 1.1.1 and optimize Windows platform flags

This commit is contained in:
Mauro Balades 2024-07-23 16:47:49 +02:00
parent 0be65d2f63
commit 9819e0e84d
3 changed files with 11 additions and 9 deletions

View file

@ -43,25 +43,21 @@ export const init = async (directory: Command | string): Promise<void> => {
await configDispatch('git', {
args: ['init'],
cwd: absoluteInitDirectory,
shell: 'unix',
})
await configDispatch('git', {
args: ['init'],
cwd: absoluteInitDirectory,
shell: 'unix',
})
await configDispatch('git', {
args: ['checkout', '--orphan', version],
cwd: absoluteInitDirectory,
shell: 'unix',
})
await configDispatch('git', {
args: ['add', '-f', '.'],
cwd: absoluteInitDirectory,
shell: 'unix',
})
log.info('Committing...')
@ -69,12 +65,10 @@ export const init = async (directory: Command | string): Promise<void> => {
await configDispatch('git', {
args: ['commit', '-aqm', `"Firefox ${version}"`],
cwd: absoluteInitDirectory,
shell: 'unix',
})
await configDispatch('git', {
args: ['checkout', '-b', config.name.toLowerCase().replace(/\s/g, '_')],
cwd: absoluteInitDirectory,
shell: 'unix',
})
}