move dependencies needed to build CLI to separate package.json
This commit is contained in:
parent
bd54c20d3e
commit
a6e6d4b72b
6 changed files with 4721 additions and 3589 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1,2 +1,2 @@
|
|||
/cli/
|
||||
|
||||
/packaging/dist/
|
||||
/packaging/node_modules/
|
||||
|
|
|
|||
3581
package-lock.json
generated
3581
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -54,9 +54,6 @@
|
|||
"sinon": "^9.0.2",
|
||||
"tslint": "^6.1.0",
|
||||
"tslint-eslint-rules": "^5.4.0",
|
||||
"ts-loader": "^8.0.2",
|
||||
"typescript": "^3.7.5",
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-cli": "^3.3.12"
|
||||
"typescript": "^3.7.5"
|
||||
}
|
||||
}
|
||||
4699
packaging/package-lock.json
generated
Normal file
4699
packaging/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
17
packaging/package.json
Normal file
17
packaging/package.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "codeql-packaging",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"description": "CodeQL action - CLI packaging",
|
||||
"scripts": {
|
||||
"build-cli": "webpack --mode production && pkg dist/code-scanning-cli.js --out-path dist"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"pkg": "^4.4.9",
|
||||
"ts-loader": "8.0.2",
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-cli": "^3.3.12"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: './src/cli.ts',
|
||||
entry: '../src/cli.ts',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
|
@ -17,7 +17,7 @@ module.exports = {
|
|||
},
|
||||
output: {
|
||||
filename: 'code-scanning-cli.js',
|
||||
path: path.resolve(__dirname, 'cli'),
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
},
|
||||
optimization: {
|
||||
minimize: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue