Skip to content

Commit

Permalink
version release 4.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed May 3, 2024
1 parent ecc4ff6 commit 1eee3bc
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 12 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# [4.9.0](https://github.com/ocsjs/ocsjs/compare/4.8.30...4.9.0) (2024-05-03)


### Features

* **all:** 优化API,分离UI层为新项目 easy-us ([ecc4ff6](https://github.com/ocsjs/ocsjs/commit/ecc4ff6a56577d40a59aea47418138ad9b6c04f1))



## [4.8.30](https://github.com/ocsjs/ocsjs/compare/4.8.29...4.8.30) (2024-05-01)


Expand Down
9 changes: 2 additions & 7 deletions CHANGELOG_CURRENT.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
## [4.8.30](https://github.com/ocsjs/ocsjs/compare/4.8.29...4.8.30) (2024-05-01)


### Bug Fixes

* **script:** 解决超星视频播放时出现: The play() request was interrupted by a call to pause() BUG ([4791bd8](https://github.com/ocsjs/ocsjs/commit/4791bd8c4a8f06890079bf748c0f547fd728ec94))
# [4.9.0](https://github.com/ocsjs/ocsjs/compare/4.8.30...4.9.0) (2024-05-03)


### Features

* **script:** 新增对职教云资源库的 spocjob 作业的支持 ([007d39a](https://github.com/ocsjs/ocsjs/commit/007d39af4fbfb474e47f180b8670479c0d7e9b4b))
* **all:** 优化API,分离UI层为新项目 easy-us ([ecc4ff6](https://github.com/ocsjs/ocsjs/commit/ecc4ff6a56577d40a59aea47418138ad9b6c04f1))



2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ocsjs",
"version": "4.8.30",
"version": "4.9.0",
"description": "ocs - online course script 在线网络课程辅助工具",
"types": "./lib/src/core/index.d.ts",
"main": "./lib/src/core/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"vite-plugin-banner": "^0.6.1"
},
"dependencies": {
"easy-us": "^0.0.10",
"easy-us": "^0.0.11",
"events": "^3.3.0",
"lodash": "^4.17.21",
"playwright-core": "^1.40.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"lib": ["DOM"],
"lib": ["DOM", "ES2020"],
"jsx": "preserve",
"resolveJsonModule": true,
"downlevelIteration": true
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@ocsjs/core": "workspace:4.0.0-beta.0",
"@rollup/plugin-commonjs": "^24.0.0",
"browser-env": "^3.3.0",
"easy-us": "^0.0.10",
"easy-us": "^0.0.11",
"lodash": "^4.17.21",
"markdown-it": "^13.0.1",
"marked": "^4.2.12",
Expand Down
1 change: 1 addition & 0 deletions packages/scripts/src/projects/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ export const BackgroundProject = Project.create({
? [h('div', { style: { color: 'white', textAlign: 'center' } }, '暂无数据')]
: []),
...list.map((item) =>
// @ts-ignore
h(
'div',
{
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"lib": ["DOM"],
"lib": ["DOM", "ES2020"],
"jsx": "preserve",
"resolveJsonModule": true
},
Expand Down
4 changes: 4 additions & 0 deletions scripts/build-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ function cleanOutput() {
}

async function buildPackages() {
// @ts-ignore
await execOut('tsc', { cwd: '../packages/core' });
// @ts-ignore
await execOut('vite build', { cwd: '../packages/core' });
// @ts-ignore
await execOut('tsc', { cwd: '../packages/scripts' });
// @ts-ignore
await execOut('vite build', { cwd: '../packages/scripts' });
}

Expand Down
2 changes: 2 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ if [ "$isRelease" = "y" ]; then
# 更新版本
npm version "$version" --no-git-tag-version &&
# 本地构建
echo "本地构建" &&
tsc -p ./packages/core/tsconfig.json &&
tsc -p ./packages/scripts/tsconfig.json &&
npm run build &&
Expand All @@ -32,6 +33,7 @@ if [ "$isRelease" = "y" ]; then
git add package.json CHANGELOG.md CHANGELOG_CURRENT.md &&
git commit -m "version release $version" &&
git tag "$version" &&
echo "开始发布" &&
# 发布到Github
git push origin 4.0 --tags &&
# 发布到npm
Expand Down

0 comments on commit 1eee3bc

Please sign in to comment.