Skip to content

Commit

Permalink
fix: multi module instance problem, which cause react context didn't …
Browse files Browse the repository at this point in the history
…work
  • Loading branch information
sanyuan0704 committed Sep 18, 2022
1 parent 4af0fca commit 6d31de6
Show file tree
Hide file tree
Showing 9 changed files with 1,672 additions and 231 deletions.
20 changes: 20 additions & 0 deletions .release-it.json
@@ -0,0 +1,20 @@
{
"git": {
"commitMessage": "chore: release v${version}"
},
"github": {
"release": true
},
"hooks": {
"before:init": ["npm run lint", "npm run test"],
"after:bump": "npm run build",
"after:git:release": "echo After git push, before github release",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md"
}
}
}
21 changes: 11 additions & 10 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "island-ssg",
"version": "0.0.2",
"version": "0.0.4",
"description": "Vite & Island architecture SSG framework",
"main": "dist/index.js",
"packageManager": "pnpm@7.9.2",
Expand All @@ -13,20 +13,20 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/node/index.js"
"import": "./dist/index.js"
},
"./dist/*": "./dist/*",
"./package.json": "./package.json",
"./theme": {
"types": "./dist/index.d.ts",
"default": "./src/client/theme-default/index.ts"
"default": "./src/theme-default/index.ts"
}
},
"scripts": {
"dev": "tsup --watch",
"build": "NODE_ENV=production tsup && tsx scripts/pre-bundle.cts",
"start:client": "cd src/client && tsc -w",
"start:node": "cd src/node && tsc -w",
"dev:client": "tsc",
"dev:node": "tsup --watch",
"dev:docs": "node ./bin/island docs",
"build:docs": "node ./bin/island build docs",
"start:docs": "node ./bin/island start docs",
Expand All @@ -35,6 +35,7 @@
"test": "vitest run",
"prepublishOnly": "pnpm build",
"postinstall": "husky install",
"release": "release-it",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},
"keywords": [
Expand All @@ -50,7 +51,6 @@
"@babel/core": "^7.19.0",
"@babel/helper-plugin-utils": "^7.19.0",
"@babel/preset-react": "^7.18.6",
"@loadable/component": "5.15.2",
"@mdx-js/mdx": "^2.1.3",
"@mdx-js/react": "^2.1.3",
"@mdx-js/rollup": "2",
Expand All @@ -66,6 +66,7 @@
"github-slugger": "^1.4.0",
"hast": "^1.0.0",
"hast-util-from-html": "^1.0.0",
"husky": "^8.0.1",
"lodash-es": "^4.17.21",
"mdast-util-mdxjs-esm": "^1.3.0",
"ora": "^6.1.2",
Expand All @@ -88,14 +89,14 @@
"unified": "^10.1.2",
"unist-util-visit": "^4.1.1",
"unist-util-visit-children": "^2.0.0",
"vite": "^3.0.9",
"husky": "^8.0.1"
"vite": "3.1",
"vite-plugin-inspect": "^0.7.1"
},
"devDependencies": {
"@babel/traverse": "^7.19.0",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@loadable/babel-plugin": "^5.13.2",
"@release-it/conventional-changelog": "^5.1.0",
"@types/babel__core": "^7.1.19",
"@types/babel__helper-plugin-utils": "^7.10.0",
"@types/babel__traverse": "^7.18.1",
Expand All @@ -105,7 +106,6 @@
"@types/hast": "^2.3.4",
"@types/koa": "^2.13.5",
"@types/koa-router": "^7.4.4",
"@types/loadable__component": "^5.13.4",
"@types/lodash-es": "^4.17.6",
"@types/polka": "^0.5.4",
"@types/react": "^18.0.17",
Expand All @@ -123,6 +123,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"release-it": "^15.4.2",
"resolve": "^1.22.1",
"rollup": "^2.78.1",
"tsup": "^6.2.3",
Expand Down

0 comments on commit 6d31de6

Please sign in to comment.