Skip to content

Commit 35123df

Browse files
danezkodiakhq[bot]
andauthored
chore: migrate more to ESM (#5298)
* chore: migrate more to ESM * chore: yeha * chore: fix test * chore: fix tests * chore: migrate deferred * chore: more * chore: and more * chore: migrate command-helpers * chore: more and more * chore: fix execa mock * fix: get-global-config Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent e65f97c commit 35123df

File tree

192 files changed

+2147
-2576
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+2147
-2576
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,6 @@ module.exports = {
7676
},
7777
},
7878
},
79-
{
80-
files: ['src/**/*.cjs'],
81-
rules: {
82-
'no-restricted-modules': [
83-
'error',
84-
{
85-
name: 'chalk',
86-
message:
87-
'Please use the safe chalk import that handles colors for json output. `const { chalk } = require("src/utils")`',
88-
},
89-
],
90-
},
91-
},
9279
{
9380
files: ['src/**/*.mjs', 'bin/**/*.mjs'],
9481
parserOptions: {
@@ -106,7 +93,7 @@ module.exports = {
10693
{
10794
name: 'chalk',
10895
message:
109-
'Please use the safe chalk import that handles colors for json output. `import { chalk } from "src/utils"`',
96+
'Please use the safe chalk import that handles colors for json output. `import { chalk } from "src/utils/command-helpers.mjs"`',
11097
},
11198
],
11299
},

.github/workflows/unit-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,5 @@ jobs:
4444
run: npm run format:ci
4545
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
4646
- name: Run unit tests
47-
run: npm run test:ci:ava:unit
48-
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
49-
- name: Run vitest unit tests
5047
run: npm run test:ci:vitest:unit
5148
if: '${{!steps.release-check.outputs.IS_RELEASE}}'

npm-shrinkwrap.json

Lines changed: 0 additions & 191 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@
212212
"test:init:hugo-deps": "npm ci --prefix tests/integration/hugo-site --no-audit",
213213
"test:dev:ava": "ava --verbose",
214214
"test:dev:vitest": "vitest run",
215-
"test:ci:ava:unit": "c8 -r json ava --no-worker-threads tests/unit/ tools/",
216215
"test:ci:ava:integration": "c8 -r json ava --concurrency 1 --no-worker-threads tests/integration/",
217216
"test:ci:vitest:unit": "vitest run --coverage tests/unit/",
218217
"test:ci:vitest:integration": "vitest run --coverage --no-threads tests/integration/",
@@ -295,7 +294,6 @@
295294
"lodash": "^4.17.20",
296295
"log-symbols": "^4.0.0",
297296
"log-update": "^5.0.0",
298-
"memoize-one": "^6.0.0",
299297
"minimist": "^1.2.5",
300298
"multiparty": "^4.2.1",
301299
"netlify": "^13.0.2",
@@ -305,7 +303,6 @@
305303
"netlify-redirector": "^0.3.1",
306304
"node-fetch": "^2.6.0",
307305
"node-version-alias": "^1.0.1",
308-
"omit.js": "^2.0.2",
309306
"ora": "^5.0.0",
310307
"p-filter": "^2.1.0",
311308
"p-map": "^4.0.0",
@@ -357,7 +354,6 @@
357354
"serialize-javascript": "^6.0.0",
358355
"sinon": "^14.0.0",
359356
"strip-ansi": "^6.0.0",
360-
"supertest": "^6.1.6",
361357
"temp-dir": "^2.0.0",
362358
"tomlify-j0.4": "^3.0.0",
363359
"tree-kill": "^1.2.2",

site/scripts/docs.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { fileURLToPath } from 'url'
66
import markdownMagic from 'markdown-magic'
77
import stripAnsi from 'strip-ansi'
88

9-
import { normalizeBackslash } from '../../src/lib/path.cjs'
9+
import { normalizeBackslash } from '../../src/lib/path.mjs'
1010

1111
import { generateCommandData } from './generate-command-data.mjs'
1212

0 commit comments

Comments
 (0)