Skip to content

Commit

Permalink
chore: depend on tslib to improve size of generated js
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Jul 7, 2024
1 parent e59f19f commit 2788d51
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 42 deletions.
Binary file modified bun.lockb
Binary file not shown.
85 changes: 44 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
{
"name": "@gramio/contexts",
"version": "0.0.20",
"main": "dist/index.js",
"keywords": [
"gramio",
"contexts",
"updates",
"events",
"telegram",
"telegram-bot",
"telegram-bot-api",
"bot"
],
"files": [
"dist"
],
"devDependencies": {
"@biomejs/biome": "1.7.3",
"@gramio/types": "^7.7.0",
"@types/bun": "^1.1.6",
"common-tags": "^1.8.2",
"inspectable": "^3.0.2",
"madge": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3"
},
"peerDependencies": {
"inspectable": "^3.0.1"
},
"description": "Contexts for GramIO framework",
"scripts": {
"type": "tsc --noEmit",
"lint": "bunx @biomejs/biome check ./src",
"lint:fix": "bun lint --apply",
"prepublishOnly": "tsc && bunx tsc-alias",
"circular": "bunx madge --circular ./src --extensions=ts",
"generate": "bun scripts/generate.ts",
"jsr": "bun scripts/release-jsr.ts"
},
"type": "commonjs",
"types": "dist/index.d.ts"
"name": "@gramio/contexts",
"version": "0.0.20",
"main": "dist/index.js",
"keywords": [
"gramio",
"contexts",
"updates",
"events",
"telegram",
"telegram-bot",
"telegram-bot-api",
"bot"
],
"files": [
"dist"
],
"devDependencies": {
"@biomejs/biome": "1.7.3",
"@gramio/types": "^7.7.0",
"@types/bun": "^1.1.6",
"common-tags": "^1.8.2",
"inspectable": "^3.0.2",
"madge": "^7.0.0",
"tsup": "^8.1.0",
"typescript": "^5.5.3"
},
"peerDependencies": {
"inspectable": "^3.0.1"
},
"description": "Contexts for GramIO framework",
"scripts": {
"type": "tsc --noEmit",
"lint": "bunx @biomejs/biome check ./src",
"lint:fix": "bun lint --apply",
"prepublishOnly": "tsc && bunx tsc-alias",
"circular": "bunx madge --circular ./src --extensions=ts",
"generate": "bun scripts/generate.ts",
"jsr": "bun scripts/release-jsr.ts"
},
"type": "commonjs",
"types": "dist/index.d.ts",
"dependencies": {
"tslib": "^2.6.3"
}
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"forceConsistentCasingInFileNames": true,
"baseUrl": "./src",
"rootDir": "./src",
"outDir": "./dist"
"outDir": "./dist",
"importHelpers": true
},
"include": ["src/**/*.ts"]
}

0 comments on commit 2788d51

Please sign in to comment.