Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove turbo #646

Merged
merged 5 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Contributing

`tus-node-server` is a mono-repository managed by [Turborepo](https://turbo.build/repo).
This means running `npm run build` in the root will build all packages in parallel. The
same goes for `lint` and `format`.

## Changesets

We use [changesets](https://github.com/changesets/changesets) to manage versioning,
Expand Down
124 changes: 0 additions & 124 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"lint": "eslint .",
"format": "eslint --fix .",
"pretest": "tsc --build",
"test": "turbo run test",
"test": "npm test -w ./packages",
"version": "changeset version",
"release": "gh workflow run release",
"release:local": "turbo run build && changeset publish"
"release:local": "npm run build && changeset publish"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
Expand All @@ -26,7 +26,6 @@
"eslint-config-custom": "^0.0.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8",
"turbo": "^1.13.0",
"typescript": "^5.5.4"
},
"version": "0.0.0"
Expand Down
6 changes: 1 addition & 5 deletions packages/eslint-config-custom/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
module.exports = {
env: {es6: true, node: true, mocha: true},
parser: '@typescript-eslint/parser',
extends: [
'turbo',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
plugins: ['@typescript-eslint', 'prettier'],
rules: {
'no-new': 'off',
Expand Down
4 changes: 3 additions & 1 deletion packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "echo \"No tests specified\""
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^6.19.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-config-turbo": "^1.11.3",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8"
},
Expand Down
5 changes: 1 addition & 4 deletions test/src/stores.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ import {setTimeout as promSetTimeout} from 'node:timers/promises'

import {Upload, Uid} from '@tus/server'

// In CI we run multiple jobs in parallel,
// so we need to make sure that the IDs are unique.
export function testId(id: string) {
// eslint-disable-next-line turbo/no-undeclared-env-vars
return `${id}-${process.env.GITHUB_JOB ?? Uid.rand()}`
return `${id}-${Uid.rand()}`
}

export const shouldHaveStoreMethods = function () {
Expand Down
26 changes: 0 additions & 26 deletions turbo.json

This file was deleted.

Loading