Skip to content

Conversation

@frodeaa
Copy link
Contributor

@frodeaa frodeaa commented Feb 7, 2025

Import of a json file located outside the src folder result in a
different dist tructure that does match the main/types defined in
package.json

dist/
├── package.json
└── src
    ├── client.d.ts
    ├── client.js
    ├── dintero.d.ts
    ├── dintero.js
    ├── middleware.d.ts
    ├── middleware.js
    ├── types.d.ts
    └── types.js

We expect no package.json or src folder in the dist

Rel: https://github.com/Dintero/shopify-service/pull/115

Import of a json file located outside the src folder result in a
different dist tructure that does match the main/types defined in
package.json

```
dist/
├── package.json
└── src
    ├── client.d.ts
    ├── client.js
    ├── dintero.d.ts
    ├── dintero.js
    ├── middleware.d.ts
    ├── middleware.js
    ├── types.d.ts
    └── types.js
```

> We expect no package.json or src folder in the dist

Rel: Dintero/shopify-service#115
@frodeaa frodeaa self-assigned this Feb 7, 2025
@frodeaa frodeaa changed the title fix(package): resolveJsonModule + import from ../package.json fix(pack): resolveJsonModule + import from ../package.json Feb 7, 2025
@frodeaa frodeaa merged commit a9d0246 into master Feb 7, 2025
1 check passed
@frodeaa frodeaa deleted the fix-release branch February 7, 2025 12:49
@github-actions
Copy link

github-actions bot commented Feb 7, 2025

🎉 This PR is included in version 1.1.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants