fix: missing & outdated dependencies

This commit is contained in:
rumblefrog 2022-07-06 16:09:25 -04:00
parent 15e37fb7de
commit bce638864f
No known key found for this signature in database
GPG key ID: 462F405E7D61ED35
6 changed files with 1018 additions and 65 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
node_modules

View file

@ -20,7 +20,7 @@ outputs:
version-file:
description: 'Version of the .sp file'
runs:
using: 'node12'
using: 'node16'
main: 'lib/index.js'
branding:
icon: 'command'

2
lib/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,17 +1,18 @@
{
"dependencies": {
"@actions/core": "^1.2.6",
"@actions/tool-cache": "^1.1.2",
"@types/node": "^12.12.7",
"@types/semver": "^6.2.0",
"await-to-js": "^2.1.1",
"semver": "^6.3.0"
"@actions/core": "^1.9.0",
"@actions/tool-cache": "^2.0.1",
"@types/node": "^18.0.3",
"@types/semver": "^7.3.10",
"await-to-js": "^3.0.0",
"semver": "^7.3.7",
"typed-rest-client": "^1.8.9"
},
"devDependencies": {
"ts-loader": "^9.2.6",
"typescript": "^4.4.3",
"webpack": "^5.58.1",
"webpack-cli": "^4.9.0"
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0"
},
"scripts": {
"start": "./node_modules/.bin/webpack --config ./webpack.config.js"

View file

@ -1,6 +1,5 @@
import * as core from '@actions/core';
import { installCompiler } from './installer';
import * as path from "path";
import * as fs from "fs";
import { parseFile } from "./utils/parser";
@ -13,11 +12,13 @@ async function run() {
const versionFile = core.getInput('version-file', { required: false });
const defineName = core.getInput('define-name', { required: false });
if(versionFile !== "") {
if(!fs.existsSync(versionFile)) {
core.error("The path of the file containing the version is incorrect.");
return;
}
let parsedVersion = parseFile(versionFile, defineName);
core.setOutput('plugin-version', parsedVersion);
}

1054
yarn.lock

File diff suppressed because it is too large Load diff