Skip to content

Commit b12f55b

Browse files
amitsi-bsclaude
andcommitted
LTS-3295: complete .npmrc hardening + bump SDK to latest
- .npmrc: add ignore-scripts=true + engine-strict=true -> all 6 SC-12282 directives now present (access=restricted is N/A for a public sample). ignore-scripts is safe here: these tests run remotely on BrowserStack and Edge/Gecko are not supported on our platform, so the local driver-binary postinstalls (edgedriver/geckodriver) are not needed. - package.json: pin browserstack-node-sdk to 1.61.0 (latest; the wdio/NodeBase BLU runner relies on package.json and does not override the node-SDK version). Add engines.node ">=18" (satisfied by the runner pods and required by @wdio/cli 9) so engine-strict has a safe floor that only rejects EOL Node. - package-lock.json: regenerated for 1.61.0, kept lockfileVersion 2. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 88e3b95 commit b12f55b

3 files changed

Lines changed: 1932 additions & 1494 deletions

File tree

.npmrc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44
# access=restricted is intentionally OMITTED — this is a public, customer-facing
55
# sample repository, not a published private package.
66
#
7-
# ignore-scripts=true is intentionally DEFERRED. Dependencies fetch driver
8-
# binaries during postinstall (edgedriver, geckodriver) and esbuild verifies its
9-
# platform-specific native binary on install; enabling ignore-scripts would break
10-
# local driver setup. Re-enable if the sample drops these packages.
7+
# ignore-scripts=true is now safe: these tests run remotely on BrowserStack, and
8+
# Edge/Gecko are not supported on our platform, so the local driver-binary
9+
# postinstalls (edgedriver/geckodriver) are not needed. browserstack-node-sdk is
10+
# pinned to the latest release (1.61.0) so no update-postinstall is needed either.
1111
#
12-
# engine-strict=true is intentionally DEFERRED. Customers clone and run this
13-
# sample on a wide range of Node versions; hard EBADENGINE enforcement on
14-
# transitive deps would break `npm install` for them. Kept as a warning.
12+
# engine-strict=true enforces the package.json `engines.node` floor (>=18), which
13+
# matches our runner pod and what @wdio/cli 9 already requires. Customers on EOL
14+
# Node (<18) get a clear upgrade message instead of obscure failures.
1515

1616
strict-ssl=true
1717
save-exact=true
1818
audit-level=high
1919
legacy-peer-deps=false
20+
ignore-scripts=true
21+
engine-strict=true

0 commit comments

Comments
 (0)