Skip to content
Merged
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
41 changes: 0 additions & 41 deletions .verdaccio/config.yml

This file was deleted.

1 change: 0 additions & 1 deletion .verdaccio/htpasswd

This file was deleted.

13 changes: 4 additions & 9 deletions apps/shared-tree-shaking/no-server/host/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,14 @@
}
},
"e2e": {
"executor": "@nx/cypress:cypress",
"executor": "nx:run-commands",
"options": {
"cypressConfig": "apps/shared-tree-shaking/no-server/host/cypress.config.ts",
"testingType": "e2e",
"baseUrl": "http://localhost:3001",
"browser": "chrome"
"command": "pnpm exec cypress run --config-file apps/shared-tree-shaking/no-server/host/cypress.config.ts --browser chrome --config baseUrl=http://localhost:3001",
"forwardAllArgs": false
},
"configurations": {
"development": {
"runnerUi": true,
"browser": "chrome",
"exit": false,
"watch": true
"command": "pnpm exec cypress open --config-file apps/shared-tree-shaking/no-server/host/cypress.config.ts --browser chrome --config baseUrl=http://localhost:3001"
}
}
},
Expand Down
13 changes: 4 additions & 9 deletions apps/shared-tree-shaking/with-server/host/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,14 @@
}
},
"e2e": {
"executor": "@nx/cypress:cypress",
"executor": "nx:run-commands",
"options": {
"cypressConfig": "apps/shared-tree-shaking/with-server/host/cypress.config.ts",
"testingType": "e2e",
"baseUrl": "http://localhost:3001",
"browser": "chrome"
"command": "pnpm exec cypress run --config-file apps/shared-tree-shaking/with-server/host/cypress.config.ts --browser chrome --config baseUrl=http://localhost:3001",
"forwardAllArgs": false
},
"configurations": {
"development": {
"runnerUi": true,
"browser": "chrome",
"exit": false,
"watch": true
"command": "pnpm exec cypress open --config-file apps/shared-tree-shaking/with-server/host/cypress.config.ts --browser chrome --config baseUrl=http://localhost:3001"
}
}
},
Expand Down
18 changes: 7 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@
"overrides": {
"@changesets/assemble-release-plan": "workspace:*",
"ajv": "8.18.0",
"schema-utils@3.3.0>ajv": "6.12.6"
"eslint>ajv": "6.14.0",
"@eslint/eslintrc>ajv": "6.14.0",
"schema-utils@3.3.0>ajv": "6.14.0"
},
"onlyBuiltDependencies": [
"@parcel/watcher",
Expand Down Expand Up @@ -212,11 +214,6 @@
"@rspack/core": "1.3.9",
"@rspack/dev-server": "1.1.1",
"@rstest/core": "^0.8.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.1",
"@semantic-release/npm": "^11.0.0",
"@storybook/addon-docs": "9.0.17",
"@storybook/nextjs": "9.0.9",
"@svgr/webpack": "8.1.0",
Expand All @@ -230,7 +227,7 @@
"@types/adm-zip": "0.5.5",
"@types/chrome": "0.0.277",
"@types/download": "8.0.5",
"@types/eslint": "~8.37.0",
"@types/eslint": "~9.6.1",
"@types/express": "4.17.21",
"@types/fs-extra": "9.0.13",
"@types/jest": "29.5.13",
Expand All @@ -241,8 +238,8 @@
"@types/node-fetch": "2.6.11",
"@types/pidusage": "2.0.5",
"@types/webpack-sources": "3.2.3",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@typescript-eslint/eslint-plugin": "8.56.1",
"@typescript-eslint/parser": "8.56.1",
"@vitest/coverage-istanbul": "1.6.0",
"@vitest/coverage-v8": "1.6.0",
"@vitest/ui": "1.6.0",
Expand All @@ -257,7 +254,7 @@
"cypress": "14.3.3",
"directory-tree": "3.5.2",
"esbuild": "0.25.0",
"eslint": "9.26.0",
"eslint": "9.39.3",
"eslint-config-prettier": "10.1.5",
"eslint-plugin-cypress": "^2.13.4",
"eslint-plugin-import": "2.31.0",
Expand Down Expand Up @@ -308,7 +305,6 @@
"tsup": "7.3.0",
"typescript": "5.8.2",
"url-loader": "4.1.1",
"verdaccio": "6.1.2",
"vite": "5.4.21",
"vite-tsconfig-paths": "4.2.3",
"vitest": "1.6.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/bridge/bridge-react/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
}
},
"test": {
"executor": "@nx/jest:jest",
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "packages/bridge/bridge-react/jest.config.ts",
"passWithNoTests": true
"command": "pnpm exec jest --config packages/bridge/bridge-react/jest.config.ts --passWithNoTests",
"forwardAllArgs": false
}
}
}
Expand Down
20 changes: 11 additions & 9 deletions packages/core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"tags": ["type:pkg"],
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/packages/core/dist"],
"options": {
"outputPath": "packages/core/dist",
"main": "packages/core/src/index.ts",
"tsConfig": "packages/core/tsconfig.lib.json",
"assets": ["packages/core/*.md"]
"parallel": false,
"commands": [
"node -e \"require('fs').rmSync('packages/core/dist',{recursive:true,force:true})\"",
"pnpm -C packages/core exec tsdown --config tsdown.config.ts",
"node -e \"const fs=require('fs');const path=require('path');const src='packages/core';const dst='packages/core/dist';for(const f of fs.readdirSync(src)){if(f.endsWith('.md'))fs.cpSync(path.join(src,f),path.join(dst,f));}\""
]
}
},
"lint": {
Expand All @@ -23,11 +25,11 @@
}
},
"test": {
"executor": "@nx/jest:jest",
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/coverage/packages/core"],
"options": {
"jestConfig": "packages/core/jest.config.ts",
"passWithNoTests": true
"command": "pnpm exec jest --config packages/core/jest.config.ts --passWithNoTests",
"forwardAllArgs": false
}
},
"pre-release": {
Expand Down
27 changes: 27 additions & 0 deletions packages/core/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { defineConfig } from 'tsdown';

export default defineConfig([
{
name: 'core-build',
cwd: import.meta.dirname,
entry: {
index: 'src/index.ts',
},
tsconfig: 'tsconfig.lib.json',
outDir: 'dist/src',
format: ['cjs'],
external: [/^[^./]/],
sourcemap: true,
clean: true,
dts: {
resolver: 'tsc',
},
inlineOnly: false,
skipNodeModulesBundle: true,
unbundle: true,
outExtensions: () => ({
js: '.js',
dts: '.d.ts',
}),
},
]);
9 changes: 4 additions & 5 deletions packages/data-prefetch/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@
]
},
"test": {
"executor": "@nx/jest:jest",
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "packages/data-prefetch/jest.config.cjs",
"passWithNoTests": true
"command": "pnpm exec jest --config packages/data-prefetch/jest.config.cjs --passWithNoTests",
"forwardAllArgs": false
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
"command": "pnpm exec jest --config packages/data-prefetch/jest.config.cjs --passWithNoTests --ci --coverage"
}
}
},
Expand Down
8 changes: 6 additions & 2 deletions packages/dts-plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@
}
},
"test-impl": {
"executor": "@nx/vite:test",
"outputs": ["{workspaceRoot}/coverage/packages/dts-plugin"]
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/coverage/packages/dts-plugin"],
"options": {
"command": "pnpm exec vitest run --passWithNoTests --config packages/dts-plugin/vite.config.mts",
"forwardAllArgs": false
}
},
"lint": {
"executor": "@nx/eslint:lint",
Expand Down
19 changes: 7 additions & 12 deletions packages/enhanced/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,15 @@
}
},
"build": {
"executor": "@nx/js:tsc",
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/packages/enhanced/dist"],
"options": {
"outputPath": "packages/enhanced/dist",
"main": "packages/enhanced/src/index.ts",
"tsConfig": "packages/enhanced/tsconfig.lib.json",
"assets": [
"packages/enhanced/*.md",
{
"glob": "src/**/*.d.ts",
"input": "packages/enhanced",
"ignore": [],
"output": ""
}
"parallel": false,
"commands": [
"node -e \"require('fs').rmSync('packages/enhanced/dist',{recursive:true,force:true})\"",
"pnpm -C packages/enhanced exec tsdown --config tsdown.config.ts",
"node -e \"const fs=require('fs');const path=require('path');const src='packages/enhanced';const dst='packages/enhanced/dist';for(const f of fs.readdirSync(src)){if(f.endsWith('.md'))fs.cpSync(path.join(src,f),path.join(dst,f));}\"",
"node -e \"const fs=require('fs');const path=require('path');const src='packages/enhanced/src';const dst='packages/enhanced/dist/src';(function w(d){for(const e of fs.readdirSync(d,{withFileTypes:true})){const p=path.join(d,e.name);if(e.isDirectory())w(p);else if(e.name.endsWith('.d.ts')){const rel=path.relative(src,p);const out=path.join(dst,rel);fs.mkdirSync(path.dirname(out),{recursive:true});fs.copyFileSync(p,out);}}})(src);\""
]
},
"dependsOn": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ declare class Template {
* @param {Function} fn a runtime function (.runtime.js) "template"
* @returns {string} the updated and normalized function string
*/
// eslint-disable-next-line @typescript-eslint/ban-types
static getFunctionContent(fn: Function): string;
static getFunctionContent(fn: (...args: Array<any>) => any): string;
/**
* @param {string} str the string converted to identifier
* @returns {string} created identifier
Expand Down
2 changes: 1 addition & 1 deletion packages/enhanced/src/wrapper/BaseWrapperPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default abstract class BaseWrapperPlugin
process.env['FEDERATION_WEBPACK_PATH'] =
process.env['FEDERATION_WEBPACK_PATH'] || getWebpackPath(compiler);

// Dynamically import core plugin
// Lazily load core plugin after webpack path is set.
const CorePlugin = require(this.coreModulePath).default as any;

// Create core plugin instance and apply it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ const PLUGIN_NAME = 'HoistContainerReferencesPlugin';

export default class HoistContainerReferencesPlugin extends BaseWrapperPlugin {
constructor() {
super({}, PLUGIN_NAME, '../lib/container/hoistContainerReferencesPlugin');
super({}, PLUGIN_NAME, '../lib/container/HoistContainerReferencesPlugin');
}
}
1 change: 0 additions & 1 deletion packages/enhanced/src/wrapper/ModuleFederationPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
infrastructureLogger,
type moduleFederationPlugin,
} from '@module-federation/sdk';

import type IModuleFederationPlugin from '../lib/container/ModuleFederationPlugin';

import path from 'node:path';
Expand Down
32 changes: 32 additions & 0 deletions packages/enhanced/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { defineConfig } from 'tsdown';

export default defineConfig([
{
name: 'enhanced-build',
cwd: import.meta.dirname,
// Emit the full source tree so lazy runtime requires inside wrapper classes
// continue to resolve internal modules from dist/src/** like the old tsc build.
entry: [
'src/**/*.{ts,tsx,js,mts,cts}',
'!src/**/*.d.ts',
'!src/scripts/**',
],
tsconfig: 'tsconfig.lib.json',
outDir: 'dist/src',
format: ['cjs'],
external: [/^[^./]/, /package\.json$/],
sourcemap: true,
clean: true,
cjsDefault: false,
dts: {
resolver: 'tsc',
},
inlineOnly: false,
skipNodeModulesBundle: true,
unbundle: true,
outExtensions: () => ({
js: '.js',
dts: '.d.ts',
}),
},
]);
9 changes: 4 additions & 5 deletions packages/error-codes/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,15 @@
}
},
"test": {
"executor": "@nx/jest:jest",
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "packages/error-codes/jest.config.js",
"passWithNoTests": true
"command": "pnpm exec jest --config packages/error-codes/jest.config.js --passWithNoTests",
"forwardAllArgs": false
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
"command": "pnpm exec jest --config packages/error-codes/jest.config.js --passWithNoTests --ci --coverage"
}
}
},
Expand Down
Loading
Loading