Merge pull request #163 from advanced-security/copilot/sub-pr-162
Fix ESM compatibility for @actions/core v3 and @actions/github v9
This commit is contained in:
@@ -14,7 +14,6 @@ import tar from 'tar'
|
|||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import * as exec from '@actions/exec';
|
import * as exec from '@actions/exec';
|
||||||
import dotenv from 'dotenv'
|
import dotenv from 'dotenv'
|
||||||
import { Context } from '@actions/github/lib/context'
|
|
||||||
import { unmockedModulePathPatterns } from './jest.config'
|
import { unmockedModulePathPatterns } from './jest.config'
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|||||||
+63182
-5244
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+3
-2
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
"target": "ES2022", /* Specify ECMAScript target version */
|
||||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
"module": "ES2022", /* Specify module code generation */
|
||||||
|
"moduleResolution": "node", /* Specify module resolution strategy: 'node' or 'classic'. */
|
||||||
"outDir": "./dist", /* Redirect output structure to the directory. */
|
"outDir": "./dist", /* Redirect output structure to the directory. */
|
||||||
"rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
"rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
||||||
"strict": true, /* Enable all strict type-checking options. */
|
"strict": true, /* Enable all strict type-checking options. */
|
||||||
|
|||||||
Reference in New Issue
Block a user