ubiquity-os / ubiquity-os-logger

0 stars 6 forks source link

Logging as NPM module #1

Closed gitcoindev closed 11 months ago

gitcoindev commented 11 months ago

Resolves https://github.com/ubiquity/ubiquibot/issues/899

gitcoindev commented 11 months ago

Hi @pavlovcik the dependencies looks fine, NPM package builds. I need still to test and publish from my fork though and see if it can be correctly imported and built, therefore I set this pull request still as a draft.

gitcoindev commented 11 months ago

@pavlovcik pull request ready for the review.

Package correctly exported:

npm notice 
npm notice 📦  ubiquibot-logger@0.3.0
npm notice === Tarball Contents === 
npm notice 49B    README.md              
npm notice 1.9kB  dist/logs.d.ts         
npm notice 12.5kB dist/logs.js           
npm notice 27.2kB dist/logs.js.map       
npm notice 604B   dist/pretty-logs.d.ts  
npm notice 4.2kB  dist/pretty-logs.js    
npm notice 9.3kB  dist/pretty-logs.js.map
npm notice 2.2kB  package.json           
npm notice === Tarball Details === 
npm notice name:          ubiquibot-logger                        
npm notice version:       0.3.0                                   
npm notice filename:      ubiquibot-logger-0.3.0.tgz              
npm notice package size:  11.0 kB                                 
npm notice unpacked size: 57.8 kB                                 
npm notice shasum:        ae296958daae3169bfde2866379216621c7c41f5
npm notice integrity:     sha512-F3BExAEPfQrHK[...]oECTw1tELcn0Q==
npm notice total files:   8                                       
npm notice 
npm notice Publishing to https://registry.npmjs.org/ with tag latest and default access
+ ubiquibot-logger@0.3.0

QA build with import from https://github.com/pavlovcik/ubiquibot/pull/60 builds without errors:

{refactor-general-with-npm-logging} ~/ubiquibot$ yarn build
yarn run v1.22.19
$ tsc
Done in 5.45s.