Skip to content

Commit cddc1f5

Browse files
authored
feat: Remove browser-specific files (#571)
* feat: Remove browser-specific files * fix: let find remove other sourcemaps, including the weird naming conventions. Remove markdown
1 parent 798f64c commit cddc1f5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,18 @@ RUN rm -rf /nodejs/node_modules/@datadog/pprof/prebuilds/win32-x64
4747
RUN rm -rf /nodejs/node_modules/@datadog/native-iast-taint-tracking
4848
RUN rm -rf /nodejs/node_modules/@datadog/native-iast-rewriter
4949
RUN rm -rf /nodejs/node_modules/@datadog/pprof/prebuilds/linuxmusl-x64
50+
RUN rm -rf /nodejs/node_modules/jsonpath-plus/src/jsonpath.d.ts
51+
RUN rm -rf /nodejs/node_modules/jsonpath-plus/src/jsonpath-browser.js
52+
RUN rm -rf /nodejs/node_modules/jsonpath-plus/src/dist/index-browser-umd.min.cjs
53+
RUN rm -rf /nodejs/node_modules/jsonpath-plus/src/dist/index-browser-umd.cjs
54+
RUN rm -rf /nodejs/node_modules/jsonpath-plus/src/dist/index-browser-esm.min.js
55+
RUN rm -rf /nodejs/node_modules/jsonpath-plus/src/dist/index-browser-esm.js
5056
RUN find /nodejs/node_modules -name "*.d.ts" -delete
5157
RUN find /nodejs/node_modules -name "*.js.map" -delete
58+
RUN find /nodejs/node_modules -name "*.mjs.map" -delete
59+
RUN find /nodejs/node_modules -name "*.cjs.map" -delete
5260
RUN find /nodejs/node_modules -name "*.ts.map" -delete
61+
RUN find /nodejs/node_modules -name "*.md" -delete
5362

5463
FROM scratch
5564
COPY --from=builder /nodejs /

0 commit comments

Comments
 (0)