@sleekcms/client 0.1.3 → 0.1.6

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/index.d.cts CHANGED
@@ -25,6 +25,7 @@ interface ClientOptions {
25
25
  env?: string;
26
26
  cache?: boolean;
27
27
  mock?: boolean;
28
+ resolveEnv?: boolean;
28
29
  }
29
30
 
30
31
  /**
package/index.d.ts CHANGED
@@ -25,6 +25,7 @@ interface ClientOptions {
25
25
  env?: string;
26
26
  cache?: boolean;
27
27
  mock?: boolean;
28
+ resolveEnv?: boolean;
28
29
  }
29
30
 
30
31
  /**
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@sleekcms/client",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "Official SleekCMS content client for Node 18+ and browser",
5
5
  "type": "module",
6
6
  "main": "index.cjs",
7
7
  "module": "index.mjs",
8
8
  "types": "index.d.ts",
9
+ "private": false,
9
10
  "exports": {
10
11
  ".": {
11
12
  "types": "./index.d.ts",
@@ -14,11 +15,11 @@
14
15
  }
15
16
  },
16
17
  "scripts": {
17
- "build": "npm run clean && tsup src/index.ts --dts --format esm,cjs && cp package.json README.md dist/",
18
+ "build": "npm run clean && tsup && cp README.md dist/ && cp .npmrc dist/ && jq '.private = false | .files = [\"index.cjs\", \"index.mjs\", \"index.d.ts\", \"index.d.cts\", \"README.md\"]' package.json > dist/package.json",
18
19
  "clean": "rimraf dist || true",
19
20
  "test": "vitest run",
20
21
  "test:watch": "vitest",
21
- "publish:dist": "cd dist && npm publish"
22
+ "publish:dist": "cd dist && npm publish --access public"
22
23
  },
23
24
  "dependencies": {
24
25
  "jmespath": "^0.16.0"
@@ -34,5 +35,12 @@
34
35
  "tsup": "^8.5.1",
35
36
  "typescript": "^5.4.0",
36
37
  "vitest": "^4.0.15"
37
- }
38
+ },
39
+ "files": [
40
+ "index.cjs",
41
+ "index.mjs",
42
+ "index.d.ts",
43
+ "index.d.cts",
44
+ "README.md"
45
+ ]
38
46
  }
File without changes