Skip to content

Commit

Permalink
fix(packages): proper cjs/esm builds
Browse files Browse the repository at this point in the history
  • Loading branch information
didinele committed Jul 27, 2024
1 parent 3beebdc commit 6af9eb9
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/discord-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chatsift/discord-utils",
"description": "Niche utilities for working with Discord's raw API",
"version": "0.5.0",
"version": "0.5.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/discord-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
Expand Down
2 changes: 1 addition & 1 deletion packages/parse-relative-time/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chatsift/parse-relative-time",
"description": "Relative time parser, similar to vercel/ms",
"version": "0.3.0",
"version": "0.3.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/parse-relative-time/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
Expand Down
2 changes: 1 addition & 1 deletion packages/pino-rotate-file/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chatsift/pino-rotate-file",
"description": "Simple pino transport for rotating files",
"version": "0.5.0",
"version": "0.5.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/pino-rotate-file/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
Expand Down
2 changes: 1 addition & 1 deletion packages/readdir/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chatsift/readdir",
"description": "Fast, stream based recursive version of fs.readdir",
"version": "0.6.0",
"version": "0.6.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions packages/readdir/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
Expand Down
8 changes: 1 addition & 7 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@ export const createTsupConfig = ({
minify = false,
entry = ['src/index.ts'],
noExternal,
esbuildOptions = (options, context) => {
if (context.format === 'cjs') {
options.banner = {
js: '"use strict";',
};
}
},
esbuildOptions,
}: ConfigOptions = {}) =>
defineConfig({
clean: true,
Expand Down

0 comments on commit 6af9eb9

Please sign in to comment.