fix(core): fix dot notation parsing (#8763)
This commit is contained in:
parent
3cdc681326
commit
490c66f245
@ -68,6 +68,26 @@ describe('parseRunOneOptions', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should handle dot notation', () => {
|
||||
expect(
|
||||
parseRunOneOptions('root', workspaceJson, [
|
||||
'run',
|
||||
'myproj:build',
|
||||
'--env.URL=https://localhost:9999',
|
||||
])
|
||||
).toEqual({
|
||||
project: 'myproj',
|
||||
target: 'build',
|
||||
configuration: 'someDefaultConfig',
|
||||
parsedArgs: {
|
||||
_: [],
|
||||
env: {
|
||||
URL: 'https://localhost:9999',
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it('should use defaultProjectName when no provided', () => {
|
||||
expect(
|
||||
parseRunOneOptions(
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import yargsParser = require('yargs-parser');
|
||||
import * as fs from 'fs';
|
||||
import type {
|
||||
WorkspaceJsonConfiguration,
|
||||
NxJsonConfiguration,
|
||||
@ -84,7 +83,6 @@ export function parseRunOneOptions(
|
||||
},
|
||||
configuration: {
|
||||
'strip-dashed': true,
|
||||
'dot-notation': false,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user