Skip to content

Commit

Permalink
fix: dts file path use
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedAlchemy committed Jun 25, 2024
1 parent 1e39c64 commit d592401
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
run: npx nx format:check

- name: Update NX Build Cache
run: npx nx run-many --targets=build --exclude='*,!tag:type:pkg'
run: npx nx run-many --targets=build --projects=tag:type:pkg

- name: Run Build for All
run: npx nx run-many --targets=build --exclude='*,!tag:type:pkg' --skip-nx-cache
run: npx nx run-many --targets=build --projects=tag:type:pkg --skip-nx-cache

- name: Run Affected Lint
run: npx nx affected -t lint --parallel=7 --exclude='*,!tag:type:pkg'
Expand Down
4 changes: 2 additions & 2 deletions packages/dts-plugin/src/plugins/GenerateTypesPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ export class GenerateTypesPlugin implements WebpackPluginInstance {
await generateTypesFn(finalOptions);
const config = finalOptions.remote.moduleFederationConfig;
let zipPrefix = '';
const isManifestObject = typeof config.manifest === 'object'
const isManifestObject = typeof config.manifest === 'object';
if (isManifestObject && config.manifest.filePath) {
zipPrefix = config.manifest.filePath;
} else if (isManifestObject && config.manifest.fileName) {
zipPrefix = path.dirname(config.manifest.filePath);
zipPrefix = path.dirname(config.manifest.fileName);
} else if (config.filename) {
zipPrefix = path.dirname(config.filename);
}
Expand Down

0 comments on commit d592401

Please sign in to comment.