Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: publint CI #3353

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ jobs:
- name: Run Build for All
run: npx nx run-many --targets=build --projects=tag:type:pkg --skip-nx-cache

- name: Check Package Publishing Compatibility
run: |
for pkg in packages/*; do
if [ -f "$pkg/package.json" ] && \
[ "$pkg" != "packages/assemble-release-plan" ] && \
[ "$pkg" != "packages/chrome-devtools" ] && \
[ "$pkg" != "packages/core" ] && \
[ "$pkg" != "packages/esbuild" ] && \
[ "$pkg" != "packages/utilities" ]; then
echo "Checking $pkg..."
npx publint "$pkg"
fi
done

- name: Run Affected Test
uses: nick-fields/retry@v3
with:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
"postcss-url": "10.1.3",
"prettier": "3.3.3",
"prettier-eslint": "16.3.0",
"publint": "^0.2.12",
"react-refresh": "0.14.2",
"rimraf": "^3.0.2",
"rollup-plugin-copy": "3.5.0",
Expand Down
27 changes: 16 additions & 11 deletions packages/data-prefetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,36 @@
"publishConfig": {
"access": "public"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"exports": {
".": {
"types": "./dist/index.cjs.d.ts",
"import": "./dist/index.esm.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.cjs.d.ts"
"require": "./dist/index.cjs.js"
},
"./react": {
"types": "./dist/react.cjs.d.ts",
"import": "./dist/react.esm.mjs",
"require": "./dist/react.cjs.js",
"types": "./dist/react.cjs.d.ts"
"require": "./dist/react.cjs.js"
},
"./cli": {
"types": "./dist/cli.cjs.d.ts",
"import": "./dist/cli.esm.mjs",
"require": "./dist/cli.cjs.js",
"types": "./dist/cli.cjs.d.ts"
"require": "./dist/cli.cjs.js"
},
"./babel-plugin": {
"types": "./dist/babel.cjs.d.ts",
"import": "./dist/babel.esm.mjs",
"require": "./dist/babel.cjs.js",
"types": "./dist/babel.cjs.d.ts"
"require": "./dist/babel.cjs.js"
},
"./universal": {
"types": "./dist/universal.cjs.d.ts",
"import": "./dist/universal.esm.mjs",
"require": "./dist/universal.cjs.js",
"types": "./dist/universal.cjs.d.ts"
"require": "./dist/universal.cjs.js"
}
},
"typesVersions": {
Expand All @@ -62,7 +67,7 @@
]
}
},
"main": "dist/index.cjs",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"peerDependencies": {
"react": ">=16.9.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/enhanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"require": "./dist/src/index.js",
"import": "./dist/src/index.js"
"import": "./dist/src/index.js",
"require": "./dist/src/index.js"
},
"./webpack": {
"types": "./dist/src/webpack.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/managers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
},
"exports": {
".": {
"types": "./dist/index.cjs.d.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js",
"types": "./dist/index.cjs.d.ts"
"require": "./dist/index.cjs.js"
}
},
"typesVersions": {
Expand Down
4 changes: 2 additions & 2 deletions packages/manifest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
},
"exports": {
".": {
"types": "./dist/index.cjs.d.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js",
"types": "./dist/index.cjs.d.ts"
"require": "./dist/index.cjs.js"
}
},
"typesVersions": {
Expand Down
24 changes: 12 additions & 12 deletions packages/modernjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
},
"exports": {
".": {
"types": "./dist/types/cli/index.d.ts",
"import": "./dist/esm/cli/index.js",
"require": "./dist/cjs/cli/index.js",
"types": "./dist/types/cli/index.d.ts"
"require": "./dist/cjs/cli/index.js"
},
"./runtime": {
"types": "./dist/types/runtime/index.d.ts",
Expand All @@ -32,29 +32,29 @@
"default": "./dist/esm/ssr-runtime/index.js"
},
"./config-plugin": {
"types": "./dist/types/cli/configPlugin.d.ts",
"import": "./dist/esm/cli/configPlugin.js",
"require": "./dist/cjs/cli/configPlugin.js",
"types": "./dist/types/cli/configPlugin.d.ts"
"require": "./dist/cjs/cli/configPlugin.js"
},
"./ssr-plugin": {
"types": "./dist/types/cli/ssrPlugin.d.ts",
"import": "./dist/esm/cli/ssrPlugin.js",
"require": "./dist/cjs/cli/ssrPlugin.js",
"types": "./dist/types/cli/ssrPlugin.d.ts"
"require": "./dist/cjs/cli/ssrPlugin.js"
},
"./shared-strategy": {
"types": "./dist/types/cli/mfRuntimePlugins/shared-strategy.d.ts",
"import": "./dist/esm/cli/mfRuntimePlugins/shared-strategy.js",
"require": "./dist/esm/cli/mfRuntimePlugins/shared-strategy.js",
"types": "./dist/types/cli/mfRuntimePlugins/shared-strategy.d.ts"
"require": "./dist/esm/cli/mfRuntimePlugins/shared-strategy.js"
},
"./resolve-entry-ipv4": {
"types": "./dist/types/cli/mfRuntimePlugins/resolve-entry-ipv4.d.ts",
"import": "./dist/esm/cli/mfRuntimePlugins/resolve-entry-ipv4.js",
"require": "./dist/esm/cli/mfRuntimePlugins/resolve-entry-ipv4.js",
"types": "./dist/types/cli/mfRuntimePlugins/resolve-entry-ipv4.d.ts"
"require": "./dist/esm/cli/mfRuntimePlugins/resolve-entry-ipv4.js"
},
"./inject-node-fetch": {
"types": "./dist/types/cli/mfRuntimePlugins/inject-node-fetch.d.ts",
"import": "./dist/esm/cli/mfRuntimePlugins/inject-node-fetch.js",
"require": "./dist/esm/cli/mfRuntimePlugins/inject-node-fetch.js",
"types": "./dist/types/cli/mfRuntimePlugins/inject-node-fetch.d.ts"
"require": "./dist/esm/cli/mfRuntimePlugins/inject-node-fetch.js"
}
},
"typesVersions": {
Expand Down
4 changes: 2 additions & 2 deletions packages/native-federation-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
"require": "./dist/index.js"
},
"./rollup": {
"types": "./dist/rollup.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/native-federation-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
"require": "./dist/index.js"
},
"./rollup": {
"types": "./dist/rollup.d.ts",
Expand Down
1 change: 0 additions & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"import": "./dist/src/utils/index.js",
"require": "./dist/src/utils/index.js"
},
"./src/plugins/RemotePublicPathPlugin.js": "./dist/src/plugins/RemotePublicPathPlugin.js",
"./src/plugins/NodeFederationPlugin.js": "./dist/src/plugins/NodeFederationPlugin.js",
"./universe-entry-chunk-tracker-plugin": "./dist/src/plugins/UniverseEntryChunkTrackerPlugin.js",
"./src/": "./dist/src/"
Expand Down
4 changes: 2 additions & 2 deletions packages/rsbuild-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"license": "MIT",
"exports": {
".": {
"types": "./dist/index.cjs.d.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js",
"types": "./dist/index.cjs.d.ts"
"require": "./dist/index.cjs.js"
}
},
"main": "./dist/index.cjs.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
},
"exports": {
".": {
"types": "./dist/index.cjs.d.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js",
"types": "./dist/index.cjs.d.ts"
"require": "./dist/index.cjs.js"
}
},
"typesVersions": {
Expand Down
12 changes: 5 additions & 7 deletions packages/storybook-addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@module-federation/storybook-addon",
"version": "3.0.13",
"description": "Storybook addon to consume remote module federated apps/components",
"type": "commonjs",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -25,18 +26,15 @@
],
"author": "Fiodorov Andrei <[email protected]> (https://github.com/fyodorovandrei)",
"main": "dist/src/index.js",
"module": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"exports": {
".": {
"import": "./dist/src/index.js",
"require": "./dist/src/index.js",
"types": "./dist/src/index.d.ts"
"types": "./dist/src/index.d.ts",
"default": "./dist/src/index.js"
},
"./preset": {
"import": "./dist/preset.js",
"require": "./dist/preset.js",
"types": "./dist/preset.d.ts"
"types": "./dist/preset.d.ts",
"default": "./dist/preset.js"
},
"./*": "./*"
},
Expand Down
Loading
Loading