mirror of
https://github.com/actions/setup-python.git
synced 2026-07-18 06:19:58 +08:00
Migrate to ESM and upgrade dependencies (#1330)
* Migrate to ESM and upgrade dependencies * Add ESM migration note to README for V7 * Remove unnecessary devDependencies: ts-node, @types/jest * npm audit fix * Upgrade @types/node to version 26.0.0 * Clarify ESM migration details in README for V7 * Update README and dependencies * Fix lint issue
This commit is contained in:
parent
54baeea5b3
commit
f8cf4291c8
66 changed files with 114215 additions and 104031 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import * as cache from '@actions/cache';
|
||||
import * as core from '@actions/core';
|
||||
import {getOSInfo, IS_LINUX} from '../utils';
|
||||
import {CACHE_DEPENDENCY_BACKUP_PATH} from './constants';
|
||||
import {getOSInfo, IS_LINUX} from '../utils.js';
|
||||
import {CACHE_DEPENDENCY_BACKUP_PATH} from './constants.js';
|
||||
|
||||
export enum State {
|
||||
STATE_CACHE_PRIMARY_KEY = 'cache-primary-key',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import PipCache from './pip-cache';
|
||||
import PipenvCache from './pipenv-cache';
|
||||
import PoetryCache from './poetry-cache';
|
||||
import PipCache from './pip-cache.js';
|
||||
import PipenvCache from './pipenv-cache.js';
|
||||
import PoetryCache from './poetry-cache.js';
|
||||
|
||||
export enum PackageManagers {
|
||||
Pip = 'pip',
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ import utils from 'util';
|
|||
import * as path from 'path';
|
||||
import os from 'os';
|
||||
|
||||
import CacheDistributor from './cache-distributor';
|
||||
import {IS_WINDOWS} from '../utils';
|
||||
import {CACHE_DEPENDENCY_BACKUP_PATH} from './constants';
|
||||
import CacheDistributor from './cache-distributor.js';
|
||||
import {IS_WINDOWS} from '../utils.js';
|
||||
import {CACHE_DEPENDENCY_BACKUP_PATH} from './constants.js';
|
||||
|
||||
class PipCache extends CacheDistributor {
|
||||
private cacheDependencyBackupPath: string = CACHE_DEPENDENCY_BACKUP_PATH;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import * as os from 'os';
|
|||
import * as path from 'path';
|
||||
import * as core from '@actions/core';
|
||||
|
||||
import CacheDistributor from './cache-distributor';
|
||||
import CacheDistributor from './cache-distributor.js';
|
||||
|
||||
class PipenvCache extends CacheDistributor {
|
||||
constructor(
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ import * as path from 'path';
|
|||
import * as exec from '@actions/exec';
|
||||
import * as core from '@actions/core';
|
||||
|
||||
import CacheDistributor from './cache-distributor';
|
||||
import {logWarning} from '../utils';
|
||||
import CacheDistributor from './cache-distributor.js';
|
||||
import {logWarning} from '../utils.js';
|
||||
|
||||
class PoetryCache extends CacheDistributor {
|
||||
constructor(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue