mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
c6d7ebefdd
* feat: add generated lookup-map * feat: wire up fast getEntryBySlug() lookup * fix: consider frontmatter slugs * chore: changeset * chore: lint no-shadow * fix: revert bad rootRelativePath change * chore: better var name * refactor: generated `.json` to in-memory map * chore: removed unneeded await Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * chore: removed unneeded await Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * Revert "chore: removed unneeded await" This reverts commit1b0a8b00c2
. * fix: bad `GetEntryImport` type * chore: remove unused variable * refactor: for -> Promise.all * refactor: replace duplicate parseSlug * refactor: add cache layer * Revert "refactor: add cache layer" This reverts commit1c3bfdc6b3
. * feat: json collection POC * wip: add test json file * wip: playing with api ideas * refactor: extract getCollectionName * feat: add defineDataCollection * refactor: variable destructure * wip: basic data entry pipeline * chore: revert fixture playing * wip: basic entry array parser * feat: basic data type gen * chore: add with-data playground * feat: add error when `defineDataCollection()` isn't used * fix: missing error message * feat: data collections are here! * wip: play with data query APIs * feat: reference() util! * fix: Markdoc `$entry` variable * play: add reference util with markdoc * chore: delete console logs * feat: `src/data/`! * feat: reference() errors * fix: handle hoisted schema parse errors * fix: reload config and invalid on collection changes * feat: separate maps for content and data entries * feat: new `reference()` API that fixes type inference * feat: support `defineCollection()` for data config * fix: defineCollection `type` inferenenceπinference * chore: lock * feat: getCollection() for everything! * feat: get full entry access from reference() * chore: changeset * wip: type error on acorn? * chore: lint * chore: add slugger to data ID processing * chore: astro/zod -> zod * chore: example version * chore: remove slugifier from data id * chore: remove dead getDataCollection * chore: remove dead defineDataCollection * fix: bad collection import * chore: lock * feat: add data collections to lookup map * refactor: stop resolving data from reference * feat: introduce getEntry and new reference() * fix: update config loader * fix: reference() type * feat: test self references (they work 🎉) * fix: use `slug` for content references * fix: bad getEntry content type * chroe: remove console logs * fix: strict null checks on with-data * feat: add getEntries for ref arrays * chore: fix type hints for reference strings * chore: change to type never for clarity * play: try getEntries * Return to "everything goes in `src/content/` This reverts commit cc637ec6db4fc23afab585df5f240b7f7c0abc8a. * fix: remove old function * chore: update to AstroErrors * chore: remove unused fixture files * play: names * deps: js-yaml * feat: data collection YAML with error handling * refactor: remove console log * refactor: code cleanup * fix: allow mixed content to pass through glob imports * chore: move lookupMap util to virtual-mod * refactor: new lookupMap logic, better errors * chore: change MixedContent title * refactor: remove unneeded try / catch * fix: use `ws.send` for type gen errors * fix: bubble `ws.send` errors from astro sync * refactor: revert verbose astroContentCollectionEntry * fix: bad with-data package name * fix: bad virtual mod flag * chore: remove with-data playground * test: data collection authors * test: translations data collection * fix: add `.yml` support * refactor: mix in `.yaml` just for fun * refactor: i18n -> translations * chore: content-collection-references fixture * chore: bad lockfile * fix: bad ContentLookupMap import * chore: revert back to astroContentCollectionEntry * test: collection references * fix: bad error code override * chore: remove unused asset * test: sync errors * chore: remove stray console log * chore: lock * chore: revert with-markdoc changes * chore: doc error states, remove bad merge code * chore: remove bad `as any` * chore: lint * chore: inline ContentLookupMap comments * chore: settings -> config * fix: put back `defineCollection()` * fix: entry.slug for get content collection * chore: update get-entry-type tests * docs: totally shorten "missing a `type`" Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * docs: truncate share a `schema` Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * chore: add `test:unit` and `test:unit:match`to base * chore: update changeset * refactor: cleanup runtime types and inline comments * nit: [0] instead of shift() * refactor: `getRelativeEntryPath()` util * chore: capitalized Collections for test:match * nit: ?? viteId on split * nit: separate Params obj * chore: add try / catch on readFile * nit: `const data` * chore: clean up data collection exceptions * nit: `?? ''` for search params * chore: remove TODO on hoisted error --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
99 lines
3.4 KiB
JSON
99 lines
3.4 KiB
JSON
{
|
|
"name": "root",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/withastro/astro.git"
|
|
},
|
|
"scripts": {
|
|
"release": "pnpm run build && changeset publish",
|
|
"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/*\"",
|
|
"build:examples": "turbo run build --filter=\"@example/*\"",
|
|
"dev": "turbo run dev --parallel --filter=astro --filter=create-astro --filter=\"@astrojs/*\" --filter=\"@benchmark/*\"",
|
|
"format": "pnpm run format:code",
|
|
"format:ci": "pnpm run format:imports && pnpm run format:code",
|
|
"format:code": "prettier -w . --cache --plugin-search-dir=.",
|
|
"format:imports": "organize-imports-cli ./packages/*/tsconfig.json ./packages/*/*/tsconfig.json",
|
|
"test": "turbo run test --concurrency=1 --filter=astro --filter=create-astro --filter=\"@astrojs/*\"",
|
|
"test:match": "cd packages/astro && pnpm run test:match",
|
|
"test:unit": "cd packages/astro && pnpm run test:unit",
|
|
"test:unit:match": "cd packages/astro && pnpm run test:unit:match",
|
|
"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",
|
|
"test:check-examples": "node ./scripts/smoke/check.js",
|
|
"test:vite-ci": "turbo run test --filter=astro",
|
|
"test:e2e": "cd packages/astro && pnpm playwright install && pnpm run test:e2e",
|
|
"test:e2e:match": "cd packages/astro && pnpm playwright install && pnpm run test:e2e:match",
|
|
"benchmark": "astro-benchmark",
|
|
"lint": "eslint --cache .",
|
|
"version": "changeset version && pnpm install --no-frozen-lockfile && pnpm run format",
|
|
"preinstall": "npx only-allow pnpm"
|
|
},
|
|
"workspaces": [
|
|
"packages/markdown/*",
|
|
"packages/integrations/*",
|
|
"packages/*"
|
|
],
|
|
"engines": {
|
|
"node": ">=16.12.0",
|
|
"pnpm": ">=8.2.0"
|
|
},
|
|
"packageManager": "pnpm@8.2.0",
|
|
"pnpm": {
|
|
"packageExtensions": {
|
|
"svelte2tsx": {
|
|
"peerDependenciesMeta": {
|
|
"typescript": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"overrides": {
|
|
"tsconfig-resolver>type-fest": "3.0.0"
|
|
},
|
|
"peerDependencyRules": {
|
|
"ignoreMissing": [
|
|
"rollup",
|
|
"@babel/core",
|
|
"@babel/plugin-transform-react-jsx",
|
|
"vite",
|
|
"react",
|
|
"react-dom",
|
|
"@types/react"
|
|
],
|
|
"allowAny": [
|
|
"astro"
|
|
]
|
|
},
|
|
"patchedDependencies": {
|
|
"@changesets/cli@2.26.1": "patches/@changesets__cli@2.26.1.patch"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/webapi": "workspace:*",
|
|
"astro-benchmark": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@changesets/changelog-github": "0.4.8",
|
|
"@changesets/cli": "2.26.1",
|
|
"@types/node": "^18.7.21",
|
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
"@typescript-eslint/parser": "^5.58.0",
|
|
"esbuild": "^0.17.12",
|
|
"eslint": "^8.38.0",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-plugin-no-only-tests": "^2.6.0",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"only-allow": "^1.1.1",
|
|
"organize-imports-cli": "^0.10.0",
|
|
"prettier": "^2.8.8",
|
|
"prettier-plugin-astro": "^0.8.0",
|
|
"tiny-glob": "^0.2.9",
|
|
"turbo": "^1.9.3",
|
|
"typescript": "~5.0.2"
|
|
}
|
|
}
|