@aiao/rxdb-react 0.0.7 → 0.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiao/rxdb-react",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -15,8 +15,8 @@
15
15
  }
16
16
  },
17
17
  "dependencies": {
18
- "@aiao/rxdb": "0.0.7",
19
- "@aiao/utils": "0.0.7"
18
+ "@aiao/rxdb": "0.0.8",
19
+ "@aiao/utils": "0.0.8"
20
20
  },
21
21
  "nx": {
22
22
  "name": "rxdb-react",
package/project.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
3
+ "name": "rxdb-react",
4
+ "tags": ["react-lib"]
5
+ }
@@ -1,16 +1,16 @@
1
1
  /// <reference types='vitest' />
2
2
  import { codecovVitePlugin } from '@codecov/vite-plugin';
3
3
  import react from '@vitejs/plugin-react';
4
- import * as path from 'path';
4
+ import path from 'node:path';
5
5
  import dts from 'vite-plugin-dts';
6
6
  import { defineConfig } from 'vitest/config';
7
7
 
8
8
  export default defineConfig({
9
- root: __dirname,
9
+ root: import.meta.dirname,
10
10
  cacheDir: '../../node_modules/.vite/packages/rxdb-react',
11
11
  plugins: [
12
12
  react(),
13
- dts({ entryRoot: 'src', tsconfigPath: path.join(__dirname, 'tsconfig.lib.json') }),
13
+ dts({ entryRoot: 'src', tsconfigPath: path.join(import.meta.dirname, 'tsconfig.lib.json') }),
14
14
  // Codecov Bundle Analysis - 仅在 CI 环境中启用
15
15
  // TECH DEBT: @codecov/vite-plugin@1.9.1 不支持 Vite 7.x (仅支持 4/5/6)
16
16
  // 临时使用类型断言绕过编译错误,功能运行时正常
@@ -42,7 +42,7 @@ export default defineConfig({
42
42
  lib: {
43
43
  // Could also be a dictionary or array of multiple entry points.
44
44
  entry: 'src/index.ts',
45
- name: 'rxdb-react',
45
+ name: '@aiao/rxdb-react',
46
46
  fileName: 'index',
47
47
  // Change this to the formats you want to support.
48
48
  // Don't forget to update your package.json as well.