Skip to content

Commit

Permalink
Merge pull request #4 from jordojordo/pnpm
Browse files Browse the repository at this point in the history
Migrate to pnpm - update deps
  • Loading branch information
jordojordo authored Oct 14, 2024
2 parents b908af6 + 7b5d706 commit 6a1771b
Show file tree
Hide file tree
Showing 5 changed files with 1,784 additions and 1,497 deletions.
8 changes: 6 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
FROM node:22 AS build

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

WORKDIR /usr/src/app
COPY package*.json ./
RUN yarn
RUN pnpm install
COPY . .
RUN yarn build
RUN pnpm build

FROM node:22
WORKDIR /usr/src/app
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,20 @@ send('Hello, ThothScript!');
To set up the thothscript-operator, ensure you have Node.js installed, then run:

```bash
yarn install
pnpm install
```

## Usage
Start the server with:

```bash
yarn start
pnpm start
```

For development, watch for changes in the source files:

```bash
yarn dev
pnpm dev
```

## License
Expand Down
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
{
"name": "gptscript-operator",
"version": "0.1.5",
"version": "0.1.6",
"main": "index.js",
"license": "MIT",
"type": "module",
"packageManager": "[email protected]",
"scripts": {
"build": "tsc && mkdir -p dist/tools && cp -r src/tools/* dist/tools/",
"clean": "rm -rf dist && yarn cache clean",
"clean": "rm -rf dist && pnpm cache clean",
"start": "node dist/server.js",
"dev": "tsx watch src/server.ts",
"lint": "npx eslint .",
"format": "npx eslint . --fix"
},
"dependencies": {
"@gptscript-ai/gptscript": "^0.9.4",
"@gptscript-ai/gptscript": "^0.9.5",
"body-parser": "^1.20.3",
"express": "^4.19.2",
"ws": "^8.17.1"
"express": "^4.21.1",
"ws": "^8.18.0"
},
"devDependencies": {
"@types/body-parser": "^1.19.5",
"@types/express": "^5.0.0",
"@types/node": "^22.7.2",
"@types/ws": "^8.5.10",
"eslint": "^9.2.0",
"globals": "^15.1.0",
"sse.js": "^2.4.1",
"tsx": "^4.10.1",
"typescript": "^5.4.5"
"@types/node": "^22.7.5",
"@types/ws": "^8.5.12",
"eslint": "^9.12.0",
"globals": "^15.11.0",
"sse.js": "^2.5.0",
"tsx": "^4.19.1",
"typescript": "^5.6.3"
}
}
Loading

0 comments on commit 6a1771b

Please sign in to comment.