@xata.io/client 0.0.0-alpha.vf4b92f1 → 0.0.0-alpha.vf54e954

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,20 +1,22 @@
1
1
  {
2
2
  "name": "@xata.io/client",
3
- "version": "0.0.0-alpha.vf4b92f1",
3
+ "version": "0.0.0-alpha.vf54e954",
4
4
  "description": "Xata.io SDK for TypeScript and JavaScript",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
8
8
  "exports": {
9
- "import": "./dist/index.mjs",
10
- "require": "./dist/index.cjs"
9
+ ".": {
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.cjs",
12
+ "types": "./dist/index.d.ts"
13
+ }
11
14
  },
12
15
  "browser": {
13
16
  "child_process": false
14
17
  },
15
- "scripts": {
16
- "build": "rimraf dist && rollup -c",
17
- "prepack": "npm run build"
18
+ "peerDependencies": {
19
+ "typescript": ">=4.5"
18
20
  },
19
21
  "repository": {
20
22
  "type": "git",
@@ -22,10 +24,14 @@
22
24
  },
23
25
  "keywords": [],
24
26
  "author": "",
25
- "license": "MIT",
27
+ "license": "Apache-2.0",
26
28
  "bugs": {
27
29
  "url": "https://github.com/xataio/client-ts/issues"
28
30
  },
29
- "homepage": "https://github.com/xataio/client-ts/blob/main/client/README.md",
30
- "gitHead": "f4b92f17a7c37e1a9945d8312f58a7c645d0d552"
31
- }
31
+ "homepage": "https://xata.io/docs/sdk/getting-started",
32
+ "scripts": {
33
+ "build": "rimraf dist && rollup -c",
34
+ "tsc": "tsc --noEmit",
35
+ "add-version": "node ../../scripts/add-version-file.mjs"
36
+ }
37
+ }
package/.eslintrc.cjs DELETED
@@ -1,13 +0,0 @@
1
- module.exports = {
2
- ignorePatterns: ["dist"],
3
- parserOptions: {
4
- ecmaVersion: 2020,
5
- sourceType: 'module',
6
- project: 'packages/client/tsconfig.json'
7
- },
8
- rules: {
9
- '@typescript-eslint/no-explicit-any': 'off',
10
- '@typescript-eslint/ban-types': 'off',
11
- '@typescript-eslint/no-floating-promises': 'error',
12
- }
13
- };
package/rollup.config.js DELETED
@@ -1,29 +0,0 @@
1
- import dts from 'rollup-plugin-dts';
2
- import esbuild from 'rollup-plugin-esbuild';
3
-
4
- export default [
5
- {
6
- input: 'src/index.ts',
7
- plugins: [esbuild()],
8
- output: [
9
- {
10
- file: `dist/index.cjs`,
11
- format: 'cjs',
12
- sourcemap: true
13
- },
14
- {
15
- file: `dist/index.mjs`,
16
- format: 'es',
17
- sourcemap: true
18
- }
19
- ]
20
- },
21
- {
22
- input: 'src/index.ts',
23
- plugins: [dts()],
24
- output: {
25
- file: `dist/index.d.ts`,
26
- format: 'es'
27
- }
28
- }
29
- ];
package/tsconfig.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2020",
4
- "lib": ["esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "esModuleInterop": true,
8
- "allowSyntheticDefaultImports": true,
9
- "strict": true,
10
- "forceConsistentCasingInFileNames": true,
11
- "noFallthroughCasesInSwitch": true,
12
- "module": "es2020",
13
- "moduleResolution": "node",
14
- "resolveJsonModule": true,
15
- "isolatedModules": true,
16
- "noEmit": false,
17
- "outDir": "dist",
18
- "declaration": true
19
- },
20
- "include": ["src"],
21
- "exclude": ["node_modules"]
22
- }