Skip to content

Commit

Permalink
fix(enhanced): schema precompile & generation (#3454)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedAlchemy authored Feb 5, 2025
1 parent 81fcc19 commit 073fe82
Show file tree
Hide file tree
Showing 28 changed files with 9,821 additions and 2,072 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"changegen": "./changeset-gen.js --path ./packages/enhanced --staged && ./changeset-gen.js --path ./packages/node --staged && ./changeset-gen.js --path ./packages/runtime --staged && ./changeset-gen.js --path ./packages/data-prefetch --staged && ./changeset-gen.js --path ./packages/nextjs-mf --staged && ./changeset-gen.js --path ./packages/dts-plugin --staged",
"commitgen:staged": "./commit-gen.js --path ./packages --staged",
"commitgen:main": "./commit-gen.js --path ./packages",
"changeset:status": "changeset status"
"changeset:status": "changeset status",
"generate:schema": "nx run enhanced:generate:schema && nx format:write"
},
"pnpm": {
"packageExtensions": {
Expand Down
26 changes: 14 additions & 12 deletions packages/enhanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"access": "public"
},
"peerDependencies": {
"webpack": "^5.0.0",
"typescript": "^4.9.0 || ^5.0.0",
"vue-tsc": ">=1.0.24"
"vue-tsc": ">=1.0.24",
"webpack": "^5.0.0"
},
"peerDependenciesMeta": {
"webpack": {
Expand Down Expand Up @@ -81,20 +81,22 @@
"devDependencies": {
"@module-federation/webpack-bundler-runtime": "workspace:*",
"@types/btoa": "^1.2.5",
"enhanced-resolve": "^5.0.0"
"ajv": "^8.17.1",
"enhanced-resolve": "^5.0.0",
"terser": "^5.37.0"
},
"dependencies": {
"@module-federation/sdk": "workspace:*",
"@module-federation/runtime-tools": "workspace:*",
"@module-federation/manifest": "workspace:*",
"@module-federation/managers": "workspace:*",
"@module-federation/error-codes": "workspace:*",
"@module-federation/dts-plugin": "workspace:*",
"@module-federation/rspack": "workspace:*",
"@module-federation/bridge-react-webpack-plugin": "workspace:*",
"@module-federation/data-prefetch": "workspace:*",
"@module-federation/dts-plugin": "workspace:*",
"@module-federation/error-codes": "workspace:*",
"@module-federation/inject-external-runtime-core-plugin": "workspace:*",
"upath": "2.0.1",
"btoa": "^1.2.1"
"@module-federation/managers": "workspace:*",
"@module-federation/manifest": "workspace:*",
"@module-federation/rspack": "workspace:*",
"@module-federation/runtime-tools": "workspace:*",
"@module-federation/sdk": "workspace:*",
"btoa": "^1.2.1",
"upath": "2.0.1"
}
}
7 changes: 7 additions & 0 deletions packages/enhanced/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"projectType": "library",
"tags": ["type:pkg"],
"targets": {
"generate:schema": {
"executor": "nx:run-commands",
"options": {
"command": "node src/scripts/compile-schema.js",
"cwd": "packages/enhanced"
}
},
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{workspaceRoot}/packages/enhanced/dist"],
Expand Down
Loading

0 comments on commit 073fe82

Please sign in to comment.