diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 654645e..c6c71e3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -101,11 +101,7 @@ jobs: - name: Publish run: | npm config set provenance true - if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$"; - then - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - npm publish --access public - elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+"; + if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+"; then echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc npm publish --tag next --access public diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index d323f55..82caead 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@replit/ruspty-darwin-arm64", - "version": "3.0.2", + "version": "3.0.3", "os": [ "darwin" ], diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index b02f225..e86e054 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@replit/ruspty-darwin-x64", - "version": "3.0.2", + "version": "3.0.3", "os": [ "darwin" ], diff --git a/npm/linux-x64-gnu/package.json b/npm/linux-x64-gnu/package.json index 62af29d..43229bb 100644 --- a/npm/linux-x64-gnu/package.json +++ b/npm/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@replit/ruspty-linux-x64-gnu", - "version": "3.0.2", + "version": "3.0.3", "os": [ "linux" ], diff --git a/package-lock.json b/package-lock.json index 7405a95..ec224b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@replit/ruspty", - "version": "3.0.2", + "version": "3.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@replit/ruspty", - "version": "3.0.2", + "version": "3.0.3", "license": "MIT", "devDependencies": { "@napi-rs/cli": "^2.18.2", diff --git a/package.json b/package.json index 5d94f57..7e92196 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@replit/ruspty", - "version": "3.0.2", + "version": "3.0.3", "main": "dist/wrapper.js", "types": "dist/wrapper.d.ts", "author": "Szymon Kaliski ", diff --git a/wrapper.ts b/wrapper.ts index 346bf24..db82a9b 100644 --- a/wrapper.ts +++ b/wrapper.ts @@ -111,4 +111,8 @@ export class Pty { resize(size: Size) { this.#pty.resize(size); } + + get pid() { + return this.#pty.pid; + } }