From 0a13aae11a7c473037b74c7b393db989d303a911 Mon Sep 17 00:00:00 2001 From: Christian Kaisermann Date: Wed, 19 Jun 2019 17:34:18 -0300 Subject: [PATCH] Add es bundle to dist again --- example/package-lock.json | 25 +++++++++++++++++++++++++ package-lock.json | 2 +- package.json | 4 ++-- rollup.config.js | 1 + 4 files changed, 29 insertions(+), 3 deletions(-) diff --git a/example/package-lock.json b/example/package-lock.json index a5030e5..b089f26 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -1344,6 +1344,19 @@ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", "dev": true }, + "intl-messageformat": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-4.1.2.tgz", + "integrity": "sha512-VAIBsTw8VRgd/h4gYN7IbJFK/H6PbbDa6Sa5p2VbImO7HFr8CGpzX8pOooWQXAmiq+X6tPqPKXdrWFhoPbge/Q==", + "requires": { + "intl-messageformat-parser": "^1.6.8" + } + }, + "intl-messageformat-parser": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/intl-messageformat-parser/-/intl-messageformat-parser-1.6.8.tgz", + "integrity": "sha512-wnjxkKzAOKUgtBYYqVoDf2xt8zSf/c/m7FrQSmaz0SL3LNEMzVzzYXeLLda//RD3s6Ae4Tj2CgpAmY0Fnrws6A==" + }, "is-accessor-descriptor": { "version": "0.1.6", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", @@ -1662,6 +1675,11 @@ "readable-stream": "^2.0.1" } }, + "micro-memoize": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micro-memoize/-/micro-memoize-4.0.8.tgz", + "integrity": "sha512-Mzlo15iWNrP5EwokGjx0Wlh2b3aMjTPdpsD+ryQtkYJBD67IxBddWU2fO3MIXRtXDH8NsuhaotTrtDbfb+k6jw==" + }, "micromatch": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", @@ -1835,6 +1853,11 @@ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true }, + "object-resolve-path": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-resolve-path/-/object-resolve-path-1.1.1.tgz", + "integrity": "sha1-p/j5Poogr4DkQhe6fbVDFtnRIjI=" + }, "object-visit": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", @@ -2480,6 +2503,8 @@ }, "svelte-i18n": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/svelte-i18n/-/svelte-i18n-1.1.0.tgz", + "integrity": "sha512-PcWrv4llsIQE9PhgNYRR4oLvjH8vbZnCZ5kyRhUsIZ88qimH4KuAwaSzwkxAPyW5Yu2JF+opgaS9XcUABNSBXQ==", "requires": { "intl-messageformat": "^4.0.1", "micro-memoize": "^4.0.7", diff --git a/package-lock.json b/package-lock.json index 666aaf0..265a8b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "svelte-i18n", - "version": "1.1.0", + "version": "1.1.2-beta", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 62b5400..d35c1e2 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "svelte-i18n", "version": "1.1.2-beta", - "main": "dist/i18n.cjs.js", - "module": "src/index.js", + "main": "dist/i18n.js", + "module": "dist/i18n.mjs", "license": "MIT", "description": "Internationalization library for Svelte", "author": "Christian Kaisermann ", diff --git a/rollup.config.js b/rollup.config.js index f53dbbb..233789f 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -11,6 +11,7 @@ export default [ input: 'src/index.js', external: [...Object.keys(pkg.dependencies), 'svelte/store'], output: [ + { file: pkg.module, format: 'es' }, { file: pkg.main, format: 'cjs' }, ], plugins,