Skip to content

Convert project to module#566

Merged
sindresorhus merged 7 commits into
xojs:mainfrom
fisker:esm
Jul 1, 2021
Merged

Convert project to module#566
sindresorhus merged 7 commits into
xojs:mainfrom
fisker:esm

Conversation

@fisker
Copy link
Copy Markdown
Contributor

@fisker fisker commented Jul 1, 2021

Questions:

  • Do we still need support global xo to run local one?
  • Don't know how to make test/open-report.js test pass, now skipped.

@sindresorhus
Copy link
Copy Markdown
Member

Do we still need support global xo to run local one?

No, we should move to npx xo. Global XO doesn't currently work anyway: #546

Comment thread lib/options-manager.js
} catch { }
};

// TODO: Use `resolveModule(normalizePackageName(name), import.meta.url);` when moving to ESM then to `import.meta.resolve(normalizePackageName(name))` when supported
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please preserve part of this todo comment.

fisker added 2 commits July 1, 2021 16:06
# Conflicts:
#	cli-main.js
#	cli.js
#	lib/open-report.js
#	lib/options-manager.js
#	package.json
#	test/cli-main.js
#	test/cli.js
@fisker fisker marked this pull request as ready for review July 1, 2021 08:13
@fisker fisker mentioned this pull request Jul 1, 2021
@sindresorhus sindresorhus merged commit 41c8f39 into xojs:main Jul 1, 2021
@fisker fisker deleted the esm branch July 1, 2021 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants