Use import to destructure package.json

This commit is contained in:
RA80533 2021-07-20 18:54:56 -04:00
parent 48b5a1f06e
commit c4b374fc52
No known key found for this signature in database
GPG key ID: BB4D9E2AD2E21B54

View file

@ -1,8 +1,7 @@
import * as core from '@actions/core';
import * as github from '@actions/github';
/* eslint-disable @typescript-eslint/no-var-requires */
const {version} = require('../package.json');
import { version } from '../package.json';
const context = github.context;