diff --git a/.github/workflows/ci-todo-example.yml b/.github/workflows/ci-todo-example.yml index 174bbd38..22d07251 100644 --- a/.github/workflows/ci-todo-example.yml +++ b/.github/workflows/ci-todo-example.yml @@ -15,13 +15,13 @@ jobs: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - - name: Setup Node.js 14.x + - name: Setup Node.js 16.x uses: actions/setup-node@master with: - node-version: 14.x + node-version: 16.x - name: Install Dependencies - run: yarn + run: yarn install - name: Build Packages run: yarn build diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42a5b6ed..c4c4558f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,10 +15,10 @@ jobs: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - - name: Setup Node.js 14.x + - name: Setup Node.js 16.x uses: actions/setup-node@master with: - node-version: 14.x + node-version: 16.x - name: Install Dependencies run: yarn diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee81d430..756072c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,10 +16,10 @@ jobs: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - - name: Setup Node.js 14.x + - name: Setup Node.js 16.x uses: actions/setup-node@master with: - node-version: 14.x + node-version: 16.x - name: Install Dependencies run: yarn diff --git a/scripts/test-esm.mjs b/scripts/test-esm.mjs deleted file mode 100644 index d41fe307..00000000 --- a/scripts/test-esm.mjs +++ /dev/null @@ -1,52 +0,0 @@ -import { globby } from "globby"; -import { dirname } from "path"; -import { fileURLToPath } from "url"; -import chalk from "chalk"; - -process.env.NEW_RELIC_APP_NAME = "TEST"; - -async function main() { - const mjsFiles = await globby(["../packages/*/dist/esm/*.js"], { - cwd: dirname(fileURLToPath(import.meta.url)), - }); - - const ok = []; - const fail = []; - - let i = 0; - await Promise.all( - mjsFiles.map((mjsFile) => { - const mjsPath = `./${mjsFile}`; - return import(mjsPath) - .then(() => { - ok.push(mjsPath); - }) - .catch((err) => { - const color = i++ % 2 === 0 ? chalk.magenta : chalk.red; - console.error(color("\n\n-----\n" + i + "\n")); - console.error(mjsPath, err); - console.error(color("\n-----\n\n")); - fail.push(mjsPath); - }); - }) - ); - ok.length && console.log(chalk.blue(`${ok.length} OK: ${ok.join(" | ")}`)); - fail.length && - console.error(chalk.red(`${fail.length} Fail: ${fail.join(" | ")}`)); - - if (fail.length) { - console.error("\nFAILED"); - process.exit(1); - } else if (ok.length) { - console.error("\nOK"); - process.exit(0); - } else { - console.error("No files analyzed!"); - process.exit(1); - } -} - -main().catch((err) => { - console.error(err); - process.exit(1); -});