@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.
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
> @x-oasis/diff-match-patch@0.1.
|
|
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
|
-
[2K[1A[2K[G
|
|
9
|
-
|
|
10
|
-
⠹ Building modules
|
|
8
|
+
[2K[1A[2K[G✓ Creating entry file 4.4 secs
|
|
9
|
+
⠙ Building modules
|
|
10
|
+
[2K[1A[2K[G⠹ Building modules
|
|
11
11
|
[2K[1A[2K[G⠸ Building modules
|
|
12
12
|
[2K[1A[2K[G⠼ Building modules
|
|
13
13
|
[2K[1A[2K[G⠴ Building modules
|
|
14
14
|
[2K[1A[2K[G⠦ Building modules
|
|
15
15
|
[2K[1A[2K[G⠧ Building modules
|
|
16
16
|
[2K[1A[2K[G⠇ Building modules
|
|
17
|
+
[2K[1A[2K[G⠏ Building modules
|
|
18
|
+
[2K[1A[2K[G⠋ 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
|
-
[2K[1A[2K[G
|
|
21
|
-
[2K[1A[2K[G✓ Building modules 11.4 secs
|
|
22
|
+
[2K[1A[2K[G✓ Building modules 8.9 secs
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> diff-match-patch-example@0.1.
|
|
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
|
[36mvite v4.1.4 [32mbuilding for production...[36m[39m
|
package/examples/package.json
CHANGED
package/examples/vite.config.ts
CHANGED
|
@@ -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: {
|