Skip to content

Commit 6f68b30

Browse files
author
theGrep01
committed
chore: update package configuration
1 parent 56fabe5 commit 6f68b30

File tree

6 files changed

+21
-33
lines changed

6 files changed

+21
-33
lines changed

packages/metro-core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"repository": {
2121
"type": "git",
22-
"url": "https://github.com/module-federation/metro",
22+
"url": "https://github.com/module-federation/core",
2323
"directory": "packages/metro-core"
2424
},
2525
"files": [
@@ -55,8 +55,8 @@
5555
},
5656
"dependencies": {
5757
"@expo/metro-runtime": "^5.0.4",
58-
"@module-federation/runtime": "^0.15.0",
59-
"@module-federation/sdk": "^0.15.0"
58+
"@module-federation/runtime": "workspace:*",
59+
"@module-federation/sdk": "workspace:*"
6060
},
6161
"peerDependencies": {
6262
"@babel/types": "^7.25.0",

packages/metro-core/project.json

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,12 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/metro-core/src",
55
"projectType": "library",
6-
"release": {
7-
"version": {
8-
"manifestRootsToUpdate": ["dist/{projectRoot}"],
9-
"currentVersionResolver": "git-tag",
10-
"fallbackCurrentVersionResolver": "disk"
11-
}
12-
},
13-
"tags": [],
6+
"tags": ["type:pkg"],
147
"targets": {
158
"build": {
16-
"executor": "@nx/js:tsc",
17-
"outputs": ["{options.outputPath}"],
18-
"options": {
19-
"outputPath": "dist/packages/metro-core",
20-
"main": "packages/metro-core/src/index.ts",
21-
"tsConfig": "packages/metro-core/tsconfig.lib.json",
22-
"assets": ["packages/metro-core/*.md"]
23-
}
24-
},
25-
"nx-release-publish": {
9+
"executor": "nx:run-commands",
2610
"options": {
27-
"packageRoot": "dist/{projectRoot}"
11+
"commands": ["pnpm build"]
2812
}
2913
},
3014
"lint": {

packages/metro-core/src/plugin/normalize-options.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ function getNormalizedShared(
4848
// default requiredVersion
4949
for (const sharedName of Object.keys(shared)) {
5050
if (!shared[sharedName].requiredVersion) {
51-
// @ts-expect-error - TODO fix this
5251
shared[sharedName].requiredVersion =
5352
pkg.dependencies?.[sharedName] || pkg.devDependencies?.[sharedName];
5453
}

packages/metro-plugin-rnc-cli/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/metro-plugin-rnc-cli/",
55
"projectType": "library",
6-
"tags": [],
6+
"tags": ["type:pkg"],
77
"targets": {
88
"lint": {
99
"executor": "@nx/eslint:lint"

packages/metro-plugin-rnef/project.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "packages/metro-plugin-rnef/src",
55
"projectType": "library",
6-
"tags": [],
6+
"tags": ["type:pkg"],
77
"targets": {
8+
"build": {
9+
"executor": "nx:run-commands",
10+
"outputs": ["{workspaceRoot}/packages/metro-plugin-rnef/dist"],
11+
"options": {
12+
"commands": ["pnpm build"]
13+
}
14+
},
815
"lint": {
916
"executor": "@nx/eslint:lint"
1017
},

pnpm-lock.yaml

Lines changed: 6 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)