From c4b374fc52041975986f5f103ea1ed25dcb467e9 Mon Sep 17 00:00:00 2001 From: RA80533 <32469082+RA80533@users.noreply.github.com> Date: Tue, 20 Jul 2021 18:54:56 -0400 Subject: [PATCH] Use `import` to destructure package.json --- src/buildExec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/buildExec.ts b/src/buildExec.ts index c70f9b4..3529386 100644 --- a/src/buildExec.ts +++ b/src/buildExec.ts @@ -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;