From e501c0b5bbadbdf53522a4167a9bfe6ccd36cc63 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Thu, 29 Jul 2021 13:31:37 +0200 Subject: [PATCH] Make the project a ESM module --- .postcssrc.json | 10 ++++++++++ package.json | 9 ++++----- postcss.config.js | 10 ---------- 3 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 .postcssrc.json delete mode 100644 postcss.config.js diff --git a/.postcssrc.json b/.postcssrc.json new file mode 100644 index 0000000..ebe6b3f --- /dev/null +++ b/.postcssrc.json @@ -0,0 +1,10 @@ +{ + "plugins": { + "postcss-css-variables": {}, + "postcss-calc": {}, + "autoprefixer": {}, + "cssnano": { + "preset": "default" + } + } +} diff --git a/package.json b/package.json index ed0dd6e..12dc5aa 100644 --- a/package.json +++ b/package.json @@ -21,12 +21,11 @@ "email": "nick@karamoff.dev", "url": "https://karamoff.dev" }, - "main": "./dist/shareon.cjs", - "module": "./dist/shareon.mjs", - "unpkg": "./dist/shareon.min.js", + "type": "module", + "main": "./shareon.legacy.js", + "module": "./shareon.js", "exports": { - "require": "./dist/shareon.cjs", - "import": "./dist/shareon.mjs" + "import": "./shareon.js" }, "files": [ "shareon.css", diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 index 8004595..0000000 --- a/postcss.config.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = { - plugins: { - 'postcss-css-variables': {}, - 'postcss-calc': {}, - autoprefixer: {}, - cssnano: { - preset: 'default', - }, - }, -};