mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-14 15:07:25 +00:00
Use import to destructure package.json
This commit is contained in:
parent
48b5a1f06e
commit
c4b374fc52
1 changed files with 1 additions and 2 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
import * as github from '@actions/github';
|
import * as github from '@actions/github';
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
import { version } from '../package.json';
|
||||||
const {version} = require('../package.json');
|
|
||||||
|
|
||||||
const context = github.context;
|
const context = github.context;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue