Skip to content

Commit 81bb8a6

Browse files
authored
quality(apidocs): remove warnings from build scripts (#94729)
while working api docs, i've noticed two new warnings are occuring due to new node / pnpm stuff. This PR addresses two: 1. we add a `api-docs/pnpm-workspace.yaml` that gets rid of this error: ``` │ Ignored build scripts: es5-ext. │ │ Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts. ``` 2. we add `"type":"module"` in the package json to remove ``` (node:5599) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/jferge/code/sentry/api-docs/index.ts is not specified and it doesn't parse as CommonJS. Reparsing as ES module because module syntax was detected. This incurs a performance overhead. To eliminate this warning, add "type": "module" to /Users/jferge/code/sentry/api-docs/package.json. ```
1 parent 0c64476 commit 81bb8a6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

api-docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@sentry-internal/api-docs",
33
"version": "1.0.0",
44
"private": true,
5+
"type": "module",
56
"description": "Sentry API docs",
67
"main": "index.js",
78
"scripts": {

api-docs/pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignoredBuiltDependencies:
2+
- es5-ext

0 commit comments

Comments
 (0)