From 766205b8e740c18dd76d4bb2f0fbdcd8149219ab Mon Sep 17 00:00:00 2001 From: le-cong Date: Thu, 25 Jan 2024 21:56:43 -0500 Subject: [PATCH] Allow esm only package import (#71) --- package-lock.json | 4 ++-- package.json | 2 +- src/check-imports/packages-not-allowed.ts | 7 ------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0bbc4a3..501500f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@checkdigit/github-actions", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@checkdigit/github-actions", - "version": "1.0.1", + "version": "1.0.2", "license": "MIT", "dependencies": { "@actions/core": "^1.10.0", diff --git a/package.json b/package.json index 87c1c47..bfa64e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@checkdigit/github-actions", - "version": "1.0.1", + "version": "1.0.2", "description": " Provides supporting operations for github action builds.", "typings": "./dist/index.d.ts", "main": "./dist/index.js", diff --git a/src/check-imports/packages-not-allowed.ts b/src/check-imports/packages-not-allowed.ts index 3bbf27b..ed91fd3 100644 --- a/src/check-imports/packages-not-allowed.ts +++ b/src/check-imports/packages-not-allowed.ts @@ -7,19 +7,12 @@ export type NotAllowed = [Name, Range, Reason]; // const UNSTABLE = // 'Higher versions are unstable and break tests in Check Digit services. This can be removed from the Not Allowed list when stability improves.'; -const ESM_UNSUPPORTED = - 'This version and higher use ESM which Check Digit does not support. This can be removed when Check Digit supports ESM.'; -const ESM_UNSUPPORTED_HIGHER = - 'Higher versions use ESM which Check Digit does not support. This can be removed when Check Digit supports ESM.'; /* This is the list of packages that are not allowed to be imported. */ const notAllowed: NotAllowed[] = [ // ['@aws-sdk/client-*', '>3.387.0', UNSTABLE], // example of an unstable package - ['got', '>=12.0.0', ESM_UNSUPPORTED], - ['get-port', '>=6.0.0', ESM_UNSUPPORTED], - ['antlr4', '>4.9.3', ESM_UNSUPPORTED_HIGHER], ]; export default notAllowed;