@isograph/react 0.0.0-main-46027826 → 0.0.0-main-3dfc0c7a

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,5 +1,5 @@
1
1
  {
2
- "project_root": ".",
2
+ "project_root": "./src/tests",
3
3
  "schema": "./schema.graphql",
4
4
  "options": {
5
5
  "on_invalid_id_type": "error"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isograph/react",
3
- "version": "0.0.0-main-46027826",
3
+ "version": "0.0.0-main-3dfc0c7a",
4
4
  "description": "Use Isograph with React",
5
5
  "homepage": "https://isograph.dev",
6
6
  "main": "dist/index.js",
@@ -17,18 +17,21 @@
17
17
  "tsc": "tsc"
18
18
  },
19
19
  "dependencies": {
20
- "@isograph/disposable-types": "0.0.0-main-46027826",
21
- "@isograph/react-disposable-state": "0.0.0-main-46027826",
22
- "@isograph/reference-counted-pointer": "0.0.0-main-46027826"
20
+ "@isograph/disposable-types": "0.0.0-main-3dfc0c7a",
21
+ "@isograph/react-disposable-state": "0.0.0-main-3dfc0c7a",
22
+ "@isograph/reference-counted-pointer": "0.0.0-main-3dfc0c7a"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "18.2.0"
26
26
  },
27
27
  "devDependencies": {
28
+ "@babel/preset-typescript": "^7.24.7",
28
29
  "@types/react": "^18.0.31",
29
30
  "react-test-renderer": "^18.2.0",
30
- "vitest": "^0.29.8",
31
- "typescript": "^5.0.3"
31
+ "typescript": "^5.0.3",
32
+ "vite-plugin-babel": "^1.2.0",
33
+ "vite-plugin-commonjs": "^0.10.1",
34
+ "vitest": "^0.29.8"
32
35
  },
33
36
  "repository": {
34
37
  "type": "git",
@@ -46,9 +46,8 @@ export const meNameField = iso(`
46
46
  }
47
47
  }
48
48
  `)(() => {});
49
- import meNameEntrypoint from './__isograph/Query/meName/entrypoint';
50
49
  import { meNameSuccessorRetainedQuery } from './meNameSuccessor';
51
- iso(`entrypoint Query.meName`);
50
+ const meNameEntrypoint = iso(`entrypoint Query.meName`);
52
51
  const meNameRetainedQuery = {
53
52
  normalizationAst: meNameEntrypoint.normalizationAst,
54
53
  variables: {},
@@ -12,8 +12,7 @@ export const meNameField = iso(`
12
12
  }
13
13
  }
14
14
  `)(() => {});
15
- import meNameSuccessorEntrypoint from './__isograph/Query/meNameSuccessor/entrypoint';
16
- iso(`entrypoint Query.meNameSuccessor`);
15
+ const meNameSuccessorEntrypoint = iso(`entrypoint Query.meNameSuccessor`);
17
16
  export const meNameSuccessorRetainedQuery = {
18
17
  normalizationAst: meNameSuccessorEntrypoint.normalizationAst,
19
18
  variables: {},
@@ -9,8 +9,7 @@ export const nodeField = iso(`
9
9
  }
10
10
  }
11
11
  `)(() => {});
12
- import nodeFieldEntrypoint from './__isograph/Query/nodeField/entrypoint';
13
- iso(`entrypoint Query.nodeField`);
12
+ const nodeFieldEntrypoint = iso(`entrypoint Query.nodeField`);
14
13
  export const nodeFieldRetainedQuery = {
15
14
  normalizationAst: nodeFieldEntrypoint.normalizationAst,
16
15
  variables: { id: 0 },
@@ -15,7 +15,7 @@
15
15
  "incremental": true,
16
16
  "allowImportingTsExtensions": true,
17
17
  "paths": {
18
- "@isograph/react": ["../index.ts"],
19
- },
20
- },
18
+ "@isograph/react": ["../index.ts"]
19
+ }
20
+ }
21
21
  }
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "extends": "./tsconfig.pkg.json",
3
3
  "compilerOptions": {
4
- "noEmit": true,
5
- },
4
+ "noEmit": true
5
+ }
6
6
  }
package/tsconfig.pkg.json CHANGED
@@ -8,5 +8,5 @@
8
8
  "lib": ["es2017", "DOM"]
9
9
  },
10
10
  "include": ["./**/*.ts", "./**/*.tsx"],
11
- "exclude": ["./src/tests/**/*"]
11
+ "exclude": ["./src/tests/**/*", "./vite.config.ts"]
12
12
  }
package/vite.config.ts ADDED
@@ -0,0 +1,16 @@
1
+ import babel from 'vite-plugin-babel';
2
+ import commonjs from 'vite-plugin-commonjs';
3
+ import { defineConfig } from 'vitest/config';
4
+
5
+ export default defineConfig({
6
+ plugins: [
7
+ babel({
8
+ filter: /\.[jt]sx?$/,
9
+ babelConfig: {
10
+ presets: ['@babel/preset-typescript'],
11
+ plugins: ['../isograph-babel-plugin/BabelPluginIsograph'],
12
+ },
13
+ }),
14
+ commonjs(),
15
+ ],
16
+ });
File without changes