diff --git a/.github/contributing.md b/.github/contributing.md index 43d86979..83848764 100644 --- a/.github/contributing.md +++ b/.github/contributing.md @@ -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, diff --git a/package-lock.json b/package-lock.json index f77e53b9..7bda3493 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,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" } }, @@ -3803,13 +3802,6 @@ "node": ">=6.0.0" } }, - "node_modules/dotenv": { - "version": "16.0.3", - "license": "BSD-2-Clause", - "engines": { - "node": ">=12" - } - }, "node_modules/duplexify": { "version": "4.1.2", "dev": true, @@ -4073,16 +4065,6 @@ "eslint": ">=7.0.0" } }, - "node_modules/eslint-config-turbo": { - "version": "1.11.3", - "license": "MPL-2.0", - "dependencies": { - "eslint-plugin-turbo": "1.11.3" - }, - "peerDependencies": { - "eslint": ">6.6.0" - } - }, "node_modules/eslint-plugin-prettier": { "version": "4.2.1", "license": "MIT", @@ -4102,16 +4084,6 @@ } } }, - "node_modules/eslint-plugin-turbo": { - "version": "1.11.3", - "license": "MPL-2.0", - "dependencies": { - "dotenv": "16.0.3" - }, - "peerDependencies": { - "eslint": ">6.6.0" - } - }, "node_modules/eslint-scope": { "version": "7.2.2", "license": "BSD-2-Clause", @@ -7570,101 +7542,6 @@ "node": ">=12" } }, - "node_modules/turbo": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo/-/turbo-1.13.0.tgz", - "integrity": "sha512-r02GtNmkOPcQvUzVE6lg474QVLyU02r3yh3lUGqrFHf5h5ZEjgDGWILsAUqplVqjri1Y/oOkTssks4CObTAaiw==", - "dev": true, - "bin": { - "turbo": "bin/turbo" - }, - "optionalDependencies": { - "turbo-darwin-64": "1.13.0", - "turbo-darwin-arm64": "1.13.0", - "turbo-linux-64": "1.13.0", - "turbo-linux-arm64": "1.13.0", - "turbo-windows-64": "1.13.0", - "turbo-windows-arm64": "1.13.0" - } - }, - "node_modules/turbo-darwin-64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-1.13.0.tgz", - "integrity": "sha512-ctHeJXtQgBcgxnCXwrJTGiq57HtwF7zWz5NTuSv//5yeU01BtQIt62ArKfjudOhRefWJbX3Z5srn88XTb9hfww==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/turbo-darwin-arm64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-1.13.0.tgz", - "integrity": "sha512-/Q9/pNFkF9w83tNxwMpgapwLYdQ12p8mpty2YQRoUiS9ClWkcqe136jR0mtuMqzlNlpREOFZaoyIthjt6Sdo0g==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/turbo-linux-64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-1.13.0.tgz", - "integrity": "sha512-hgbT7o020BGV4L7Sd8hhFTd5zVKPKxbsr0dPfel/9NkdTmptz2aGZ0Vb2MAa18SY3XaCQpDxmdYuOzvvRpo5ZA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/turbo-linux-arm64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-1.13.0.tgz", - "integrity": "sha512-WK01i2wDZARrV+HEs495A3hNeGMwQR5suYk7G+ceqqW7b+dOTlQdvUjnI3sg7wAnZPgjafFs/hoBaZdJjVa/nw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/turbo-windows-64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-1.13.0.tgz", - "integrity": "sha512-hJgSZJZwlWHNwLEthaqJqJWGm4NqF5X/I7vE0sPE4i/jeDl8f0n1hcOkgJkJiNXVxhj+qy/9+4dzbPLKT9imaQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/turbo-windows-arm64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-1.13.0.tgz", - "integrity": "sha512-L/ErxYoXeq8tmjU/AIGicC9VyBN1zdYw8JlM4yPmMI0pJdY8E4GaYK1IiIazqq7M72lmQhU/WW7fV9FqEktwrw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ] - }, "node_modules/tus-js-client": { "version": "2.3.2", "license": "MIT", @@ -8087,7 +7964,6 @@ "@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" }, diff --git a/package.json b/package.json index bfe6fb9d..c387b3c4 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" diff --git a/packages/eslint-config-custom/index.js b/packages/eslint-config-custom/index.js index 2ccbf0c2..06c6380f 100644 --- a/packages/eslint-config-custom/index.js +++ b/packages/eslint-config-custom/index.js @@ -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', diff --git a/packages/eslint-config-custom/package.json b/packages/eslint-config-custom/package.json index 6634bb83..7c38f0e1 100644 --- a/packages/eslint-config-custom/package.json +++ b/packages/eslint-config-custom/package.json @@ -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" }, diff --git a/test/src/stores.test.ts b/test/src/stores.test.ts index bdf97d30..d532fc07 100644 --- a/test/src/stores.test.ts +++ b/test/src/stores.test.ts @@ -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 () { diff --git a/turbo.json b/turbo.json deleted file mode 100644 index 4c16bee6..00000000 --- a/turbo.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "$schema": "https://turbo.build/schema.json", - "pipeline": { - "build": { - "dependsOn": ["^build"], - "outputs": ["dist/**"] - }, - "test": { - "dependsOn": ["build"], - "env": [ - "AWS_BUCKET", - "AWS_ACCESS_KEY_ID", - "AWS_SECRET_ACCESS_KEY", - "AWS_REGION", - "GITHUB_JOB" - ], - "outputs": [] - }, - "lint": { - "outputs": [] - }, - "format": { - "outputs": [] - } - } -}