diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 2bfd54d..0000000 --- a/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM node:26 AS build-env -COPY . /function -WORKDIR /function - -RUN npm ci --no-fund -RUN npm run build - -FROM gcr.io/distroless/nodejs26-debian13 AS image -COPY --from=build-env /function /function -EXPOSE 9443 -USER nonroot:nonroot -WORKDIR /function -CMD ["dist/main.js"] diff --git a/README.md b/README.md index 968c3db..32cba9a 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ See [USAGE.md](USAGE.md) for complete examples and API documentation. ### Prerequisites -- Node.js 18+ +- Node.js 22+ - npm or yarn - Docker (for building container images) - protoc (Protocol Buffer compiler) - `brew install protobuf` diff --git a/package-lock.json b/package-lock.json index ad22062..6d7d980 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@crossplane-org/function-sdk-typescript", - "version": "0.8.0", + "version": "0.9.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@crossplane-org/function-sdk-typescript", - "version": "0.8.0", + "version": "0.9.0", "license": "Apache-2.0", "dependencies": { "@bufbuild/protobuf": "^2.15.0", @@ -27,6 +27,9 @@ "typescript": "npm:@typescript/typescript6@^6.0.2", "typescript-eslint": "^8.60.0", "vitest": "^5.0.0" + }, + "engines": { + "node": ">=22" } }, "node_modules/@babel/helper-string-parser": { @@ -2432,9 +2435,9 @@ "license": "MIT" }, "node_modules/fast-uri": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.6.tgz", - "integrity": "sha512-7Ical1vFEMr0onbVzEDIreM22I4khW+fzyQPwvAFWBp1iwdshSZRsL4jjRvPG9JP1uiqMHRto+YU6R2/CzDz5Q==", + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", "funding": [ { "type": "github", diff --git a/package.json b/package.json index 4dac171..5e73fef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@crossplane-org/function-sdk-typescript", - "version": "0.8.0", + "version": "0.9.0", "description": "A Crossplane Function SDK for Typescript", "keywords": [ "crossplane", @@ -65,5 +65,8 @@ "allowScripts": { "protobufjs@7.6.5": true, "fsevents@2.3.3": true + }, + "engines": { + "node": ">=22" } } diff --git a/tsconfig.json b/tsconfig.json index 0c741e0..c0b9518 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,7 @@ "node_modules", "src/proto/**", "**/*.test.ts", - "vitest.config.ts" + "src/vitest.config.ts" ], "compilerOptions": { // File Layout