Disable source-map-register

The included sourcemap-register.js file is triggering a high priority
CodeQL warning, which can prevent users from adopting the action.
Removing this sourcemap support for now, until this can be fixed upstream.
This commit is contained in:
Daz DeBoer 2022-09-22 10:22:04 -06:00
parent aeb3e0fcd7
commit 74a56b60ce
No known key found for this signature in database
GPG Key ID: DD6B9F0B06683D5D
5 changed files with 3 additions and 5 deletions

2
dist/main/index.js vendored
View File

@ -1,4 +1,4 @@
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap /******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({ /******/ var __webpack_modules__ = ({
/***/ 7799: /***/ 7799:

File diff suppressed because one or more lines are too long

2
dist/post/index.js vendored
View File

@ -1,4 +1,4 @@
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap /******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({ /******/ var __webpack_modules__ = ({
/***/ 7799: /***/ 7799:

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
"format": "prettier --write **/*.ts", "format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts", "format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts", "lint": "eslint src/**/*.ts",
"compile": "ncc build src/main.ts --out dist/main --source-map && ncc build src/post.ts --out dist/post --source-map", "compile": "ncc build src/main.ts --out dist/main --source-map --no-source-map-register && ncc build src/post.ts --out dist/post --source-map --no-source-map-register",
"test": "jest", "test": "jest",
"check": "npm run format && npm run lint", "check": "npm run format && npm run lint",
"build": "npm run check && npm run compile", "build": "npm run check && npm run compile",