mirror of
https://github.com/codecov/codecov-action.git
synced 2026-03-30 10:05:07 +00:00
Use import to destructure package.json
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user