question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build.publish section in package.json is ignored

See original GitHub issue
  • Version: 15.2.0
  • Version: 1.8.2
  • Target: nsis (win x64)

build.publish section from my package.json is ignored, it always use repository if exists or fallback to ./.git/config.

What can be wrong and how to debug?

// ...
  "private": true,
  "repository": {
    "type": "git",
    "url": "git+https://github.com/FelikZ/<repo>.git"
  },
// ...
  "build": {
    // ...
    "npmRebuild": true,
    "compression": "store",
    "asar": true,
    "win": {
      "target": "nsis",
      "publish": ["github"]
    },
    "nsis": {
      "oneClick": true
    },
    "publish": [{
        "provider": "github",
        "owner": "felikz",
        "repo": "<repo>",
        "token": "<token>"
    }],

I used this as an example repo.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:22 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Mar 17, 2017

In the upcoming 15.6.1 I added additional debug logging. Please try it and attach debug log again.

0reactions
FelikZcommented, Mar 20, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Is publishing a package to npm necessary when a file that is ...
The project contains a test folder that is ignored by npm but is not ignored by GitHub. When a change occurs in a...
Read more >
How to ignore files from your npm package | Zell Liew
First, npm will check your repository for a .gitignore file. If there is a .gitignore file, npm will ignore files according to what's...
Read more >
Control What you Publish Inside your Npm Packages - Medium
npmignore , npm will look for a .gitignore file. Certain files are always included ( package.json , …), and other are always ignored...
Read more >
npm-publish | npm Docs
By default npm will publish to the public registry. This can be overridden by specifying a different default registry or using a scope...
Read more >
What Really Gets Packaged?. Including and excluding files in ...
If you decide to remove the files field from the package.json file and try running the command npm publish --dry-run to see what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found