Skip to content

Commit

Permalink
Merge pull request #40 from VKTRenokh/develop
Browse files Browse the repository at this point in the history
fix: incorrect pathes in dist
  • Loading branch information
VKTRenokh committed Apr 5, 2024
2 parents 1a184bb + c9d4022 commit 6b9d077
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-games-type.md
@@ -0,0 +1,5 @@
---
"duck-fp": patch
---

Fixed incorrect pathes
30 changes: 17 additions & 13 deletions esbuild.js
Expand Up @@ -10,21 +10,25 @@ const baseOptions = {
entryPoints: ['src/*.ts', 'src/**/*.ts'],
}

esbuild.build({
...baseOptions,
outExtension: { '.js': '.mjs' },
format: 'esm',
})

esbuild.build({
...baseOptions,
format: 'cjs',
})

replaceTscAliasPaths({
configFile: 'tsconfig.json',
watch: false,
outDir: 'dist',
declarationDir: 'dist',
fileExtensions: '.mjs',
})
esbuild
.build({
...baseOptions,
outExtension: { '.js': '.mjs' },
format: 'esm',
})
.then(() => {
replaceTscAliasPaths({
configFile: 'tsconfig.json',
watch: false,
outDir: 'dist',
declarationDir: 'dist',
fileExtensions: ['mjs'],
})
.then(() => console.log('replaced aliases'))
.catch(console.error)
})
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tsconfig.namespaces.json
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"moduleResolution": "nodenext",
"plugins": [
{
"name": "@unsplash/ts-namespace-import-plugin",
Expand Down

0 comments on commit 6b9d077

Please sign in to comment.