From 7452b5bca83199c6d1dc021c53fb812038b53f3f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 23 Jun 2021 15:30:04 +0200 Subject: [PATCH] Version Packages (#7) Co-authored-by: github-actions[bot] --- .changeset/cold-tigers-pretend.md | 62 ------------------ .changeset/sharp-jokes-march.md | 5 -- .changeset/silver-mails-join.md | 5 -- packages/create-esdx/CHANGELOG.md | 7 +++ packages/create-esdx/package.json | 2 +- .../react-with-storybook/package.json | 2 +- .../create-esdx/templates/react/package.json | 2 +- .../create-esdx/templates/simple/package.json | 2 +- packages/esdx/CHANGELOG.md | 63 +++++++++++++++++++ packages/esdx/package.json | 2 +- 10 files changed, 75 insertions(+), 77 deletions(-) delete mode 100644 .changeset/cold-tigers-pretend.md delete mode 100644 .changeset/sharp-jokes-march.md delete mode 100644 .changeset/silver-mails-join.md diff --git a/.changeset/cold-tigers-pretend.md b/.changeset/cold-tigers-pretend.md deleted file mode 100644 index 1da4558..0000000 --- a/.changeset/cold-tigers-pretend.md +++ /dev/null @@ -1,62 +0,0 @@ ---- -'esdx': minor ---- - -## Add `esdx` config support in `package.json` - -This allows `esdx` to be more flexible and allows the following supporting the following usecases: - -- multiple entries - -```json -{ - "main": "dist/index.js", - "types": "dist/index.d.ts", - "type": "module", - "exports": { - ".": "dist/index.js", - "./another": "dist/another.js" - }, - "esdx": { - "entries": [ - { - "source": "src/index.tsx", - "format": "esm", - "output": "dist/index.js", - "types": "dist/index.d.ts" - }, - { - "source": "src/another.tsx", - "format": "esm", - "output": "dist/another.js", - "types": "dist/another.d.ts" - } - ] - } -} -``` - -- multiple formats - -```json -{ - "main": "dist/index.cjs.js", - "module": "dist/index.esm.js", - "types": "dist/index.d.ts", - "esdx": { - "entries": [ - { - "source": "src/index.tsx", - "format": "esm", - "output": "dist/index.esm.js", - "types": "dist/index.d.ts" - }, - { - "source": "src/index.tsx", - "format": "cjs", - "output": "dist/index.cjs.js" - } - ] - } -} -``` diff --git a/.changeset/sharp-jokes-march.md b/.changeset/sharp-jokes-march.md deleted file mode 100644 index 98ac107..0000000 --- a/.changeset/sharp-jokes-march.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'create-esdx': patch ---- - -Dual pubish templates by default diff --git a/.changeset/silver-mails-join.md b/.changeset/silver-mails-join.md deleted file mode 100644 index e33c74b..0000000 --- a/.changeset/silver-mails-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'create-esdx': patch ---- - -fix package name when creating a package diff --git a/packages/create-esdx/CHANGELOG.md b/packages/create-esdx/CHANGELOG.md index be25f9c..864f2ed 100644 --- a/packages/create-esdx/CHANGELOG.md +++ b/packages/create-esdx/CHANGELOG.md @@ -1,5 +1,12 @@ # create-esdx +## 0.1.2 + +### Patch Changes + +- 888ce4c: Dual pubish templates by default +- a8d4914: fix package name when creating a package + ## 0.1.1 ### Patch Changes diff --git a/packages/create-esdx/package.json b/packages/create-esdx/package.json index c4c129b..e0b7796 100644 --- a/packages/create-esdx/package.json +++ b/packages/create-esdx/package.json @@ -1,6 +1,6 @@ { "name": "create-esdx", - "version": "0.1.1", + "version": "0.1.2", "main": "./index.js", "author": "Amr Gad", "license": "MIT", diff --git a/packages/create-esdx/templates/react-with-storybook/package.json b/packages/create-esdx/templates/react-with-storybook/package.json index a7d93b5..a8d0530 100644 --- a/packages/create-esdx/templates/react-with-storybook/package.json +++ b/packages/create-esdx/templates/react-with-storybook/package.json @@ -42,7 +42,7 @@ "@typescript-eslint/eslint-plugin": "^4.28.0", "@typescript-eslint/parser": "^4.28.0", "babel-loader": "^8.2.2", - "esdx": "^0.0.2", + "esdx": "^0.1.0", "eslint": "^7.29.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-react": "^7.24.0", diff --git a/packages/create-esdx/templates/react/package.json b/packages/create-esdx/templates/react/package.json index cca236b..c5a6908 100644 --- a/packages/create-esdx/templates/react/package.json +++ b/packages/create-esdx/templates/react/package.json @@ -31,7 +31,7 @@ "@types/react-dom": "^17.0.8", "@typescript-eslint/eslint-plugin": "^4.28.0", "@typescript-eslint/parser": "^4.28.0", - "esdx": "^0.0.2", + "esdx": "^0.1.0", "eslint": "^7.29.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-react": "^7.24.0", diff --git a/packages/create-esdx/templates/simple/package.json b/packages/create-esdx/templates/simple/package.json index 1e91f2d..bd32402 100644 --- a/packages/create-esdx/templates/simple/package.json +++ b/packages/create-esdx/templates/simple/package.json @@ -27,7 +27,7 @@ "@types/jest": "^26.0.23", "@typescript-eslint/eslint-plugin": "^4.28.0", "@typescript-eslint/parser": "^4.28.0", - "esdx": "^0.0.2", + "esdx": "^0.1.0", "eslint": "^7.29.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-simple-import-sort": "^7.0.0", diff --git a/packages/esdx/CHANGELOG.md b/packages/esdx/CHANGELOG.md index 44fb944..bac56ce 100644 --- a/packages/esdx/CHANGELOG.md +++ b/packages/esdx/CHANGELOG.md @@ -1,5 +1,68 @@ # esdx +## 0.1.0 + +### Minor Changes + +- 888ce4c: ## Add `esdx` config support in `package.json` + + This allows `esdx` to be more flexible and allows the following supporting the following usecases: + + - multiple entries + + ```json + { + "main": "dist/index.js", + "types": "dist/index.d.ts", + "type": "module", + "exports": { + ".": "dist/index.js", + "./another": "dist/another.js" + }, + "esdx": { + "entries": [ + { + "source": "src/index.tsx", + "format": "esm", + "output": "dist/index.js", + "types": "dist/index.d.ts" + }, + { + "source": "src/another.tsx", + "format": "esm", + "output": "dist/another.js", + "types": "dist/another.d.ts" + } + ] + } + } + ``` + + - multiple formats + + ```json + { + "main": "dist/index.cjs.js", + "module": "dist/index.esm.js", + "types": "dist/index.d.ts", + "esdx": { + "entries": [ + { + "source": "src/index.tsx", + "format": "esm", + "output": "dist/index.esm.js", + "types": "dist/index.d.ts" + }, + { + "source": "src/index.tsx", + "format": "cjs", + "output": "dist/index.cjs.js" + } + ] + } + } + ``` + ## 0.0.2 ### Patch Changes diff --git a/packages/esdx/package.json b/packages/esdx/package.json index 1d6af6e..4102acb 100644 --- a/packages/esdx/package.json +++ b/packages/esdx/package.json @@ -1,6 +1,6 @@ { "name": "esdx", - "version": "0.0.2", + "version": "0.1.0", "description": "build scripts based on esbuild", "source": "src/index.ts", "main": "dist/index.js",