Skip to content

Commit

Permalink
feat: use tsx, biome and node --test
Browse files Browse the repository at this point in the history
BREAKING CHANGE: use ES2022 and ESM as compile target
  • Loading branch information
fox1t committed Sep 22, 2023
1 parent 15af502 commit 61f018a
Show file tree
Hide file tree
Showing 46 changed files with 848 additions and 1,567 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ jobs:
run: pnpm lint
- name: Build
run: pnpm build


4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
version: 8
- name: Install with pnpm
run: pnpm install
- name: Run tests
run: pnpm test
- name: Run tests with coverage
run: pnpm test:coverage
- name: Coveralls
uses: coverallsapp/github-action@09b709cf6a16e30b0808ba050c7a6e8a5ef13f8d # master
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jspm_packages
.env

# Compiled app
build
dist

# TAP files
out.tap
Expand Down
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

11 changes: 0 additions & 11 deletions .prettierrc

This file was deleted.

5 changes: 0 additions & 5 deletions .taprc

This file was deleted.

22 changes: 11 additions & 11 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"$schema": "https://biomejs.dev/schemas/1.1.2/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"$schema": "https://biomejs.dev/schemas/1.1.2/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"indentStyle": "space"
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle":"single"
"quoteStyle": "single"
}
}
}
File renamed without changes.
15 changes: 0 additions & 15 deletions libtap-settings.js

This file was deleted.

62 changes: 23 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
"name": "turborepo-remote-cache",
"version": "1.15.1",
"description": "Turborepo remote cache server",
"main": "build",
"main": "./dist/index.js",
"type": "module",
"author": "Maksim Sinik <[email protected]>",
"license": "MIT",
"bin": {
"turborepo-remote-cache": "./build/cli.js"
"turborepo-remote-cache": "./dist/cli.js"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"prebuild": "pnpm lint && rimraf ./build",
"prebuild": "pnpm lint && rimraf ./dist",
"build": "tsc -p ./tsconfig.json",
"start": "node --enable-source-maps build/index.js",
"start": "node --enable-source-maps dist/index.js",
"lint": "biome check src test",
"fmt": "biome format src test",
"dev": "run-p dev:start check:types",
"dev:start": "tsx --watch --inspect -r dotenv/config src/index.ts",
"dev:start": "tsx watch --inspect --env-file=.env src/index.ts",
"check:types": "tsc -p ./tsconfig.json --noEmit",
"test": "cross-env TS_NODE_PROJECT=./test/tsconfig.json tap --ts",
"posttest": "tap --coverage-report=lcov --no-browser",
"test:watch": "pnpm test -- --watch",
"test:report": "pnpm test -- --output-file=out.tap && tap-mocha-reporter xunit < out.tap > junit-testresults.xml",
"test": "tsx --test ./test/*.ts",
"test:watch": "tsx --watch --test ./test/*.ts",
"test:coverage": "c8 --all --src src --reporter lcov --reporter text tsx --test ./test/*.ts",
"commitlint": "commitlint",
"semantic-release": "semantic-release",
"commit": "npx git-cz",
Expand All @@ -47,61 +47,45 @@
"fastify-plugin": "4.5.0",
"fs-blob-store": "6.0.0",
"hyperid": "3.1.1",
"make-promises-safe": "5.1.0",
"pino": "6.13.3",
"pino-pretty": "9.1.1",
"s3-blob-store": "4.1.1",
"tslib": "2.5.0"
"s3-blob-store": "4.1.1"
},
"devDependencies": {
"@biomejs/biome": "1.1.2",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@commitlint/prompt": "^17.1.2",
"@biomejs/biome": "1.2.2",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@commitlint/prompt": "^17.7.1",
"@ducktors/tsconfig": "^1.0.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.1.0",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@types/node": "^18.17.9",
"@types/tap": "^15.0.5",
"commitizen": "^4.2.5",
"@types/node": "^20.6.3",
"c8": "^8.0.1",
"commitizen": "^4.3.0",
"commitlint-config-cz": "^0.13.3",
"commitlint-plugin-function-rules": "^1.7.1",
"coveralls": "^3.1.1",
"cross-env": "^7.0.3",
"commitlint-plugin-function-rules": "^2.0.2",
"cz-conventional-changelog": "^3.3.0",
"dotenv": "^16.0.3",
"fastify-tsconfig": "^2.0.0",
"husky": "^8.0.3",
"npm-run-all": "^4.1.5",
"rimraf": "^4.1.2",
"s3rver": "^3.7.1",
"semantic-release": "^20.1.3",
"tap": "^16.3.8",
"ts-node": "^10.4.0",
"tsx": "^3.12.9",
"typescript": "^5.2.2"
},
"bugs": {
"url": "https://github.com/ducktors/turborepo-remote-cache/issues"
},
"homepage": "https://github.com/ducktors/turborepo-remote-cache#readme",
"directories": {
"test": "test"
},
"engines": {
"node": ">=16.20"
"node": ">=18.0.0"
},
"packageManager": "[email protected]",
"keywords": [
"turborepo",
"monorepo",
"remote",
"cache"
],
"files": [
"build",
"vercel.json"
]
"keywords": ["turborepo", "monorepo", "remote", "cache"],
"files": ["dist", "vercel.json"]
}
Loading

0 comments on commit 61f018a

Please sign in to comment.