mirror of
https://github.com/rumblefrog/setup-sp.git
synced 2025-05-08 06:42:07 +02:00
fix: missing & outdated dependencies
This commit is contained in:
parent
15e37fb7de
commit
bce638864f
6 changed files with 1018 additions and 65 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
node_modules
|
|
@ -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
2
lib/index.js
vendored
File diff suppressed because one or more lines are too long
21
package.json
21
package.json
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue