Skip to content

Commit 36ef25f

Browse files
committed
build: use pnpm and changesets
1 parent d1e8b62 commit 36ef25f

19 files changed

Lines changed: 10415 additions & 11641 deletions

File tree

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/master/docs/common-questions.md)

.changeset/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@1.5.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"linked": [],
6+
"access": "public",
7+
"baseBranch": "main",
8+
"updateInternalDependencies": "patch",
9+
"ignore": []
10+
}

.github/workflows/changsets.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: changesets
2+
on:
3+
push:
4+
branches:
5+
- main
6+
env:
7+
CI: true
8+
PNPM_CACHE_FOLDER: .pnpm-store
9+
jobs:
10+
version:
11+
timeout-minutes: 15
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: checkout code repository
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
- name: setup node.js
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: 14
22+
- name: install pnpm
23+
run: npm i pnpm@latest -g
24+
- name: setup pnpm config
25+
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
26+
- name: install dependencies
27+
run: pnpm install
28+
- name: create versions
29+
uses: changesets/action@master
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"name": "bytemd",
33
"private": true,
4-
"workspaces": [
5-
"packages/*"
6-
],
74
"scripts": {
85
"clean": "rm -rf packages/*/{lib,dist,tsconfig.tsbuildinfo}",
96
"build": "tsc --build && node -r esm scripts/process.js && rollup -c",
@@ -13,44 +10,42 @@
1310
"dev:process": "node -r esm scripts/process.js --watch",
1411
"test": "BABEL_ENV=test jest",
1512
"test:watch": "BABEL_ENV=test npm run test -- --watch",
16-
"postinstall": "node -r esm scripts/generate.js",
17-
"pub": "UMD=1 npm run clean && npm run build && npm test && lerna publish --registry=https://registry.npmjs.org"
13+
"postinstall": "node -r esm scripts/postinstall.js"
1814
},
1915
"devDependencies": {
20-
"@babel/core": "^7.12.3",
21-
"@babel/plugin-transform-runtime": "^7.12.1",
22-
"@babel/preset-env": "^7.12.1",
23-
"@icon-park/svg": "^1.2.1",
16+
"@babel/core": "^7.12.16",
17+
"@babel/plugin-transform-runtime": "^7.12.15",
18+
"@babel/preset-env": "^7.12.16",
19+
"@changesets/cli": "^2.14.1",
20+
"@icon-park/svg": "^1.2.7",
2421
"@primer/css": "^15.2.0",
25-
"@rollup/plugin-babel": "^5.2.1",
22+
"@rollup/plugin-babel": "^5.3.0",
2623
"@rollup/plugin-commonjs": "^16.0.0",
2724
"@rollup/plugin-json": "^4.1.0",
2825
"@rollup/plugin-node-resolve": "^10.0.0",
2926
"@rollup/plugin-replace": "^2.3.4",
30-
"@testing-library/jest-dom": "^5.11.5",
31-
"@testing-library/svelte": "^3.0.0",
32-
"@types/jest": "^26.0.15",
27+
"@testing-library/jest-dom": "^5.11.9",
28+
"@testing-library/svelte": "^3.0.3",
29+
"@types/jest": "^26.0.20",
3330
"esm": "^3.2.25",
34-
"jest": "^26.6.1",
35-
"lerna": "^3.22.1",
36-
"mustache": "^4.0.1",
31+
"fs-extra": "^9.1.0",
32+
"jest": "^26.6.3",
33+
"lodash": "^4.17.20",
34+
"mustache": "^4.1.0",
3735
"node-sass": "^4.14.1",
3836
"npm-run-all": "^4.1.5",
39-
"rollup": "^2.32.1",
37+
"rollup": "^2.39.0",
4038
"rollup-plugin-livereload": "^2.0.0",
4139
"rollup-plugin-postcss": "^3.1.8",
4240
"rollup-plugin-svelte": "^7.1.0",
4341
"rollup-plugin-terser": "^7.0.2",
44-
"rollup-plugin-visualizer": "^4.1.2",
42+
"rollup-plugin-visualizer": "^4.2.0",
4543
"rollup-plugin-vue": "^5.1.9",
4644
"svelte": "^3.32.3",
47-
"svelte-jester": "^1.1.5",
48-
"svelte-preprocess": "^4.5.2",
49-
"ts-jest": "^26.4.3",
50-
"typescript": "^4.0.5",
45+
"svelte-jester": "^1.2.0",
46+
"svelte-preprocess": "^4.6.9",
47+
"ts-jest": "^26.5.1",
48+
"typescript": "^4.1.5",
5149
"vue-template-compiler": "^2.6.12"
52-
},
53-
"resolutions": {
54-
"prettier": "^2.0.0"
5550
}
5651
}

packages/bytemd/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"lib"
2626
],
2727
"dependencies": {
28-
"@popperjs/core": "^2.6.0",
28+
"@popperjs/core": "^2.7.0",
2929
"@types/classnames": "^2.2.11",
3030
"@types/codemirror": "^0.0.108",
3131
"@types/lodash.debounce": "^4.0.6",

packages/mp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
"lib"
2121
],
2222
"dependencies": {
23-
"bytemd": "^1.3.4"
23+
"bytemd": "workspace:^1.3.4"
2424
},
2525
"publishConfig": {
2626
"access": "public"
2727
},
2828
"devDependencies": {
29-
"miniprogram-api-typings": "^3.2.0"
29+
"miniprogram-api-typings": "^3.2.2"
3030
}
3131
}

packages/plugin-breaks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"lib"
2020
],
2121
"dependencies": {
22-
"remark-breaks": "^2.0.0"
22+
"remark-breaks": "^2.0.1"
2323
},
2424
"peerDependencies": {
2525
"bytemd": "*"

packages/plugin-frontmatter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"lib"
2020
],
2121
"dependencies": {
22-
"@types/js-yaml": "^3.0.0",
23-
"js-yaml": "^3.0.0",
22+
"@types/js-yaml": "^3.12.6",
23+
"js-yaml": "^3.14.1",
2424
"remark-frontmatter": "^3.0.0"
2525
},
2626
"peerDependencies": {

packages/plugin-highlight-ssr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"lib"
2020
],
2121
"dependencies": {
22-
"rehype-highlight": "^4.0.0"
22+
"rehype-highlight": "^4.0.1"
2323
},
2424
"peerDependencies": {
2525
"bytemd": "*"

0 commit comments

Comments
 (0)