Skip to content

Commit

Permalink
chore: update dependencies, exports, tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianCataldo committed Oct 26, 2024
1 parent ad21d81 commit 6a3bb13
Show file tree
Hide file tree
Showing 22 changed files with 186 additions and 113 deletions.
15 changes: 15 additions & 0 deletions code-line-counts.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,18 @@ SUM: 59 518 874 2123
-------------------------------------------------------------------------------
```

# 10/25/24

```
github.com/AlDanial/cloc v 2.00 T=0.05 s (1383.7 files/s, 76361.8 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
TypeScript 69 565 974 2269
-------------------------------------------------------------------------------
SUM: 69 565 974 2269
-------------------------------------------------------------------------------
```
18 changes: 16 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,20 @@ export default [
{
languageOptions: {
parserOptions: {
project: ['./packages/**/*/tsconfig.json'],
project: [
'./packages/gracile/tsconfig.json',
'./packages/client/tsconfig.json',
'./packages/server/tsconfig.json',
'./packages/engine/tsconfig.json',
// './packages/cli/tsconfig.json',
'./packages/create-gracile/tsconfig.json',
'./packages/internal/utils/tsconfig.json',
'./packages/addons/metadata/tsconfig.json',
'./packages/addons/svg/tsconfig.json',
'./packages/addons/sitemap/tsconfig.json',
'./packages/addons/markdown/tsconfig.json',
'./packages/addons/markdown-preset-marked/tsconfig.json',
],
tsconfigRootDir: import.meta.dirname,
},
},
Expand Down Expand Up @@ -103,7 +116,8 @@ export default [

{
ignores: [
'packages/labs',
'**/packages/labs',
'**/packages/cli',
'pnpm-lock.yaml',
'**/integration',
// '**/integration/**/*_expected*',
Expand Down
2 changes: 1 addition & 1 deletion integration/__fixtures__/static-site/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"experimentalDecorators": true,
"useDefineForClassFields": false
},
"include": ["src/**/*.js", "src/**/*.ts" /* , "_vite.config.ts" */]
"include": ["src/**/*.js", "src/**/*.ts"]
}
52 changes: 26 additions & 26 deletions integration/manual-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,33 @@ pnpm tsx --test -C test src/template-failure.test.ts
pnpm tsx --test -C test src/build-mode/project-core.test.ts

pnpm tsx --test -C test --test-concurrency=1,1 \
src/addons/markdown.test.ts \
src/addons/metadata.test.ts \
src/addons/svg.test.ts \
src/assets.test.ts \
src/build-mode/project-core.test.ts \
src/custom-elements.test.ts \
src/exports.test.ts \
src/polyfills.test.ts \
src/routes-torture.test.ts \
src/routes.test.ts \
src/server-express/01-build.test.ts \
src/server-express/02-runs-after-build.test.ts \
src/server-express/dev-all-around.test.ts
src/addons/markdown.test.ts \
src/addons/metadata.test.ts \
src/addons/svg.test.ts \
src/assets.test.ts \
src/build-mode/project-core.test.ts \
src/custom-elements.test.ts \
src/exports.test.ts \
src/polyfills.test.ts \
src/routes-torture.test.ts \
src/routes.test.ts \
src/server-express/01-build.test.ts \
src/server-express/02-runs-after-build.test.ts \
src/server-express/dev-all-around.test.ts

pnpm tsx --test -C test src/addons/markdown.test.ts \
src/server-express/build.test.ts \
src/polyfills.test.ts
src/server-express/build.test.ts \
src/polyfills.test.ts

pnpm tsx --test -C test \
src/addons/markdown.test.ts \
src/addons/svg.test.ts \
src/routes.test.ts \
src/addons/metadata.test.ts \
src/assets.test.ts \
src/custom-elements.test.ts \
src/routes-torture.test.ts \
src/server-express/dev-all-around.test.ts \
src/build-mode/project-core.test.ts \
src/server-express/build.test.ts \
src/polyfills.test.ts
src/addons/markdown.test.ts \
src/addons/svg.test.ts \
src/routes.test.ts \
src/addons/metadata.test.ts \
src/assets.test.ts \
src/custom-elements.test.ts \
src/routes-torture.test.ts \
src/server-express/dev-all-around.test.ts \
src/build-mode/project-core.test.ts \
src/server-express/build.test.ts \
src/polyfills.test.ts
24 changes: 12 additions & 12 deletions integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@
"@gracile/metadata": "workspace:^",
"@gracile/server": "workspace:^",
"@gracile/svg": "workspace:^",
"@hono/node-server": "^1.12.0",
"@hono/node-server": "^1.13.2",
"@lit-labs/ssr": "^3.2.2",
"@lit-labs/ssr-client": " ^1.1.7",
"@lit-labs/ssr-client": "^1.1.7",
"cheerio": "1.0.0",
"express": "4.x.x",
"hono": "^4.5.8",
"express": "^5.0.0",
"hono": "^4.6.6",
"import-meta-resolve": "^4.1.0",
"lit": "^3.1.3",
"prettier": "^3.2.5",
"snapshot-fixtures": "^1.1.0",
"vite": "^5.3.5"
"lit": "^3.2.1",
"prettier": "^3.3.3",
"snapshot-fixtures": "^1.2.0",
"vite": "^5.4.10"
},
"devDependencies": {
"@gracile/internal-tsconfigs": "workspace:^",
"@types/express": "^4.x.x",
"@types/node": "^22.5.0",
"tsx": "^4.7.2",
"typescript": "5.5.4"
"@types/express": "^5.0.0",
"@types/node": "^22.8.1",
"tsx": "^4.19.1",
"typescript": "5.6.3"
}
}
2 changes: 1 addition & 1 deletion integration/src/exports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as route from '@gracile/gracile/_internals/route';
import * as routeModule from '@gracile/gracile/_internals/route-module';
import * as serverRuntime from '@gracile/gracile/_internals/server-runtime';
import * as document from '@gracile/gracile/document';
import { nodeCondition } from '@gracile/gracile/env';
import { nodeCondition } from '@gracile/gracile/node-condition';
import * as hono from '@gracile/gracile/hono';
import * as node from '@gracile/gracile/node';
import * as plugin from '@gracile/gracile/plugin';
Expand Down
8 changes: 4 additions & 4 deletions packages/addons/markdown-preset-marked/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
"dependencies": {
"@gracile/markdown": "workspace:^",
"github-slugger": "^2.0.0",
"marked": "14.0.0",
"marked-gfm-heading-id": "^4.0.0",
"marked": "14.1.3",
"marked-gfm-heading-id": "^4.1.0",
"ultramatter": "^0.0.4"
},
"devDependencies": {
"@gracile/internal-tsconfigs": "workspace:^",
"@types/node": "^20.14.8",
"typescript": "5.5.4"
"@types/node": "^22.8.1",
"typescript": "5.6.3"
},
"peerDependencies": {
"lit": "^3.1.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/addons/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
},
"devDependencies": {
"@gracile/internal-tsconfigs": "workspace:^",
"@types/node": "^20.14.8",
"typescript": "5.5.4"
"@types/node": "^22.8.1",
"typescript": "5.6.3"
},
"peerDependencies": {
"lit": "^3.1.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/addons/metadata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
"dependencies": {
"@gracile/internal-utils": "workspace:^",
"@lit-labs/ssr": "^3.2.2",
"lit": "^3.1.3"
"lit": "^3.2.1"
},
"devDependencies": {
"@gracile/internal-tsconfigs": "workspace:^",
"@types/node": "^20.14.8",
"typescript": "5.5.4"
"@types/node": "^22.8.1",
"typescript": "5.6.3"
},
"publishConfig": {
"access": "public",
Expand Down
6 changes: 3 additions & 3 deletions packages/addons/sitemap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
},
"dependencies": {
"@gracile/internal-utils": "workspace:^",
"picocolors": "^1.0.1",
"picocolors": "^1.1.1",
"sitemap": "8.0.0"
},
"devDependencies": {
"@gracile/internal-tsconfigs": "workspace:^",
"@types/node": "^20.14.8",
"typescript": "5.5.4"
"@types/node": "^22.8.1",
"typescript": "5.6.3"
},
"peerDependencies": {
"vite": "^5.3.5"
Expand Down
6 changes: 3 additions & 3 deletions packages/addons/svg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
},
"dependencies": {
"@gracile/internal-utils": "workspace:^",
"svgo": "^3.2.0"
"svgo": "^3.3.2"
},
"devDependencies": {
"@gracile/internal-tsconfigs": "workspace:^",
"@types/node": "^20.14.8",
"typescript": "5.5.4"
"@types/node": "^22.8.1",
"typescript": "5.6.3"
},
"peerDependencies": {
"lit": "^3.1.3",
Expand Down
12 changes: 6 additions & 6 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
"dev": "tsc --watch"
},
"dependencies": {
"@lit-labs/ssr-client": " ^1.1.7"
"@gracile/engine": "workspace:^",
"@lit-labs/ssr": "^3.2.2",
"@lit-labs/ssr-client": "^1.1.7",
"urlpattern-polyfill": "^10.0.0"
},
"devDependencies": {
"@gracile/internal-tsconfigs": "workspace:^",
"tsx": "^4.7.2",
"typescript": "5.5.4"
},
"peerDependencies": {
"@lit-labs/ssr": "^3.2.2"
"tsx": "^4.19.1",
"typescript": "5.6.3"
},
"publishConfig": {
"access": "public",
Expand Down
10 changes: 5 additions & 5 deletions packages/create-gracile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@
},
"dependencies": {
"@clack/prompts": "^0.7.0",
"@commander-js/extra-typings": "^12.0.1",
"commander": "^12.0.0",
"@commander-js/extra-typings": "^12.1.0",
"commander": "^12.1.0",
"conf": "^13.0.1",
"latest-version": "^9.0.0",
"picocolors": "^1.0.1",
"picocolors": "^1.1.1",
"random-words": "^2.0.1"
},
"devDependencies": {
"@gracile/internal-tsconfigs": "workspace:^",
"@gracile/internal-utils": "workspace:^",
"@types/degit": "^2.8.6",
"@types/node": "^20.14.8",
"@types/node": "^22.8.1",
"cli-testing-library": "^2.0.2",
"typescript": "5.5.4"
"typescript": "5.6.3"
},
"publishConfig": {
"access": "public",
Expand Down
19 changes: 9 additions & 10 deletions packages/engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,21 @@
},
"dependencies": {
"@gracile-labs/better-errors": "workspace:^",
"@gracile/client": "workspace:^",
"@gracile/internal-utils": "workspace:^",
"@whatwg-node/server": "^0.9.25",
"fdir": "^6.2.0",
"picocolors": "^1.0.1",
"@whatwg-node/server": "^0.9.50",
"fdir": "^6.4.2",
"picocolors": "^1.1.1",
"urlpattern-polyfill": "^10.0.0",
"vite": "^5.3.5"
"vite": "^5.4.10"
},
"devDependencies": {
"@gracile/internal-tsconfigs": "workspace:^",
"@types/express": "^4.x.x",
"@types/node": "^20.14.8",
"@types/express": "5.0.0",
"@types/node": "^22.8.1",
"c8": "^10.1.2",
"sinon": "^18.0.0",
"tsx": "^4.7.2",
"typescript": "5.5.4"
"sinon": "19.0.2",
"tsx": "^4.19.1",
"typescript": "5.6.3"
},
"peerDependencies": {
"@lit-labs/ssr": "^3.2.2",
Expand Down
6 changes: 5 additions & 1 deletion packages/engine/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"extends": "@gracile/internal-tsconfigs/config-base.json"
"extends": "@gracile/internal-tsconfigs/config-base.json",

"compilerOptions": {
"rootDir": "./src"
}
}
8 changes: 3 additions & 5 deletions packages/gracile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"type": "module",
"exports": {
"./*": "./dist/*.js",
"./ambient": {
"types": "./ambient.d.ts"
},
"./ambient": "./ambient.d.ts",
"./tsconfigs/*": "./tsconfigs/*.json",
"./tsconfigs/*.json": "./tsconfigs/*"
},
Expand Down Expand Up @@ -63,8 +61,8 @@
},
"devDependencies": {
"@gracile/internal-tsconfigs": "workspace:^",
"@types/node": "^20.14.8",
"typescript": "5.5.4"
"@types/node": "^22.8.1",
"typescript": "5.6.3"
},
"publishConfig": {
"access": "public",
Expand Down
1 change: 0 additions & 1 deletion packages/gracile/src/node-condition.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line unicorn/prevent-abbreviations
export { nodeCondition } from '@gracile/internal-utils/node-condition/production-ssr';
8 changes: 5 additions & 3 deletions packages/internal/tsconfigs/config-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"module": "ESNext",
"target": "ES2022",

"lib": ["ES2022", "DOM"],
"lib": ["ES2022", "DOM", "DOM.Iterable"],

"strict": true,

Expand All @@ -12,7 +12,7 @@

"moduleResolution": "Bundler",

"incremental": true,
"incremental": false,

"noUncheckedIndexedAccess": true,
"verbatimModuleSyntax": true,
Expand All @@ -26,5 +26,7 @@
"outDir": "${configDir}/dist"
},

"include": ["${configDir}/src/**/*", "${configDir}/ambient.d.ts"]
"include": ["${configDir}/src/**/*", "${configDir}/ambient.d.ts"],

"exclude": ["**/dist/**/*", "**/coverage/**/*"]
}
2 changes: 1 addition & 1 deletion packages/internal/tsconfigs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "module",
"files": [],
"devDependencies": {
"typescript": "5.5.4"
"typescript": "5.6.3"
},
"publishConfig": {
"access": "public",
Expand Down
Loading

0 comments on commit 6a3bb13

Please sign in to comment.