diff --git a/.gitignore b/.gitignore index 6ec5036cca78b..577fb05780f12 100644 --- a/.gitignore +++ b/.gitignore @@ -49,5 +49,6 @@ store !http_cache/cache/cache.go *.log .npmrc +!create-turbo/templates/**/* todos.md examples/*/*.lock diff --git a/create-turbo/__tests__/cli.test.ts b/create-turbo/__tests__/cli.test.ts index 39aef4d5b6239..3c95a39f3e665 100644 --- a/create-turbo/__tests__/cli.test.ts +++ b/create-turbo/__tests__/cli.test.ts @@ -25,7 +25,7 @@ describe("create-turbo cli", () => { beforeAll(() => { jest.setTimeout(DEFAULT_JEST_TIMEOUT * 3); if (!fs.existsSync(createTurbo)) { - // TODO: Consider runnuing the build here instead of throwing + // TODO: Consider running the build here instead of throwing throw new Error( `Cannot run Turbrepo CLI tests without building create-turbo` ); diff --git a/create-turbo/templates/_shared_ts/.npmrc b/create-turbo/templates/_shared_ts/.npmrc new file mode 100644 index 0000000000000..4fd021952d5a1 --- /dev/null +++ b/create-turbo/templates/_shared_ts/.npmrc @@ -0,0 +1 @@ +engine-strict=true \ No newline at end of file diff --git a/create-turbo/templates/_shared_ts/package.json b/create-turbo/templates/_shared_ts/package.json index 6aed7e8fe19af..dcf468f4c193e 100644 --- a/create-turbo/templates/_shared_ts/package.json +++ b/create-turbo/templates/_shared_ts/package.json @@ -34,5 +34,10 @@ "cache": false } } + }, + "engines": { + "npm": ">=7.0.0", + "pnpm": ">=3.7.0", + "node": ">=14.0.0" } } diff --git a/examples/with-pnpm/package.json b/examples/with-pnpm/package.json index 53652f7286d3a..fda247104b2d6 100644 --- a/examples/with-pnpm/package.json +++ b/examples/with-pnpm/package.json @@ -2,6 +2,11 @@ "name": "turborepo-with-pnpm", "version": "0.0.0", "private": true, + "scripts": { + "build": "turbo run build", + "dev": "turbo run dev --parallel", + "lint": "turbo run lint" + }, "devDependencies": { "turbo": "latest" }, @@ -18,6 +23,9 @@ }, "lint": { "outputs": [] + }, + "dev": { + "cache": false } } }