Skip to content

Commit

Permalink
chore: migrate more to ESM (#5298)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
danez and kodiakhq[bot] authored Dec 13, 2022
1 parent e65f97c commit 35123df
Show file tree
Hide file tree
Showing 192 changed files with 2,147 additions and 2,576 deletions.
15 changes: 1 addition & 14 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,6 @@ module.exports = {
},
},
},
{
files: ['src/**/*.cjs'],
rules: {
'no-restricted-modules': [
'error',
{
name: 'chalk',
message:
'Please use the safe chalk import that handles colors for json output. `const { chalk } = require("src/utils")`',
},
],
},
},
{
files: ['src/**/*.mjs', 'bin/**/*.mjs'],
parserOptions: {
Expand All @@ -106,7 +93,7 @@ module.exports = {
{
name: 'chalk',
message:
'Please use the safe chalk import that handles colors for json output. `import { chalk } from "src/utils"`',
'Please use the safe chalk import that handles colors for json output. `import { chalk } from "src/utils/command-helpers.mjs"`',
},
],
},
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,5 @@ jobs:
run: npm run format:ci
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
- name: Run unit tests
run: npm run test:ci:ava:unit
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
- name: Run vitest unit tests
run: npm run test:ci:vitest:unit
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
191 changes: 0 additions & 191 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@
"test:init:hugo-deps": "npm ci --prefix tests/integration/hugo-site --no-audit",
"test:dev:ava": "ava --verbose",
"test:dev:vitest": "vitest run",
"test:ci:ava:unit": "c8 -r json ava --no-worker-threads tests/unit/ tools/",
"test:ci:ava:integration": "c8 -r json ava --concurrency 1 --no-worker-threads tests/integration/",
"test:ci:vitest:unit": "vitest run --coverage tests/unit/",
"test:ci:vitest:integration": "vitest run --coverage --no-threads tests/integration/",
Expand Down Expand Up @@ -295,7 +294,6 @@
"lodash": "^4.17.20",
"log-symbols": "^4.0.0",
"log-update": "^5.0.0",
"memoize-one": "^6.0.0",
"minimist": "^1.2.5",
"multiparty": "^4.2.1",
"netlify": "^13.0.2",
Expand All @@ -305,7 +303,6 @@
"netlify-redirector": "^0.3.1",
"node-fetch": "^2.6.0",
"node-version-alias": "^1.0.1",
"omit.js": "^2.0.2",
"ora": "^5.0.0",
"p-filter": "^2.1.0",
"p-map": "^4.0.0",
Expand Down Expand Up @@ -357,7 +354,6 @@
"serialize-javascript": "^6.0.0",
"sinon": "^14.0.0",
"strip-ansi": "^6.0.0",
"supertest": "^6.1.6",
"temp-dir": "^2.0.0",
"tomlify-j0.4": "^3.0.0",
"tree-kill": "^1.2.2",
Expand Down
2 changes: 1 addition & 1 deletion site/scripts/docs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { fileURLToPath } from 'url'
import markdownMagic from 'markdown-magic'
import stripAnsi from 'strip-ansi'

import { normalizeBackslash } from '../../src/lib/path.cjs'
import { normalizeBackslash } from '../../src/lib/path.mjs'

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

Expand Down
Loading

1 comment on commit 35123df

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Package size: 254 MB

Please sign in to comment.