Skip to content

Commit 966c737

Browse files
zhoushawzhouxiao.shaw
and
zhouxiao.shaw
authored
chore(workflow): fix release pkg logic (#1800)
Co-authored-by: zhouxiao.shaw <[email protected]>
1 parent ffd3c0d commit 966c737

File tree

17 files changed

+65
-8
lines changed

17 files changed

+65
-8
lines changed

.changeset/chilly-colts-eat.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/utilities': patch
3+
---
4+
5+
fix: Fixed an anomaly in exports Settings that caused an inability

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
vite.config.ts
3+
**/dist/**

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: pnpm install
4949

5050
- name: Build and test Packages
51-
run: npx nx affected -t pre-release --parallel=3 --exclude='*,!tag:package' --base=origin/canary --head=${{ github.ref }}
51+
run: npx nx run-many --target=build --exclude='*,!tag:package'
5252

5353
- name: Release
5454
uses: web-infra-dev/actions@v2
@@ -89,7 +89,7 @@ jobs:
8989
- name: Build and test Packages
9090
run: |
9191
git fetch origin main
92-
npx nx affected -t pre-release --parallel=3 --exclude='*,!tag:package' --base=main --head=${{ github.ref }}
92+
npx nx run-many --target=build --exclude='*,!tag:package'
9393
9494
- name: Release
9595
uses: web-infra-dev/actions@v2

apps/node-host/project.json

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"main": "apps/node-host/src/main.js",
1616
"tsConfig": "apps/node-host/tsconfig.app.json",
1717
"assets": ["apps/node-host/src/assets"],
18-
"isolatedConfig": true,
1918
"webpackConfig": "apps/node-host/webpack.config.js"
2019
},
2120
"configurations": {

packages/core/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"name": "@module-federation/core",
3-
"version": "1.0.0-canary.1",
3+
"version": "0.0.1",
44
"type": "commonjs",
55
"main": "./dist/src/index.js",
66
"types": "./dist/src/index.d.ts",
7+
"files": [
8+
"dist/",
9+
"README.md"
10+
],
711
"license": "MIT",
812
"publishConfig": {
913
"access": "public"

packages/enhanced/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"type": "commonjs",
55
"main": "./dist/src/index.js",
66
"types": "./dist/src/index.d.ts",
7+
"files": [
8+
"dist/",
9+
"README.md"
10+
],
711
"publishConfig": {
812
"access": "public"
913
},

packages/native-federation-tests/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"name": "@module-federation/native-federation-tests",
3-
"version": "1.0.0-canary.1",
3+
"version": "0.2.1",
44
"description": "Bundler agnostic unplugin to share federated tests",
55
"publishConfig": {
66
"access": "public"
77
},
8+
"files": [
9+
"dist/",
10+
"README.md"
11+
],
812
"exports": {
913
".": {
1014
"import": "./dist/index.mjs",

packages/native-federation-typescript/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"name": "@module-federation/native-federation-typescript",
3-
"version": "1.0.0-canary.1",
3+
"version": "0.2.6",
44
"description": "Bundler agnostic unplugin to share federated types",
55
"keywords": [
66
"module federation",
77
"typescript",
88
"remote types",
99
"federated types"
1010
],
11+
"files": [
12+
"dist/",
13+
"README.md"
14+
],
1115
"publishConfig": {
1216
"access": "public"
1317
},

packages/nextjs-mf/package.json

+8
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,24 @@
1111
"contributors": [
1212
"Pavel Chertorogov, nodkz <[email protected]> (www.ps.kz)"
1313
],
14+
"files": [
15+
"dist/",
16+
"README.md"
17+
],
1418
"exports": {
1519
".": "./dist/src/index.js",
1620
"./utilities": "./dist/utilities.js",
21+
"./utils": "./dist/utils/index.js",
1722
"./*": "./*"
1823
},
1924
"typesVersions": {
2025
"*": {
2126
".": [
2227
"./dist/src/index.d.ts"
2328
],
29+
"utils": [
30+
"./dist/utils/index.d.ts"
31+
],
2432
"utilities": [
2533
"./dist/utilities.d.ts"
2634
]

packages/node/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"public": true,
33
"name": "@module-federation/node",
4-
"version": "2.1.0-canary.6",
4+
"version": "2.0.2-beta.6",
55
"type": "commonjs",
66
"main": "./dist/src/index.js",
77
"exports": {
@@ -18,6 +18,10 @@
1818
"./src/plugins/NodeFederationPlugin.js": "./dist/src/plugins/NodeFederationPlugin.js",
1919
"./src/": "./dist/src/"
2020
},
21+
"files": [
22+
"dist/",
23+
"README.md"
24+
],
2125
"publishConfig": {
2226
"access": "public"
2327
},

packages/runtime/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"publishConfig": {
1010
"access": "public"
1111
},
12+
"files": [
13+
"dist/",
14+
"README.md"
15+
],
1216
"exports": {
1317
".": {
1418
"import": "./dist/index.esm.js",

packages/sdk/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"Module Federation",
88
"sdk"
99
],
10+
"files": [
11+
"dist/",
12+
"README.md"
13+
],
1014
"publishConfig": {
1115
"access": "public"
1216
},

packages/storybook-addon/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"storybook",
1414
"addon"
1515
],
16+
"files": [
17+
"dist/",
18+
"README.md"
19+
],
1620
"author": "Fiodorov Andrei <[email protected]> (https://github.com/fyodorovandrei)",
1721
"exports": {
1822
".": {

packages/typescript/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"remote types",
1111
"federated types"
1212
],
13+
"files": [
14+
"dist/",
15+
"README.md"
16+
],
1317
"publishConfig": {
1418
"access": "public"
1519
},

packages/utilities/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"publishConfig": {
99
"access": "public"
1010
},
11+
"files": [
12+
"dist/",
13+
"README.md"
14+
],
1115
"repository": "https://github.com/module-federation/universe/tree/main/packages/utilities",
1216
"devDependencies": {
1317
"react": "18.2.0"

packages/webpack-bundler-runtime/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"Module Federation",
99
"bundler runtime"
1010
],
11+
"files": [
12+
"dist/",
13+
"README.md"
14+
],
1115
"publishConfig": {
1216
"access": "public"
1317
},

tsconfig.tmp.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "tsconfig.base.json",
2+
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
44
"paths": {}
55
}

0 commit comments

Comments
 (0)