@cagent/chat-embedding-react 0.0.2 → 0.0.4

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +7 -6
package/package.json CHANGED
@@ -1,22 +1,23 @@
1
1
  {
2
2
  "name": "@cagent/chat-embedding-react",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "React library to display c-agent chatbot on your website",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "type": "module",
8
8
  "scripts": {
9
9
  "dev": "rollup --watch --config rollup.config.js",
10
- "build": "bun add @cagent/chat-embedding-core && npm version patch --no-git-tag-version && rollup --config rollup.config.js",
10
+ "build": "npm install @cagent/chat-embedding-core@latest && node -e \"const fs=require('fs');const v=require('@cagent/chat-embedding-core/package.json').version;const j=require('./package.json');j.version=v;fs.writeFileSync('./package.json',JSON.stringify(j,null,2)+'\\n')\" && rollup --config rollup.config.js",
11
11
  "lint": "eslint --fix \"src/**/*.ts*\"",
12
- "build-and-publish": "bun install && bun run build && npm publish",
13
- "prepublishOnly": "bun install && bun run build"
12
+ "build-and-publish": "npm publish",
13
+ "prepublishOnly": "npm run build",
14
+ "postpublish": "node -e \"const fs=require('fs');const v=require('./package.json').version;const p='../cagent-frontend/package.json';const j=JSON.parse(fs.readFileSync(p));j.dependencies['@cagent/chat-embedding-react']=v;fs.writeFileSync(p,JSON.stringify(j,null,2)+'\\n')\""
14
15
  },
15
16
  "keywords": [],
16
17
  "license": "MIT",
17
18
  "dependencies": {
18
19
  "@ladle/react": "2.5.1",
19
- "react": "18.2.0",
20
+ "react": "18.x",
20
21
  "react-dom": "18.2.0",
21
22
  "solid-js": "^1.9.4"
22
23
  },
@@ -38,7 +39,7 @@
38
39
  "typescript": "5.0.3"
39
40
  },
40
41
  "peerDependencies": {
41
- "@cagent/chat-embedding-core": "^0.0.2",
42
+ "@cagent/chat-embedding-core": "^0.0.4",
42
43
  "react": "18.x"
43
44
  },
44
45
  "resolutions": {