@x-oasis/diff-match-patch 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,22 @@
1
1
 
2
- > @x-oasis/diff-match-patch@0.1.0 build /home/runner/work/x-oasis/x-oasis/packages/diff/diff-match-patch
2
+ > @x-oasis/diff-match-patch@0.1.1 build /home/runner/work/x-oasis/x-oasis/packages/diff/diff-match-patch
3
3
  > tsdx build --tsconfig tsconfig.build.json
4
4
 
5
5
  @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
6
6
  @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
7
  ⠙ Creating entry file
8
-  Building modules
9
- ✓ Creating entry file 5 secs
10
- ⠹ Building modules
8
+  Creating entry file 4.4 secs
9
+ Building modules
10
+ ⠹ Building modules
11
11
  ⠸ Building modules
12
12
  ⠼ Building modules
13
13
  ⠴ Building modules
14
14
  ⠦ Building modules
15
15
  ⠧ Building modules
16
16
  ⠇ Building modules
17
+ ⠏ Building modules
18
+ ⠋ Building modules
17
19
  [tsdx]: Your rootDir is currently set to "./". Please change your rootDir to "./src".
18
20
  TSDX has deprecated setting tsconfig.compilerOptions.rootDir to "./" as it caused buggy output for declarationMaps and more.
19
21
  You may also need to change your include to remove "test", which also caused declarations to be unnecessarily created for test files.
20
-  Building modules
21
- ✓ Building modules 11.4 secs
22
+  Building modules 8.9 secs
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @x-oasis/diff-match-patch
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f1aae14: bump version
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  ### Initial Release
@@ -1,5 +1,5 @@
1
1
 
2
- > diff-match-patch-example@0.1.0 build /home/runner/work/x-oasis/x-oasis/packages/diff/diff-match-patch/examples
2
+ > diff-match-patch-example@0.1.1 build /home/runner/work/x-oasis/x-oasis/packages/diff/diff-match-patch/examples
3
3
  > vite build
4
4
 
5
5
  vite v4.1.4 building for production...
@@ -0,0 +1,7 @@
1
+ # diff-match-patch-example
2
+
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f1aae14: bump version
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diff-match-patch-example",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -2,7 +2,21 @@ import { defineConfig } from 'vite';
2
2
  import react from '@vitejs/plugin-react';
3
3
  import path from 'path';
4
4
 
5
+ // 如果设置了 GITHUB_PAGES 环境变量,使用仓库名和子路径作为 base 路径
6
+ // 格式: owner/repo-name,我们只需要 repo-name
7
+ // 子路径从 GITHUB_PAGES_PATH 环境变量获取,例如: diff-match-patch
8
+ const getBasePath = () => {
9
+ if (process.env.GITHUB_PAGES === 'true') {
10
+ const repo = process.env.GITHUB_REPOSITORY || 'red-armor/x-oasis';
11
+ const repoName = repo.split('/')[1];
12
+ const subPath = process.env.GITHUB_PAGES_PATH || 'diff-match-patch';
13
+ return `/${repoName}/${subPath}/`;
14
+ }
15
+ return '/';
16
+ };
17
+
5
18
  export default defineConfig({
19
+ base: getBasePath(),
6
20
  plugins: [react()],
7
21
  resolve: {
8
22
  alias: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-oasis/diff-match-patch",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Restore file content to original version based on offset range",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",