Skip to content

Commit 99866ba

Browse files
committed
v0.1.12 - remove sourcemap from ADO task
- split scripts for ado:build and add ado:debugbuild so that sourcemap-register.cjs is no longer needed (has a CodeQL alert)
1 parent d204ce6 commit 99866ba

File tree

8 files changed

+8
-12
lines changed

8 files changed

+8
-12
lines changed

ado-dist/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import './sourcemap-register.cjs';import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module";
1+
import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module";
22
/******/ var __webpack_modules__ = ({
33

44
/***/ 4914:
@@ -53144,5 +53144,3 @@ module.exports = /*#__PURE__*/JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45
5314453144
/******/ // This entry module is referenced by other modules so it can't be inlined
5314553145
/******/ var __webpack_exports__ = __nccwpck_require__(7957);
5314653146
/******/
53147-
53148-
//# sourceMappingURL=index.js.map

ado-dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component-detection-github-submission-task/index.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import './sourcemap-register.cjs';import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module";
1+
import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module";
22
/******/ var __webpack_modules__ = ({
33

44
/***/ 4914:
@@ -53144,5 +53144,3 @@ module.exports = /*#__PURE__*/JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45
5314453144
/******/ // This entry module is referenced by other modules so it can't be inlined
5314553145
/******/ var __webpack_exports__ = __nccwpck_require__(7957);
5314653146
/******/
53147-
53148-
//# sourceMappingURL=index.js.map

component-detection-github-submission-task/sourcemap-register.cjs

Lines changed: 0 additions & 1 deletion
This file was deleted.

component-detection-github-submission-task/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 0,
1111
"Minor": 1,
12-
"Patch": 10
12+
"Patch": 12
1313
},
1414
"instanceNameFormat": "Component Detection $(filePath)",
1515
"groups": [

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"prepare": "ncc build index.ts -o dist --source-map --license licenses.txt",
1010
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
1111
"all": "npm run lint && npm run prepare && npm run test",
12-
"ado:build": "ncc build ado-index.ts -o ado-dist --source-map --license licenses.txt --target es2020 && node -e \"require('fs').copyFileSync('ado-dist/index.js', 'component-detection-github-submission-task/index.mjs'); require('fs').copyFileSync('ado-dist/sourcemap-register.cjs', 'component-detection-github-submission-task/sourcemap-register.cjs')\"",
12+
"ado:build": "ncc build ado-index.ts -o ado-dist --license licenses.txt --target es2020 && node -e \"require('fs').copyFileSync('ado-dist/index.js', 'component-detection-github-submission-task/index.mjs');",
13+
"ado:debugbuild": "ncc build ado-index.ts -o ado-dist --source-map --license licenses.txt --target es2020 && node -e \"require('fs').copyFileSync('ado-dist/index.js', 'component-detection-github-submission-task/index.mjs'); require('fs').copyFileSync('ado-dist/sourcemap-register.cjs', 'component-detection-github-submission-task/sourcemap-register.cjs')\"",
1314
"ado:package": "tfx extension create --manifest-globs vss-extension.json",
1415
"ado:all": "npm run ado:build && npm run ado:package"
1516
},

vss-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifestVersion": 1,
33
"id": "component-detection-github-submission-task",
44
"name": "Component Detection for GitHub Dependency Submission",
5-
"version": "0.1.10",
5+
"version": "0.1.12",
66
"publisher": "AdvancedSecurityOSS",
77
"description": "Upload information about your dependencies to the GitHub dependency graph using Microsoft's component detection library",
88
"public": false,

0 commit comments

Comments
 (0)