Skip to content

Commit 8ae556d

Browse files
author
Maël Nison
committed
Wording
1 parent 91a555b commit 8ae556d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

__tests__/integration.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ if (process.platform !== 'win32') {
9797
const [stdoutOutput, stderrOutput] = await Promise.all([stdoutPromise, stderrPromise]);
9898

9999
expect(stdoutOutput.toString().trim()).toEqual('--opt');
100-
expect(stderrOutput.toString()).not.toMatch(/Using -- to pass arguments to your scripts isn't required anymore/);
100+
expect(stderrOutput.toString()).not.toMatch(
101+
/From Yarn 1\.0 onwards, scripts don't require "--" for options to be forwarded/,
102+
);
101103
});
102104

103105
test('yarn run <script> -- --opt', async () => {
@@ -121,7 +123,9 @@ if (process.platform !== 'win32') {
121123
const [stdoutOutput, stderrOutput] = await Promise.all([stdoutPromise, stderrPromise]);
122124

123125
expect(stdoutOutput.toString().trim()).toEqual('--opt');
124-
expect(stderrOutput.toString()).toMatch(/Using -- to pass arguments to your scripts isn't required anymore/);
126+
expect(stderrOutput.toString()).toMatch(
127+
/From Yarn 1\.0 onwards, scripts don't require "--" for options to be forwarded/,
128+
);
125129
});
126130
}
127131

src/reporters/lang/en.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ const messages = {
188188

189189
execMissingCommand: 'Missing command name.',
190190

191-
dashDashDeprecation:
192-
"Using -- to pass arguments to your scripts isn't required anymore. Doing this may cause issues in future versions.",
191+
dashDashDeprecation: `From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.`,
193192
commandNotSpecified: 'No command specified.',
194193
binCommands: 'Commands available from binary scripts: ',
195194
possibleCommands: 'Project commands',

0 commit comments

Comments
 (0)