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', () => {
|
it('should use defaultProjectName when no provided', () => {
|
||||||
expect(
|
expect(
|
||||||
parseRunOneOptions(
|
parseRunOneOptions(
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import yargsParser = require('yargs-parser');
|
import yargsParser = require('yargs-parser');
|
||||||
import * as fs from 'fs';
|
|
||||||
import type {
|
import type {
|
||||||
WorkspaceJsonConfiguration,
|
WorkspaceJsonConfiguration,
|
||||||
NxJsonConfiguration,
|
NxJsonConfiguration,
|
||||||
@ -84,7 +83,6 @@ export function parseRunOneOptions(
|
|||||||
},
|
},
|
||||||
configuration: {
|
configuration: {
|
||||||
'strip-dashed': true,
|
'strip-dashed': true,
|
||||||
'dot-notation': false,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user