Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*d.ts files are not published #132

Closed
developer239 opened this issue Dec 29, 2018 · 1 comment
Closed

*d.ts files are not published #132

developer239 opened this issue Dec 29, 2018 · 1 comment
Labels

Comments

@developer239
Copy link

package.json

"main": "./lib/index.js",
"module": "./lib/index.es.js",
"types": "lib/index.d.ts",

.releaserc

{
  "plugins": [
    ["@semantic-release/commit-analyzer", {
      "preset": "angular",
      "releaseRules": [
        { "type": "docs", "release": "patch" },
        { "type": "refactor", "release": "patch" },
        { "type": "style", "release": "patch" },
        { "type": "chore", "release": "patch" },
        { "type": "build", "release": "patch" },
        { "type": "ci", "release": "patch" }
      ]
    }],
    "@semantic-release/release-notes-generator",
    "@semantic-release/changelog",
    "@semantic-release/npm",
    ["@semantic-release/git", {
      "assets": ["lib/**/*.{js,ts,css}", "CHANGELOG.md", "package.json"]
    }]
  ]
}

ui-library [local]

image

ui-library [node_modules]
image

How do I include ts files in my npm build? I thought that "assets": ["lib/**/*.{js,ts,css}", "CHANGELOG.md", "package.json"] will do the trick.

@pvdlg
Copy link
Member

pvdlg commented Dec 31, 2018

The assets option is used to includes files in the GitHub release with the @semantic-release/github plugin or to commit those file to your repo with the @semantic-release/git plugin.

What's included in the npm package is not related to semantic-release, it's configured via npm. See https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package.

You also need to make sure your compiled are generated before running semantic-release.

@pvdlg pvdlg closed this as completed Dec 31, 2018
@pvdlg pvdlg added the support label Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants