2021-03-15 17:22:05 +00:00
|
|
|
{
|
2021-04-30 21:33:35 +00:00
|
|
|
"name": "root",
|
2021-05-05 17:44:31 +00:00
|
|
|
"version": "0.0.0",
|
2021-04-30 21:33:35 +00:00
|
|
|
"private": true,
|
2021-06-16 18:09:35 +00:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2021-11-23 22:47:05 +00:00
|
|
|
"url": "https://github.com/withastro/astro.git"
|
2021-06-16 18:09:35 +00:00
|
|
|
},
|
2021-03-15 17:22:05 +00:00
|
|
|
"scripts": {
|
2022-04-04 22:22:36 +00:00
|
|
|
"release": "pnpm run build && changeset publish",
|
2023-04-27 03:39:15 +00:00
|
|
|
"build": "turbo run build --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"",
|
|
|
|
"build:ci": "turbo run build:ci --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"",
|
2022-08-05 21:18:56 +00:00
|
|
|
"build:examples": "turbo run build --filter=\"@example/*\"",
|
2023-04-27 03:39:15 +00:00
|
|
|
"dev": "turbo run dev --parallel --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"",
|
2022-06-06 16:47:28 +00:00
|
|
|
"format": "pnpm run format:code",
|
|
|
|
"format:ci": "pnpm run format:imports && pnpm run format:code",
|
2022-08-06 04:36:31 +00:00
|
|
|
"format:code": "prettier -w . --cache --plugin-search-dir=.",
|
2022-06-06 16:47:28 +00:00
|
|
|
"format:imports": "organize-imports-cli ./packages/*/tsconfig.json ./packages/*/*/tsconfig.json",
|
2023-04-27 03:39:15 +00:00
|
|
|
"test": "turbo run test --concurrency=1 --filter=astro --filter=create-astro --filter=\"@astrojs/*\"",
|
2022-03-08 21:46:11 +00:00
|
|
|
"test:match": "cd packages/astro && pnpm run test:match",
|
2023-04-27 03:39:15 +00:00
|
|
|
"test:smoke": "pnpm test:smoke:example && pnpm test:smoke:docs",
|
|
|
|
"test:smoke:example": "turbo run build --concurrency=100% --filter=\"@example/*\"",
|
|
|
|
"test:smoke:docs": "turbo run build --filter=docs",
|
2022-10-12 12:48:29 +00:00
|
|
|
"test:check-examples": "node ./scripts/smoke/check.js",
|
2023-04-27 03:39:15 +00:00
|
|
|
"test:vite-ci": "turbo run test --filter=astro",
|
2022-05-15 21:47:28 +00:00
|
|
|
"test:e2e": "cd packages/astro && pnpm playwright install && pnpm run test:e2e",
|
2022-05-23 16:56:45 +00:00
|
|
|
"test:e2e:match": "cd packages/astro && pnpm playwright install && pnpm run test:e2e:match",
|
2023-03-01 08:46:06 +00:00
|
|
|
"benchmark": "astro-benchmark",
|
2022-10-17 14:32:20 +00:00
|
|
|
"lint": "eslint --cache .",
|
2022-10-24 18:17:23 +00:00
|
|
|
"version": "changeset version && pnpm install --no-frozen-lockfile && pnpm run format",
|
|
|
|
"preinstall": "npx only-allow pnpm"
|
2021-12-10 00:11:49 +00:00
|
|
|
},
|
2023-04-27 14:55:48 +00:00
|
|
|
"workspaces": [
|
|
|
|
"packages/markdown/*",
|
|
|
|
"packages/integrations/*",
|
|
|
|
"packages/*"
|
|
|
|
],
|
2022-03-09 18:36:56 +00:00
|
|
|
"engines": {
|
2023-03-06 18:57:16 +00:00
|
|
|
"node": ">=16.12.0",
|
2023-04-12 15:34:54 +00:00
|
|
|
"pnpm": ">=8.2.0"
|
2022-03-08 21:46:11 +00:00
|
|
|
},
|
2023-04-12 15:34:54 +00:00
|
|
|
"packageManager": "pnpm@8.2.0",
|
2022-03-08 21:46:11 +00:00
|
|
|
"pnpm": {
|
2022-07-08 21:47:01 +00:00
|
|
|
"packageExtensions": {
|
|
|
|
"svelte2tsx": {
|
|
|
|
"peerDependenciesMeta": {
|
|
|
|
"typescript": {
|
|
|
|
"optional": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2022-10-12 18:11:25 +00:00
|
|
|
"overrides": {
|
|
|
|
"tsconfig-resolver>type-fest": "3.0.0"
|
|
|
|
},
|
2022-03-08 21:46:11 +00:00
|
|
|
"peerDependencyRules": {
|
|
|
|
"ignoreMissing": [
|
2022-06-30 18:09:09 +00:00
|
|
|
"rollup",
|
2022-03-08 21:46:11 +00:00
|
|
|
"@babel/core",
|
2022-03-09 21:44:26 +00:00
|
|
|
"@babel/plugin-transform-react-jsx",
|
2022-07-18 20:00:00 +00:00
|
|
|
"vite",
|
|
|
|
"react",
|
|
|
|
"react-dom",
|
|
|
|
"@types/react"
|
2023-01-12 14:46:56 +00:00
|
|
|
],
|
|
|
|
"allowAny": [
|
|
|
|
"astro"
|
2022-03-08 21:46:11 +00:00
|
|
|
]
|
2022-07-07 17:52:53 +00:00
|
|
|
},
|
|
|
|
"patchedDependencies": {
|
2022-08-09 16:10:25 +00:00
|
|
|
"@changesets/cli@2.23.0": "patches/@changesets__cli@2.23.0.patch"
|
2022-03-08 21:46:11 +00:00
|
|
|
}
|
2021-03-15 17:22:05 +00:00
|
|
|
},
|
2022-03-09 18:36:56 +00:00
|
|
|
"dependencies": {
|
2023-03-01 08:46:06 +00:00
|
|
|
"@astrojs/webapi": "workspace:*",
|
|
|
|
"astro-benchmark": "workspace:*"
|
2022-03-09 18:36:56 +00:00
|
|
|
},
|
2021-03-15 17:22:05 +00:00
|
|
|
"devDependencies": {
|
2022-04-11 01:17:39 +00:00
|
|
|
"@changesets/changelog-github": "0.4.4",
|
2022-07-07 17:52:53 +00:00
|
|
|
"@changesets/cli": "2.23.0",
|
2022-05-12 16:42:34 +00:00
|
|
|
"@octokit/action": "^3.18.1",
|
2022-09-28 15:13:33 +00:00
|
|
|
"@types/node": "^18.7.21",
|
2023-04-13 17:08:54 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
|
|
"@typescript-eslint/parser": "^5.58.0",
|
`create-astro`: always create `tsconfig.json` (#4810)
* `create-astro`: always create `tsconfig.json`
Currently, we only make sure `tsconfig.json` exists when `strict` or `strictest` is selected. Both `default` & `optout` are intended to correspond to `base` -- and will do so for all [23 official templates](https://github.com/withastro/astro/tree/main/examples), but not necessarily for third-party templates.
The [example command for installing a third-party template](https://github.com/withastro/astro/blob/a800bf7/packages/create-astro/README.md?plain=1#L31-L35) is (rather conveniently for the sake of this PR!) an example of a template without a `tsconfig.json` file, and installing it with the `default` ("Relaxed") Typescript option results in no `tsconfig.json` file, rather than a `tsconfig.json` file containing `{ "extends": "astro/tsconfigs/base" }` as would be expected.
This PR addresses this scenario.
It also explicitly sets the `tsconfig.json` file to `{ "extends": "astro/tsconfigs/base" }` when `default` (which I renamed to `base`, still presented to the user as "Relaxed") or `optout` is selected (`optout` has always printed a warning about the importance of `tsconfig.json` & `src/env.d.ts` but otherwise behaved identically to `default`). This is necessary in two scenarios:
1. When the `tsconfig.json` file was created by this script.
2. When it either didn't already include `"extends"`, or it extended a different config by default. For example, some third-party templates might default to `strict`, in which case I'm guessing we'd want to respect the user's choice and change that to `base`.
* update `del` 6.1.1 --> 7.0.0
* test: prevent excess writes
(without this it triggers many times)
* test: create-astro typescript prompt
* changeset
* fix: recursive `mkdirSync`
* test: longer timeout for `windows-latest` OS
(see if this fixes failing tests)
* better glob path creation, don't hardcode `/`
* test: longer timeout for windows-latest OS
(since I'm about to trigger another CI run by pushing a commit, might as well try this too)
* create-astro test: show last CLI output on timeout
* drop variable timeout
Typescript tests are slower than directory tests, but they are all usually less than 5000 ms. Less complexity, easier to maintain.
* DRY new error output
* Update lockfile
* Sync lockfile with main
* Update lockfile
Co-authored-by: Princesseuh <princssdev@gmail.com>
2022-09-22 18:37:01 +00:00
|
|
|
"del": "^7.0.0",
|
2023-03-20 16:02:07 +00:00
|
|
|
"esbuild": "^0.17.12",
|
2023-04-13 17:08:54 +00:00
|
|
|
"eslint": "^8.38.0",
|
|
|
|
"eslint-config-prettier": "^8.8.0",
|
2022-06-22 15:59:49 +00:00
|
|
|
"eslint-plugin-no-only-tests": "^2.6.0",
|
2023-04-13 17:08:54 +00:00
|
|
|
"eslint-plugin-prettier": "^4.2.1",
|
2022-03-09 21:44:26 +00:00
|
|
|
"execa": "^6.1.0",
|
2022-12-16 19:19:53 +00:00
|
|
|
"only-allow": "^1.1.1",
|
2022-06-06 16:47:28 +00:00
|
|
|
"organize-imports-cli": "^0.10.0",
|
2023-04-13 17:08:54 +00:00
|
|
|
"prettier": "^2.8.7",
|
|
|
|
"prettier-plugin-astro": "^0.8.0",
|
2022-02-18 20:23:47 +00:00
|
|
|
"pretty-bytes": "^6.0.0",
|
2022-03-09 21:44:26 +00:00
|
|
|
"tiny-glob": "^0.2.9",
|
2023-04-27 03:39:15 +00:00
|
|
|
"turbo": "^1.9.3",
|
2023-03-20 16:02:07 +00:00
|
|
|
"typescript": "~5.0.2"
|
2022-03-08 21:46:11 +00:00
|
|
|
}
|
2021-06-11 20:34:45 +00:00
|
|
|
}
|