From 88168c6ef7765efc343701770738705bbdfc2867 Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 14 Aug 2022 22:03:52 +0800 Subject: [PATCH] feat: migrate @1stg/remark-config to @1stg/remark-preset (#155) --- .changeset/silent-birds-grow.md | 8 ++++++++ .remarkrc | 2 +- package.json | 2 +- packages/common-config/package.json | 2 +- .../{remark-config => remark-preset}/CHANGELOG.md | 0 .../{remark-config => remark-preset}/README.md | 4 ++-- .../{remark-config => remark-preset}/index.js | 0 .../{remark-config => remark-preset}/package.json | 7 +++---- pnpm-lock.yaml | 15 +++++++-------- 9 files changed, 23 insertions(+), 17 deletions(-) create mode 100644 .changeset/silent-birds-grow.md rename packages/{remark-config => remark-preset}/CHANGELOG.md (100%) rename packages/{remark-config => remark-preset}/README.md (96%) rename packages/{remark-config => remark-preset}/index.js (100%) rename packages/{remark-config => remark-preset}/package.json (90%) diff --git a/.changeset/silent-birds-grow.md b/.changeset/silent-birds-grow.md new file mode 100644 index 00000000..e80b801b --- /dev/null +++ b/.changeset/silent-birds-grow.md @@ -0,0 +1,8 @@ +--- +"@1stg/app-config": major +"@1stg/common-config": major +"@1stg/lib-config": major +"@1stg/remark-preset": major +--- + +feat: migrate `@1stg/remark-config` to `@1stg/remark-preset` diff --git a/.remarkrc b/.remarkrc index 63d195b5..4915bad7 100644 --- a/.remarkrc +++ b/.remarkrc @@ -1,5 +1,5 @@ { "plugins": [ - "@1stg/remark-config" + "@1stg/preset" ] } diff --git a/package.json b/package.json index 9acb4fc7..733e1a51 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@1stg/markuplint-config": "workspace:*", "@1stg/postcss-config": "workspace:*", "@1stg/prettier-config": "workspace:*", - "@1stg/remark-config": "workspace:*", + "@1stg/remark-preset": "workspace:*", "@1stg/simple-git-hooks": "workspace:*", "@1stg/stylelint-config": "workspace:*", "@1stg/tsconfig": "workspace:*", diff --git a/packages/common-config/package.json b/packages/common-config/package.json index 4c8ab891..7be5e902 100644 --- a/packages/common-config/package.json +++ b/packages/common-config/package.json @@ -48,7 +48,7 @@ "@1stg/lint-staged": "^3.3.1", "@1stg/markuplint-config": "^2.2.0", "@1stg/prettier-config": "^3.8.0", - "@1stg/remark-config": "^4.0.3", + "@1stg/remark-preset": "^0.0.0", "@1stg/simple-git-hooks": "^0.2.1", "@1stg/tsconfig": "^2.3.0", "@babel/core": "^7.18.10", diff --git a/packages/remark-config/CHANGELOG.md b/packages/remark-preset/CHANGELOG.md similarity index 100% rename from packages/remark-config/CHANGELOG.md rename to packages/remark-preset/CHANGELOG.md diff --git a/packages/remark-config/README.md b/packages/remark-preset/README.md similarity index 96% rename from packages/remark-config/README.md rename to packages/remark-preset/README.md index fcce20cd..5822db64 100644 --- a/packages/remark-config/README.md +++ b/packages/remark-preset/README.md @@ -1,6 +1,6 @@ -# @1stg/remark-config +# @1stg/remark-preset -Personal but Shareable Remark Configuration for all 1stG.me projects +Personal but Shareable Remark Preset for all 1stG.me projects ## Sponsors diff --git a/packages/remark-config/index.js b/packages/remark-preset/index.js similarity index 100% rename from packages/remark-config/index.js rename to packages/remark-preset/index.js diff --git a/packages/remark-config/package.json b/packages/remark-preset/package.json similarity index 90% rename from packages/remark-config/package.json rename to packages/remark-preset/package.json index 6507a0f2..fe3d13a8 100644 --- a/packages/remark-config/package.json +++ b/packages/remark-preset/package.json @@ -1,8 +1,8 @@ { - "name": "@1stg/remark-config", - "version": "4.0.3", + "name": "@1stg/remark-preset", + "version": "0.0.0", "type": "module", - "description": "Personal but Shareable Remark Configuration for all 1stG.me projects", + "description": "Personal but Shareable Remark Preset for all 1stG.me projects", "repository": "git+https://github.com/1stG/configs.git", "author": "JounQin (https://www.1stG.me) ", "donate": { @@ -42,7 +42,6 @@ "node": "^12.20.0 || ^14.18.0 || >=16.0.0" }, "main": "index.js", - "module": "index.js", "dependencies": { "remark-frontmatter": "^4.0.1", "remark-gfm": "^3.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5727520f..f8d7eb23 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,7 +18,7 @@ importers: '@1stg/markuplint-config': workspace:* '@1stg/postcss-config': workspace:* '@1stg/prettier-config': workspace:* - '@1stg/remark-config': workspace:* + '@1stg/remark-preset': workspace:* '@1stg/simple-git-hooks': workspace:* '@1stg/stylelint-config': workspace:* '@1stg/tsconfig': workspace:* @@ -56,7 +56,7 @@ importers: '@1stg/markuplint-config': link:packages/markuplint-config '@1stg/postcss-config': link:packages/postcss-config '@1stg/prettier-config': link:packages/prettier-config - '@1stg/remark-config': link:packages/remark-config + '@1stg/remark-preset': link:packages/remark-preset '@1stg/simple-git-hooks': link:packages/simple-git-hooks '@1stg/stylelint-config': link:packages/stylelint-config '@1stg/tsconfig': link:packages/tsconfig @@ -171,7 +171,7 @@ importers: '@1stg/lint-staged': ^3.3.1 '@1stg/markuplint-config': ^2.2.0 '@1stg/prettier-config': ^3.8.0 - '@1stg/remark-config': ^4.0.3 + '@1stg/remark-preset': ^0.0.0 '@1stg/simple-git-hooks': ^0.2.1 '@1stg/tsconfig': ^2.3.0 '@babel/core': ^7.18.10 @@ -189,7 +189,7 @@ importers: '@1stg/lint-staged': link:../lint-staged '@1stg/markuplint-config': link:../markuplint-config '@1stg/prettier-config': link:../prettier-config - '@1stg/remark-config': link:../remark-config + '@1stg/remark-preset': link:../remark-preset '@1stg/simple-git-hooks': link:../simple-git-hooks '@1stg/tsconfig': link:../tsconfig '@babel/core': 7.18.10 @@ -390,7 +390,7 @@ importers: prettier-plugin-svelte: 2.7.0_o3ioganyptcsrh6x4hnxvjkpqi prettier-plugin-toml: 0.3.1 - packages/remark-config: + packages/remark-preset: specifiers: remark-frontmatter: ^4.0.1 remark-gfm: ^3.0.1 @@ -3469,7 +3469,7 @@ packages: /@types/concat-stream/2.0.0: resolution: {integrity: sha512-t3YCerNM7NTVjLuICZo5gYAXYoDvpuuTceCcFQWcDQz26kxUR5uIWolxbIR5jRNIXpMqhOpW/b8imCR1LEmuJw==} dependencies: - '@types/node': 18.0.6 + '@types/node': 18.7.3 dev: false /@types/debug/4.1.7: @@ -3569,7 +3569,6 @@ packages: /@types/node/18.7.3: resolution: {integrity: sha512-LJgzOEwWuMTBxHzgBR/fhhBOWrvBjvO+zPteUgbbuQi80rYIZHrk1mNbRUqPZqSLP2H7Rwt1EFLL/tNLD1Xx/w==} - dev: true /@types/normalize-package-data/2.4.1: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} @@ -14472,7 +14471,7 @@ packages: '@types/concat-stream': 2.0.0 '@types/debug': 4.1.7 '@types/is-empty': 1.2.1 - '@types/node': 18.0.6 + '@types/node': 18.7.3 '@types/unist': 2.0.6 concat-stream: 2.0.0 debug: 4.3.4