Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Use the ES modules directly #385

Merged
merged 2 commits into from
Jul 28, 2020
Merged

test: Use the ES modules directly #385

merged 2 commits into from
Jul 28, 2020

Conversation

matatk
Copy link
Owner

@matatk matatk commented Jul 28, 2020

This avoids the need for the generated CJS files and use of rollup in testing.

Thanks to https://remysharp.com/2019/08/16/build-free-code-and-testing-es-module-imports and avajs/ava#2417 (comment) :-).

This avoids the need for the generated CJS files and use of rollup in testing.

Thanks to https://remysharp.com/2019/08/16/build-free-code-and-testing-es-module-imports
and avajs/ava#2417 (comment) :-).
@matatk matatk marked this pull request as draft July 28, 2020 09:45
package.json Outdated
@@ -23,12 +23,15 @@
"pre-commit": "npm run build:all"
}
},
"esm": { "cjs": true },
Copy link
Owner Author

Choose a reason for hiding this comment

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

Check this is necessary.

@matatk
Copy link
Owner Author

matatk commented Jul 28, 2020

Need to remove redundant files from .gitignore.

@matatk matatk marked this pull request as ready for review July 28, 2020 20:18
@matatk matatk merged commit 20683b2 into master Jul 28, 2020
@matatk matatk deleted the use-es-modules-with-ava branch July 28, 2020 20:19
matatk added a commit that referenced this pull request Jan 30, 2021
* Use rollup to make a version of the LandmarksFinder code that can be run via puppeteer (this had been unintentionally broken by #385).
* Rollup is only run if the source has changed since last time.
* Make the build script clearer when building a debug (as opposed to test) build.
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.

1 participant