From fe7a4db9a9be13ea4d7d93b24215cd89cde13bad Mon Sep 17 00:00:00 2001 From: Johnny Huynh Date: Mon, 14 Sep 2020 09:55:21 +1000 Subject: [PATCH] fix: added browser to dist --- packages/ggsmark/package.json | 1 + packages/remark-color-text/package.json | 1 + packages/remark-spoilers/package.json | 3 ++- packages/remark-text-alignment/package.json | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/ggsmark/package.json b/packages/ggsmark/package.json index d3d43da..a2b4ac0 100644 --- a/packages/ggsmark/package.json +++ b/packages/ggsmark/package.json @@ -20,6 +20,7 @@ "unified": "^9.2.0" }, "main": "dist/index.js", + "browser": "dist/index.js", "module": "src/index.js", "scripts": { "build": "cross-env BABEL_ENV=production babel src/index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir dist" diff --git a/packages/remark-color-text/package.json b/packages/remark-color-text/package.json index ae82855..50eaf76 100644 --- a/packages/remark-color-text/package.json +++ b/packages/remark-color-text/package.json @@ -7,6 +7,7 @@ ], "license": "MIT", "main": "dist/index.js", + "browser": "dist/index.js", "module": "src/index.js", "scripts": { "build": "cross-env BABEL_ENV=production babel src/index.js --config-file ../../babel.config.js --out-dir dist" diff --git a/packages/remark-spoilers/package.json b/packages/remark-spoilers/package.json index 5c98ee8..4e683a3 100644 --- a/packages/remark-spoilers/package.json +++ b/packages/remark-spoilers/package.json @@ -7,7 +7,8 @@ ], "license": "MIT", "main": "dist/index.js", - "module": "dist/index.js", + "browser": "dist/index.js", + "module": "src/index.js", "scripts": { "build": "cross-env BABEL_ENV=production babel src/index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir dist" } diff --git a/packages/remark-text-alignment/package.json b/packages/remark-text-alignment/package.json index f5c9b28..591724e 100644 --- a/packages/remark-text-alignment/package.json +++ b/packages/remark-text-alignment/package.json @@ -10,6 +10,7 @@ "space-separated-tokens": "^1.1.5" }, "main": "dist/index.js", + "browser": "dist/index.js", "module": "src/index.js", "scripts": { "build": "cross-env BABEL_ENV=production babel src/index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir dist"