turborepo-remote-cache 1.3.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +12 -0
  2. package/build/cli.js +0 -0
  3. package/package.json +16 -16
package/README.md CHANGED
@@ -79,6 +79,18 @@ For example:
79
79
  //...
80
80
  ```
81
81
 
82
+ ### Enable remote caching in Docker
83
+ For some reason, the `.turbo/config.json` is not working in Docker containers. In order to enable remote caching in Docker, you need to pass the configuration via CLI arguments.
84
+
85
+ ```json
86
+ "build": "turbo run build --team=\"team_awesome\" --token=\"turbotoken\" --api=\"https://your-caching.server.dev\"",
87
+ ```
88
+ and add this to your `Dockerfile` before calling the `turbo run build` command:
89
+ ```docker
90
+ ENV VERCEL_ARTIFACTS_TOKEN=turbotoken
91
+ ENV VERCEL_ARTIFACTS_OWNER=team_awesome
92
+ ```
93
+
82
94
  ## Deploy on Vercel
83
95
  The server can be easily deployed as Vercel Function using the deploy button.
84
96
 
package/build/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turborepo-remote-cache",
3
- "version": "1.3.0",
3
+ "version": "1.5.1",
4
4
  "description": "Turborepo remote cache server",
5
5
  "main": "build",
6
6
  "author": "Maksim Sinik <maksim@sinik.it>",
@@ -8,19 +8,6 @@
8
8
  "bin": {
9
9
  "turborepo-remote-cache": "./build/cli.js"
10
10
  },
11
- "scripts": {
12
- "prebuild": "npm run lint && rimraf ./build",
13
- "build": "tsc -p ./tsconfig.json",
14
- "start": "node --enable-source-maps build/index.js",
15
- "update": "npx npm-check -u",
16
- "lint": "eslint --ext .ts --no-error-on-unmatched-pattern \"src/**/*.ts\" \"test/**/*.ts\"",
17
- "dev": "tsup --watch --onSuccess \"run-p dev:start check:types\"",
18
- "dev:start": "node --inspect -r @cspotcode/source-map-support/register -r dotenv/config build/index.js",
19
- "check:types": "tsc -p ./tsconfig.json --noEmit",
20
- "test": "cross-env TS_NODE_PROJECT=./test/tsconfig.json tap --ts",
21
- "test:watch": "npm run test -- --watch",
22
- "test:report": "npm run test -- --output-file=out.tap && tap-mocha-reporter xunit < out.tap > junit-testresults.xml"
23
- },
24
11
  "repository": {
25
12
  "type": "git",
26
13
  "url": "git+https://github.com/fox1t/turborepo-remote-cache.git"
@@ -89,5 +76,18 @@
89
76
  "files": [
90
77
  "build",
91
78
  "vercel.json"
92
- ]
93
- }
79
+ ],
80
+ "scripts": {
81
+ "prebuild": "npm run lint && rimraf ./build",
82
+ "build": "tsc -p ./tsconfig.json",
83
+ "start": "node --enable-source-maps build/index.js",
84
+ "update": "npx npm-check -u",
85
+ "lint": "eslint --ext .ts --no-error-on-unmatched-pattern \"src/**/*.ts\" \"test/**/*.ts\"",
86
+ "dev": "tsup --watch --onSuccess \"run-p dev:start check:types\"",
87
+ "dev:start": "node --inspect -r @cspotcode/source-map-support/register -r dotenv/config build/index.js",
88
+ "check:types": "tsc -p ./tsconfig.json --noEmit",
89
+ "test": "cross-env TS_NODE_PROJECT=./test/tsconfig.json tap --ts",
90
+ "test:watch": "npm run test -- --watch",
91
+ "test:report": "npm run test -- --output-file=out.tap && tap-mocha-reporter xunit < out.tap > junit-testresults.xml"
92
+ }
93
+ }