Skip to content

Commit d026b6a

Browse files
committed
Run skuba format
1 parent 1b2e0d1 commit d026b6a

13 files changed

Lines changed: 95 additions & 72 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"entryPoint": "packages/hooks/src/index.ts",
3131
"template": "oss-npm-package",
3232
"type": "package",
33-
"version": "14.1.0"
33+
"version": "15.0.1"
3434
}
3535
}

packages/hooks/package.json

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,19 @@
1313
},
1414
"license": "MIT",
1515
"sideEffects": false,
16-
"main": "./src/index.ts",
16+
"exports": {
17+
".": {
18+
"@seek/aws-codedeploy-hooks/source": "./src/index.ts",
19+
"import": "./lib/index.mjs",
20+
"require": "./lib/index.cjs"
21+
},
22+
"./package.json": "./package.json"
23+
},
24+
"main": "./lib/index.cjs",
25+
"module": "./lib/index.mjs",
26+
"types": "./lib/index.d.cts",
1727
"files": [
18-
"lib*/**/*.d.ts",
19-
"lib*/**/*.js",
20-
"lib*/**/*.js.map",
21-
"lib*/**/*.json"
28+
"lib"
2229
],
2330
"scripts": {
2431
"build": "skuba build"
@@ -37,10 +44,13 @@
3744
"node": ">=22.14.0"
3845
},
3946
"publishConfig": {
40-
"main": "./lib/index.js",
41-
"module": "./lib/index.js",
42-
"provenance": true,
43-
"types": "./lib/index.d.ts"
47+
"exports": {
48+
".": {
49+
"import": "./lib/index.mjs",
50+
"require": "./lib/index.cjs"
51+
},
52+
"./package.json": "./package.json"
53+
}
4454
},
4555
"skuba": {
4656
"build": "esbuild"

packages/hooks/tsconfig.build.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/hooks/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"skipLibCheck": true, // tsdown has optional peer deps
34
"outDir": "lib",
45
"rootDir": "src"
56
},

packages/hooks/tsdown.config.mts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineConfig } from 'tsdown';
2+
3+
export default defineConfig({
4+
entry: ['src/index.ts'],
5+
format: ['cjs', 'esm'],
6+
outDir: 'lib',
7+
dts: true,
8+
checks: {
9+
legacyCjs: false,
10+
},
11+
publint: true,
12+
attw: true,
13+
unbundle: true, // TODO: determine if your project can be bundled
14+
exports: { devExports: '@seek/aws-codedeploy-hooks/source' },
15+
});

packages/infra/package.json

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@
1313
},
1414
"license": "MIT",
1515
"sideEffects": false,
16-
"main": "./lib/index.js",
17-
"module": "./lib/index.js",
18-
"types": "./lib/index.d.ts",
16+
"exports": {
17+
".": {
18+
"@seek/aws-codedeploy-hooks/source": "./src/index.ts",
19+
"import": "./lib/index.mjs",
20+
"require": "./lib/index.cjs"
21+
},
22+
"./package.json": "./package.json"
23+
},
24+
"main": "./lib/index.cjs",
25+
"module": "./lib/index.mjs",
26+
"types": "./lib/index.d.cts",
1927
"files": [
20-
"lib*/**/*.d.ts",
21-
"lib*/**/*.js",
22-
"lib*/**/*.js.map",
23-
"lib*/**/*.json"
28+
"lib"
2429
],
2530
"scripts": {
2631
"build": "pnpm run --silent codegen && skuba build",
@@ -48,12 +53,15 @@
4853
"node": ">=22.14.0"
4954
},
5055
"publishConfig": {
51-
"provenance": true
56+
"exports": {
57+
".": {
58+
"import": "./lib/index.mjs",
59+
"require": "./lib/index.cjs"
60+
},
61+
"./package.json": "./package.json"
62+
}
5263
},
5364
"skuba": {
54-
"assets": [
55-
"assets/**/*"
56-
],
5765
"build": "esbuild"
5866
}
5967
}

packages/infra/tsconfig.build.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/infra/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"skipLibCheck": true, // tsdown has optional peer deps
34
"outDir": "lib"
45
},
56
"exclude": ["lib*/**/*"],

packages/infra/tsdown.config.mts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineConfig } from 'tsdown';
2+
3+
export default defineConfig({
4+
entry: ['src/index.ts'],
5+
format: ['cjs', 'esm'],
6+
outDir: 'lib',
7+
dts: true,
8+
checks: {
9+
legacyCjs: false,
10+
},
11+
publint: true,
12+
attw: true,
13+
unbundle: true, // TODO: determine if your project can be bundled
14+
exports: { devExports: '@seek/aws-codedeploy-hooks/source' },
15+
copy: ['assets/**/*'],
16+
});

pnpm-lock.yaml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)