Skip to content

Commit

Permalink
馃悰 (core): adjust reference path to package (#1348)
Browse files Browse the repository at this point in the history
adjust reference path to package
  • Loading branch information
hirsch88 committed Mar 13, 2024
1 parent 2cc8637 commit 6a43c46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-actors-sort.md
@@ -0,0 +1,5 @@
---
'@baloise/ds-core': patch
---

**core**: adjust interface reference paths
14 changes: 2 additions & 12 deletions libs/nx/src/executors/build-core/executor.ts
Expand Up @@ -140,18 +140,8 @@ async function adjustInterfacesReference(options: BuildCoreExecutorSchema) {
const files = join(options.projectRoot, 'dist/types/**/*interfaces.d.ts')
replace.sync({
files: files,
from: `/// <reference path="../../../../../src/interfaces.d.ts" />`,
to: `/// <reference path="../../../../interfaces.d.ts" />`,
})
replace.sync({
files: files,
from: `/// <reference path="../../../../src/interfaces.d.ts" />`,
to: `/// <reference path="../../../interfaces.d.ts" />`,
})
replace.sync({
files: files,
from: `/// <reference path="../../../src/interfaces.d.ts" />`,
to: `/// <reference path="../../interfaces.d.ts" />`,
from: `/// <reference types="packages/core/src/interfaces" />`,
to: `/// <reference types="@baloise/ds-core" />`,
})
}

Expand Down

0 comments on commit 6a43c46

Please sign in to comment.