Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .prettierignore

This file was deleted.

1 change: 0 additions & 1 deletion .prettierrc.js

This file was deleted.

6 changes: 6 additions & 0 deletions oxfmt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import oxfmtConfig from 'oxc-config-seek/oxfmt';
import { defineConfig } from 'oxfmt';

export default defineConfig({
...oxfmtConfig,
});
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
"@changesets/get-github-info": "0.8.0",
"@types/node": "24.12.2",
"rolldown": "1.0.1",
"skuba": "16.3.0"
"skuba": "16.4.0"
},
"packageManager": "pnpm@10.33.2",
"engines": {
"node": ">=22.14.0"
},
"packageManager": "pnpm@11.28.2",
"skuba": {
"entryPoint": "packages/hooks/src/index.ts",
"template": "oss-npm-package",
"type": "package",
"version": "16.2.0"
"version": "16.4.0"
}
}
2 changes: 1 addition & 1 deletion packages/hooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ The `skipHook` option skips synchronous validation of the smoke test function du
This may be used when a build needs to be expedited in a disaster recovery scenario or when a dependency is known to be unhealthy.

```typescript
import { Env } from 'skuba-dive';
import Router from '@koa/router';
import { createLogger } from '@seek/logger';
import { Env } from 'skuba-dive';

const config = {
skipHook: Env.boolean('SKIP_SMOKE', { default: false }),
Expand Down
34 changes: 17 additions & 17 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@
"bugs": {
"url": "https://github.com/seek-oss/aws-codedeploy-hooks/issues"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/seek-oss/aws-codedeploy-hooks.git"
},
"license": "MIT",
"sideEffects": false,
"files": [
"lib"
],
"type": "module",
"sideEffects": false,
"main": "./lib/index.cjs",
"module": "./lib/index.mjs",
"types": "./lib/index.d.cts",
"exports": {
".": {
"@seek/aws-codedeploy-hooks/source": "./src/index.ts",
Expand All @@ -22,12 +28,15 @@
},
"./package.json": "./package.json"
},
"main": "./lib/index.cjs",
"module": "./lib/index.mjs",
"types": "./lib/index.d.cts",
"files": [
"lib"
],
"publishConfig": {
"exports": {
".": {
"import": "./lib/index.mjs",
"require": "./lib/index.cjs"
},
"./package.json": "./package.json"
}
},
"scripts": {
"build": "skuba build-package"
},
Expand All @@ -44,15 +53,6 @@
"engines": {
"node": ">=22.14.0"
},
"publishConfig": {
"exports": {
".": {
"import": "./lib/index.mjs",
"require": "./lib/index.cjs"
},
"./package.json": "./package.json"
}
},
"skuba": {
"build": "esbuild"
}
Expand Down
4 changes: 3 additions & 1 deletion packages/hooks/tsdown.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export default defineConfig({
legacyCjs: false,
},
publint: true,
attw: true,
attw: {
profile: 'node16',
},
unbundle: true, // TODO: determine if your project can be bundled
exports: { devExports: '@seek/aws-codedeploy-hooks/source' },
});
36 changes: 18 additions & 18 deletions packages/infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@
"bugs": {
"url": "https://github.com/seek-oss/aws-codedeploy-hooks/issues"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/seek-oss/aws-codedeploy-hooks.git"
},
"license": "MIT",
"sideEffects": false,
"files": [
"lib"
],
"type": "module",
"sideEffects": false,
"main": "./lib/index.cjs",
"module": "./lib/index.mjs",
"types": "./lib/index.d.cts",
"exports": {
".": {
"@seek/aws-codedeploy-hooks/source": "./src/index.ts",
Expand All @@ -22,12 +28,15 @@
},
"./package.json": "./package.json"
},
"main": "./lib/index.cjs",
"module": "./lib/index.mjs",
"types": "./lib/index.d.cts",
"files": [
"lib"
],
"publishConfig": {
"exports": {
".": {
"import": "./lib/index.mjs",
"require": "./lib/index.cjs"
},
"./package.json": "./package.json"
}
},
"scripts": {
"build": "pnpm run --silent codegen && skuba build-package",
"codegen": "skuba node cli/codegen"
Expand All @@ -47,22 +56,13 @@
"@smithy/util-stream": "4.5.15",
"@types/node": "24.12.2",
"aws-sdk-client-mock": "4.1.0",
"aws-sdk-client-mock-vitest": "7.0.1",
"aws-sdk-client-mock-vitest": "8.0.0",
"isomorphic-git": "1.37.8",
"pino-pretty": "13.1.3"
},
"engines": {
"node": ">=22.14.0"
},
"publishConfig": {
"exports": {
".": {
"import": "./lib/index.mjs",
"require": "./lib/index.cjs"
},
"./package.json": "./package.json"
}
},
"skuba": {
"build": "esbuild"
}
Expand Down
1 change: 0 additions & 1 deletion packages/infra/src/handlers/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
vi.mock('./process/process.js');

import 'aws-sdk-client-mock-vitest/extend';

import {
CodeDeployClient,
LifecycleEventStatus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ vi.mock('./prune.js');
vi.mock('../../framework/context.js');

import 'aws-sdk-client-mock-vitest/extend';

import {
CodeDeployClient,
GetApplicationRevisionCommand,
Expand Down
1 change: 0 additions & 1 deletion packages/infra/src/handlers/process/lambda/prune.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'aws-sdk-client-mock-vitest/extend';

import {
DeleteFunctionCommand,
LambdaClient,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'aws-sdk-client-mock-vitest/extend';

import { InvokeCommand, LambdaClient } from '@aws-sdk/client-lambda';
import { Uint8ArrayBlobAdapter } from '@smithy/util-stream';
import { mockClient } from 'aws-sdk-client-mock';
Expand Down
4 changes: 3 additions & 1 deletion packages/infra/tsdown.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export default defineConfig({
legacyCjs: false,
},
publint: true,
attw: true,
attw: {
profile: 'node16',
},
unbundle: true, // TODO: determine if your project can be bundled
exports: { devExports: '@seek/aws-codedeploy-hooks/source' },
copy: ['./src/assets'],
Expand Down
Loading
Loading