Skip to content

Commit

Permalink
fixing snyk issue by using exact dependency version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gokul K authored and Gokul K committed Jun 10, 2024
1 parent b66b16a commit fc474db
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
8 changes: 7 additions & 1 deletion esbuild.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as esbuild from "esbuild";
import copyStaticFiles from "esbuild-copy-static-files";
import * as fsExtra from "fs-extra";
import { sentryEsbuildPlugin } from "@sentry/esbuild-plugin";

fsExtra.emptyDirSync("./dist");

Expand All @@ -9,7 +10,7 @@ esbuild.build({
outdir: "dist/js",
bundle: true,
minify: true,
sourcemap: false,
sourcemap: true, // Source map needed for sentry to work
mainFields: ["module", "main"],
plugins: [
copyStaticFiles({
Expand All @@ -36,5 +37,10 @@ esbuild.build({
preserveTimestamps: false,
recursive: true,
}),
sentryEsbuildPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: "typetocalculate",
project: "javascript",
}),
],
});
29 changes: 15 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"dependencies": {
"@sentry/browser": "^8.8.0",
"@sentry/esbuild-plugin": "^2.18.0",
"braces": "3.0.3",
"country-to-currency": "^1.1.5",
"lodash": "^4.17.21",
"mathjs": "^12.4.2",
Expand Down

0 comments on commit fc474db

Please sign in to comment.