From db67b04c87fc96fa5da6b11b04b752fda7371f2f Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Wed, 14 Jul 2021 18:45:30 +0200 Subject: [PATCH] :robot: config(build): Set type to module in package.json. These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/042c55f2254a9efdce5074d537141d6f85a98927/src/transforms/package.json:set-type-module.js Please contact the author of the transform if you believe there was an error. --- .commitlintrc.js => .commitlintrc.cjs | 0 doc/manual/usage.md | 4 ++-- package.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) rename .commitlintrc.js => .commitlintrc.cjs (100%) diff --git a/.commitlintrc.js b/.commitlintrc.cjs similarity index 100% rename from .commitlintrc.js rename to .commitlintrc.cjs diff --git a/doc/manual/usage.md b/doc/manual/usage.md index 3d37b24..88d5df0 100644 --- a/doc/manual/usage.md +++ b/doc/manual/usage.md @@ -2,14 +2,14 @@ The code needs a ES2015+ polyfill to work, for example [regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill). ```js -require( 'regenerator-runtime/runtime' ) ; +await import( 'regenerator-runtime/runtime.js' ) ; // or import 'regenerator-runtime/runtime.js' ; ``` Then ```js -const cardinality = require( '@iterable-iterator/cardinality' ) ; +const cardinality = await import( '@iterable-iterator/cardinality' ) ; // or import cardinality from '@iterable-iterator/cardinality' ; ``` diff --git a/package.json b/package.json index 016cbe0..80aa279 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "size" ], "sideEffects": false, + "type": "module", "source": "src/index.js", "main": "dist/index.cjs", "module": "dist/index.module.js",