mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-25 16:18:06 -05:00
feat!: enabe-pre-post-scripts is true by default (#7634)
This commit is contained in:
6
.changeset/smart-frogs-sniff.md
Normal file
6
.changeset/smart-frogs-sniff.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/config": major
|
||||
"pnpm": major
|
||||
---
|
||||
|
||||
`enable-pre-post-scripts` is set to `true` by default. This means that when you run a script like `start`, `prestart` and `poststart` will also run.
|
||||
@@ -210,6 +210,7 @@ export async function getConfig (
|
||||
'dedupe-injected-deps': true,
|
||||
'disallow-workspace-cycles': false,
|
||||
'enable-modules-dir': true,
|
||||
'enable-pre-post-scripts': true,
|
||||
'exclude-links-from-lockfile': false,
|
||||
'extend-node-path': true,
|
||||
'fail-if-no-match': false,
|
||||
|
||||
@@ -46,7 +46,9 @@ test('run: pass the args to the command that is specified in the build script',
|
||||
|
||||
const { default: args } = await import(path.resolve('args.json'))
|
||||
expect(args).toStrictEqual([
|
||||
[],
|
||||
['arg', '--flag=true'],
|
||||
[],
|
||||
])
|
||||
})
|
||||
|
||||
@@ -69,7 +71,9 @@ test('run: pass all arguments after script name to the build script, even --', a
|
||||
|
||||
const { default: args } = await import(path.resolve('args.json'))
|
||||
expect(args).toStrictEqual([
|
||||
[],
|
||||
['arg', '--', '--flag=true'],
|
||||
[],
|
||||
])
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user