Fix ESM compatibility for @actions packages v3/v9
- Remove unused deep import of Context from @actions/github/lib/context - Update TypeScript config to compile to ES2022 modules instead of CommonJS - This fixes build failures with @actions/core v3 and @actions/github v9 Co-authored-by: felickz <[email protected]>
This commit is contained in:
co-authored by
felickz
parent
1a454445fe
commit
4f00d77f0c
@@ -14,7 +14,6 @@ import tar from 'tar'
|
||||
import fs from 'fs'
|
||||
import * as exec from '@actions/exec';
|
||||
import dotenv from 'dotenv'
|
||||
import { Context } from '@actions/github/lib/context'
|
||||
import { unmockedModulePathPatterns } from './jest.config'
|
||||
import path from 'path';
|
||||
dotenv.config();
|
||||
|
||||
Reference in New Issue
Block a user