Skip to content

Commit 8e19394

Browse files
committed
[#5280] remove --no-save handling, left as non-supported
1 parent 7db7c47 commit 8e19394

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

workspaces/config/lib/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ class Config {
235235

236236
// Only set 'save' to true if a saveType has been specified
237237
// and if 'save' is false due to non-default config
238-
if (!this.isDefault('save') && this.#flatOptions.saveType
239-
&& !this.argv?.includes('--no-save')) {
238+
if (!this.isDefault('save') && this.#flatOptions.saveType) {
240239
this.#flatOptions.save = true
241240
}
242241
this.#flatOptions.nodeBin = this.execPath

workspaces/config/test/index.js

-4
Original file line numberDiff line numberDiff line change
@@ -944,10 +944,6 @@ t.test('manages the save flag when flat is retrieved', t => {
944944
const c = await buildConfig(['--no-save'], true)
945945
t.equal(c.flat.save, false)
946946
})
947-
t.test('oes not overwrite save --no-save is present in addition to save flag', async t => {
948-
const c = await buildConfig(['--save-prod', '--no-save'], true)
949-
t.equal(c.flat.save, false)
950-
})
951947
t.end()
952948
})
953949

0 commit comments

Comments
 (0)