diff --git a/libs/mf/post-build.js b/libs/mf/post-build.js deleted file mode 100644 index ea927b6..0000000 --- a/libs/mf/post-build.js +++ /dev/null @@ -1,29 +0,0 @@ -const fs = require('fs'); -const path = require('path'); - -// const index = fs.readFileSync(path.join(__dirname, 'src/index.ts'), { -// encoding: 'utf-8', -// }); -// fs.writeFileSync( -// path.join(__dirname, '../../dist/libs/mf/src/index.js'), -// index -// ); - -// const nguniversal = fs.readFileSync( -// path.join(__dirname, 'src/nguniversal.ts'), -// { -// encoding: 'utf-8', -// } -// ); -// fs.writeFileSync( -// path.join(__dirname, '../../dist/libs/mf/src/nguniversal.js'), -// nguniversal -// ); - -const webpack2 = fs.readFileSync(path.join(__dirname, 'webpack.ts'), { - encoding: 'utf-8', -}); -fs.writeFileSync( - path.join(__dirname, '../../dist/libs/mf/webpack.js'), - 'module.exports = require("./src/webpack.js");' -); diff --git a/libs/mf/project.json b/libs/mf/project.json index b29539e..037c06a 100644 --- a/libs/mf/project.json +++ b/libs/mf/project.json @@ -58,23 +58,15 @@ ] } }, - "post-build": { - "dependsOn": ["build"], - "executor": "nx:run-commands", - "options": { - "cwd": "libs/mf", - "command": "node post-build.js" - } - }, "publish": { - "dependsOn": ["build", "post-build"], + "dependsOn": ["build"], "executor": "nx:run-commands", "options": { "command": "node tools/scripts/publish.mjs mf npm {args.ver} {args.tag}" } }, "publish-local": { - "dependsOn": ["build", "post-build"], + "dependsOn": ["build"], "executor": "nx:run-commands", "options": { "command": "node tools/scripts/publish.mjs mf verdaccio {args.ver}" diff --git a/libs/mf/tsconfig.lib.json b/libs/mf/tsconfig.lib.json index 33eca2c..2023b39 100644 --- a/libs/mf/tsconfig.lib.json +++ b/libs/mf/tsconfig.lib.json @@ -5,6 +5,6 @@ "declaration": true, "types": ["node"] }, - "include": ["src/**/*.ts"], + "include": ["src/**/*.ts", "webpack.ts"], "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"] } diff --git a/package.json b/package.json index fcb4fce..d7271c0 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "ng": "nx", "nx": "nx", "build": "npm run build:mf && npm run build:nf", - "build:mf": "nx run-many -t build --projects=tag:scope:mf* && nx run mf:post-build", + "build:mf": "nx run-many -t build --projects=tag:scope:mf*", "build:nf": "nx run-many -t build --projects=tag:scope:nf* && nx run native-federation:post-build", "lint": "nx workspace-lint && ng lint", "e2e": "ng e2e",