@xata.io/client 0.0.0-alpha.vf38f30b → 0.0.0-alpha.vf457e1d

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": "@xata.io/client",
3
- "version": "0.0.0-alpha.vf38f30b",
3
+ "version": "0.0.0-alpha.vf457e1d",
4
4
  "description": "Xata.io SDK for TypeScript and JavaScript",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -14,7 +14,11 @@
14
14
  },
15
15
  "scripts": {
16
16
  "build": "rimraf dist && rollup -c",
17
- "prepack": "npm run build"
17
+ "prepack": "npm run build",
18
+ "prebuild": "node ../../scripts/add-version-file.mjs"
19
+ },
20
+ "peerDependencies": {
21
+ "typescript": ">=4.5"
18
22
  },
19
23
  "repository": {
20
24
  "type": "git",
@@ -22,10 +26,10 @@
22
26
  },
23
27
  "keywords": [],
24
28
  "author": "",
25
- "license": "MIT",
29
+ "license": "Apache-2.0",
26
30
  "bugs": {
27
31
  "url": "https://github.com/xataio/client-ts/issues"
28
32
  },
29
- "homepage": "https://github.com/xataio/client-ts/blob/main/client/README.md",
30
- "gitHead": "f38f30b411a780be49da0fcaf58a427398022d62"
33
+ "homepage": "https://xata.io/docs/sdk/getting-started",
34
+ "gitHead": "f457e1dff337c949ba9ecd56a5483c5bb83681a2"
31
35
  }
@@ -0,0 +1,44 @@
1
+ import dts from 'rollup-plugin-dts';
2
+ import esbuild from 'rollup-plugin-esbuild';
3
+ import stripCode from 'rollup-plugin-strip-code';
4
+
5
+ export default [
6
+ {
7
+ input: 'src/index.ts',
8
+ plugins: [
9
+ stripCode({
10
+ start_comment: 'REMOVE_CJS_BUNDLE_START',
11
+ end_comment: 'REMOVE_CJS_BUNDLE_END'
12
+ }),
13
+ esbuild()
14
+ ],
15
+ output: {
16
+ file: `dist/index.cjs`,
17
+ format: 'cjs',
18
+ sourcemap: true
19
+ }
20
+ },
21
+ {
22
+ input: 'src/index.ts',
23
+ plugins: [
24
+ stripCode({
25
+ start_comment: 'REMOVE_ESM_BUNDLE_START',
26
+ end_comment: 'REMOVE_ESM_BUNDLE_END'
27
+ }),
28
+ esbuild()
29
+ ],
30
+ output: {
31
+ file: `dist/index.mjs`,
32
+ format: 'es',
33
+ sourcemap: true
34
+ }
35
+ },
36
+ {
37
+ input: 'src/index.ts',
38
+ plugins: [dts()],
39
+ output: {
40
+ file: `dist/index.d.ts`,
41
+ format: 'es'
42
+ }
43
+ }
44
+ ];
package/tsconfig.json CHANGED
@@ -7,6 +7,7 @@
7
7
  "esModuleInterop": true,
8
8
  "allowSyntheticDefaultImports": true,
9
9
  "strict": true,
10
+ "strictNullChecks": true,
10
11
  "forceConsistentCasingInFileNames": true,
11
12
  "noFallthroughCasesInSwitch": true,
12
13
  "module": "es2020",
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
- ];