Skip to content

Commit d0bc925

Browse files
authored
fix: include dist directories to package
`dist-*` doesn't work with `npm pack` (at least with 9.5.1) and nothing is packed. This commit fixes `files` to specify individual dist directories explicitly so that `npm pack` can include all files.
1 parent 9a52172 commit d0bc925

File tree

1 file changed

+5
-1
lines changed
  • smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen

1 file changed

+5
-1
lines changed

smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,9 @@
3535
"dist-types/*": ["dist-types/ts3.4/*"]
3636
}
3737
},
38-
"files": ["dist-*"]
38+
"files": [
39+
"dist-cjs",
40+
"dist-types",
41+
"dist-es"
42+
]
3943
}

0 commit comments

Comments
 (0)