Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bcc017b

Browse files
Turning on strict mode in PowerShell scripts.
1 parent d4e56b2 commit bcc017b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

bin/npm.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env pwsh
22

3+
Set-StrictMode -Version 'Latest'
4+
35
$NODE_EXE="$PSScriptRoot/node.exe"
46
if (-not (Test-Path $NODE_EXE)) {
57
$NODE_EXE="$PSScriptRoot/node"

bin/npx.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env pwsh
22

3+
Set-StrictMode -Version 'Latest'
4+
35
$NODE_EXE="$PSScriptRoot/node.exe"
46
if (-not (Test-Path $NODE_EXE)) {
57
$NODE_EXE="$PSScriptRoot/node"

0 commit comments

Comments
 (0)