diff --git a/src/scripts/check-for-upgrades.ts b/src/scripts/check-for-upgrades.ts index f336ab05..98e78dc0 100644 --- a/src/scripts/check-for-upgrades.ts +++ b/src/scripts/check-for-upgrades.ts @@ -20,10 +20,6 @@ export class CheckForUpgradesScriptFile extends FileBase { ) { super(project, "scripts/check-for-upgrades.js", options); this.options = options; - - // commonjs version, We can remove this import when we are on Node 18 - // (currently ubuntu-latest is still on Node 16) - project.addDevDeps("node-fetch@cjs"); } protected synthesizeContent(resolver: IResolver): string | undefined { @@ -41,7 +37,6 @@ export class CheckForUpgradesScriptFile extends FileBase { * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ -const fetch = require("node-fetch"); const semver = require("semver"); const actions = require("@actions/core"); diff --git a/test/__snapshots__/index.test.ts.snap b/test/__snapshots__/index.test.ts.snap index 75e6e946..dd36eeee 100644 --- a/test/__snapshots__/index.test.ts.snap +++ b/test/__snapshots__/index.test.ts.snap @@ -1324,11 +1324,6 @@ scripts "version": "1.x", "type": "build" }, - { - "name": "node-fetch", - "version": "cjs", - "type": "build" - }, { "name": "projen", "type": "build" @@ -2290,7 +2285,6 @@ The repository is managed by [Repository Manager](https://github.com/hashicorp/c "jsii-docgen": "~9.0.0", "jsii-pacmak": "*", "jsii-rosetta": "~5.1.2", - "node-fetch": "cjs", "projen": "*", "standard-version": "^9", "typescript": "*" @@ -2397,7 +2391,6 @@ The repository is managed by [Repository Manager](https://github.com/hashicorp/c * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ -const fetch = require("node-fetch"); const semver = require("semver"); const actions = require("@actions/core"); @@ -4038,11 +4031,6 @@ scripts "version": "1.x", "type": "build" }, - { - "name": "node-fetch", - "version": "cjs", - "type": "build" - }, { "name": "projen", "type": "build" @@ -5004,7 +4992,6 @@ The repository is managed by [Repository Manager](https://github.com/hashicorp/c "jsii-docgen": "~9.0.0", "jsii-pacmak": "*", "jsii-rosetta": "~5.1.2", - "node-fetch": "cjs", "projen": "*", "standard-version": "^9", "typescript": "*" @@ -5111,7 +5098,6 @@ The repository is managed by [Repository Manager](https://github.com/hashicorp/c * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ -const fetch = require("node-fetch"); const semver = require("semver"); const actions = require("@actions/core"); @@ -6701,11 +6687,6 @@ scripts "version": "1.x", "type": "build" }, - { - "name": "node-fetch", - "version": "cjs", - "type": "build" - }, { "name": "projen", "type": "build" @@ -7667,7 +7648,6 @@ The repository is managed by [Repository Manager](https://github.com/hashicorp/c "jsii-docgen": "~9.0.0", "jsii-pacmak": "*", "jsii-rosetta": "~5.1.2", - "node-fetch": "cjs", "projen": "*", "standard-version": "^9", "typescript": "*" @@ -7774,7 +7754,6 @@ The repository is managed by [Repository Manager](https://github.com/hashicorp/c * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ -const fetch = require("node-fetch"); const semver = require("semver"); const actions = require("@actions/core");