action-cli-login icon indicating copy to clipboard operation
action-cli-login copied to clipboard

Fixes spinner

Open milanholemans opened this issue 1 year ago • 4 comments

Closes #38


@pnp/cli-for-microsoft-365-maintainers I've done a rebuild. The new setup command appears in my build lib directory, but not in my package dist directory. Any clue why?

milanholemans avatar Apr 05 '24 23:04 milanholemans

I'm seeing the same and wonder if our package script is incorrect. It seems like right now, it's repackaging the contents of dist/index.js which it produces itself, so in other words, it's not picking up any code changes. You can confirm it, by deleting dist/index.js which will cause the package script to fail. Instead, I wonder if the package script should be configured as ncc build lib/main.js -o dist --source-map so that it's generating dist/index.js based on the code that's output to lib after running npm run build.

@garrytrinder could you please confirm?

waldekmastykarz avatar Apr 06 '24 20:04 waldekmastykarz

That would make sense indeed, I was kinda confused as to why it crashed when I removed the files under dist.

milanholemans avatar Apr 06 '24 21:04 milanholemans

@milanholemans sorry for the delay on this.

The files in the dist folder are the files used when executing an action, this is what is used in the runners, so removing it will cause the action to fail.

If you use npm run dev during development then any changes made to the ts files will produce the js files in the lib directory, those files are automatically packaged into the dist directory. You can run the packaging task explicitly using npm run package, just to be sure that everything is packaged.

garrytrinder avatar Apr 24 '24 08:04 garrytrinder

Hi @garrytrinder

That was indeed what I was assuming. But that still doesn't explain the problem I'm facing. I made a change in the code base which is visible in the lib directory, but not in the dist directory. I think something might be wrong with the package script.

milanholemans avatar Apr 28 '24 21:04 milanholemans

Thank you @garrytrinder, I think it's fixed now.

milanholemans avatar May 30 '24 22:05 milanholemans

Thanks @milanholemans

I've merged and released v3.0.1 to the marketplace, I've also added a v3 tag which targets the same commit.

garrytrinder avatar Jun 01 '24 16:06 garrytrinder