From 84f6b97b3ec8a33d4025eb45003585da44c286be Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Thu, 5 Aug 2021 10:46:32 +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/a44c42967442d65fd14272682fb84a6f32feb841/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 a63f7b2..b9779a2 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 persistent = require( '@functional-data-structure/persistent' ) ; +const persistent = await import( '@functional-data-structure/persistent' ) ; // or import persistent from '@functional-data-structure/persistent' ; ``` diff --git a/package.json b/package.json index b336c5c..96f4f02 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "structures" ], "sideEffects": false, + "type": "module", "source": "src/index.js", "main": "dist/index.cjs", "module": "dist/index.module.js",