Skip to content

Commit

Permalink
Merge pull request #408 from Telegram-Mini-Apps/bugfix/mate-deps
Browse files Browse the repository at this point in the history
Remove cli-utils dep and replace with tsconfig path in `@telegram-apps/mate`
  • Loading branch information
heyqbnk authored Jul 11, 2024
2 parents 8bcaf58 + 8608751 commit 16a1e9e
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-bulldogs-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@telegram-apps/mate": patch
---

Fix invalid deps.
1 change: 0 additions & 1 deletion packages/mate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"dependencies": {
"@aws-sdk/client-s3": "^3.613.0",
"chalk": "^5.3.0",
"cli-utils": "workspace:*",
"commander": "^12.0.0",
"figures": "^6.1.0",
"mime-db": "^1.52.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/mate/src/commands/deployCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { existsSync, lstatSync, readdirSync, createReadStream } from 'node:fs';

import { Command } from 'commander';
import chalk from 'chalk';
import { spawnWithSpinner } from 'cli-utils';
import { S3 } from '@aws-sdk/client-s3';
import mimeDb from 'mime-db';

import { spawnWithSpinner } from '@/cli-utils/spawnWithSpinner.js';

import { GCoreAPI } from '../lib/GCoreAPI.js';
import { Logger } from '../logging/Logger.js';
import { logError } from '../logging/logError.js';
Expand Down
3 changes: 2 additions & 1 deletion packages/mate/src/commands/linkCommand.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { S3 } from '@aws-sdk/client-s3';
import { Command } from 'commander';
import chalk from 'chalk';
import { spawnWithSpinner } from 'cli-utils';

import { spawnWithSpinner } from '@/cli-utils/spawnWithSpinner.js';

import { Logger } from '../logging/Logger.js';
import { logSuccess } from '../logging/logSuccess.js';
Expand Down
12 changes: 12 additions & 0 deletions packages/mate/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"extends": "tsconfig/esnext.json",
"compilerOptions": {
"paths": {
"@/cli-utils/*": [
"../cli-utils/src/*"
]
}
},
"include": [
"src"
],
"references": [
{
"path": "../cli-utils"
}
]
}
2 changes: 2 additions & 0 deletions packages/mate/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { defineConfig } from 'vite';
import shebang from 'rollup-plugin-preserve-shebang';
import tsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig({
plugins: [
tsconfigPaths(),
shebang({
shebang: '#!/usr/bin/env node',
}),
Expand Down
33 changes: 20 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 16a1e9e

Please sign in to comment.