ivanmatiaspascual / react-financial-charts

Charts dedicated to finance.
https://react-financial.github.io/react-financial-charts/
MIT License
0 stars 0 forks source link

Publish #1

Open ivanmatiaspascual opened 1 week ago

ivanmatiaspascual commented 1 week ago

a) ~/Proyectos/Trading/react-financial-charts$ npm ci --lockfile-version 1

...
added 2499 packages, and audited 2512 packages in 38s

193 packages are looking for funding
  run `npm fund` for details

161 vulnerabilities (6 low, 72 moderate, 70 high, 13 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

added 2499 packages, and audited 2512 packages in 2m

193 packages are looking for funding
  run `npm fund` for details

161 vulnerabilities (6 low, 72 moderate, 70 high, 13 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

b) ~/Proyectos/Trading/react-financial-charts$ npm run build

...
> @ivanmatiaspascual/react-financial-charts@1.3.2-sp1-beta.0.2.0 compile
> tsc -p tsconfig.json

lerna success run Ran npm script 'build' in 11 packages in 61.9s:
lerna success - @ivanmatiaspascual/annotations
lerna success - @ivanmatiaspascual/axes
lerna success - @ivanmatiaspascual/react-financial-charts
lerna success - @ivanmatiaspascual/coordinates
lerna success - @ivanmatiaspascual/core
lerna success - @ivanmatiaspascual/indicators
lerna success - @ivanmatiaspascual/interactive
lerna success - @ivanmatiaspascual/scales
lerna success - @ivanmatiaspascual/series
lerna success - @ivanmatiaspascual/tooltip
lerna success - @ivanmatiaspascual/utils

c) ~/Proyectos/Trading/react-financial-charts$ npm run publish

> @ivanmatiaspascual/react-financial-charts@1.3.2-sp1-beta.0.2.1 compile
> tsc -p tsconfig.json

lerna success run Ran npm script 'build' in 11 packages in 71.6s:
lerna success - @ivanmatiaspascual/annotations
lerna success - @ivanmatiaspascual/axes
lerna success - @ivanmatiaspascual/react-financial-charts
lerna success - @ivanmatiaspascual/coordinates
lerna success - @ivanmatiaspascual/core
lerna success - @ivanmatiaspascual/indicators
lerna success - @ivanmatiaspascual/interactive
lerna success - @ivanmatiaspascual/scales
lerna success - @ivanmatiaspascual/series
lerna success - @ivanmatiaspascual/tooltip
lerna success - @ivanmatiaspascual/utils
lerna success published @ivanmatiaspascual/annotations 1.3.1-sp1-beta.0.2.0
lerna notice 
lerna notice 📦  @ivanmatiaspascual/annotations@1.3.1-sp1-beta.0.2.0
lerna notice === Tarball Contents === 
lerna notice 1.2kB LICENSE                       
lerna notice 1.1kB lib/Annotate.js               
lerna notice 2.8kB lib/BarAnnotation.js          
lerna notice 191B  lib/index.js                  
lerna notice 3.9kB lib/Label.js                  
lerna notice 2.0kB lib/LabelAnnotation.js        
lerna notice 1.7kB lib/SvgPathAnnotation.js      
lerna notice 1.2kB package.json                  
lerna notice 532B  lib/Annotate.d.ts.map         
lerna notice 1.0kB lib/Annotate.js.map           
lerna notice 2.6kB lib/BarAnnotation.d.ts.map    
lerna notice 2.9kB lib/BarAnnotation.js.map      
lerna notice 213B  lib/index.d.ts.map            
lerna notice 211B  lib/index.js.map              
lerna notice 1.5kB lib/Label.d.ts.map            
lerna notice 3.9kB lib/Label.js.map              
lerna notice 2.0kB lib/LabelAnnotation.d.ts.map  
lerna notice 2.0kB lib/LabelAnnotation.js.map    
lerna notice 1.9kB lib/SvgPathAnnotation.d.ts.map
lerna notice 1.8kB lib/SvgPathAnnotation.js.map  
lerna notice 5.0kB CHANGELOG.md                  
lerna notice 69B   README.md                     
lerna notice 473B  lib/Annotate.d.ts             
lerna notice 2.6kB lib/BarAnnotation.d.ts        
lerna notice 193B  lib/index.d.ts                
lerna notice 158B  src/index.ts                  
lerna notice 1.7kB lib/Label.d.ts                
lerna notice 1.9kB lib/LabelAnnotation.d.ts      
lerna notice 1.8kB lib/SvgPathAnnotation.d.ts    
lerna notice 1.6kB src/Annotate.tsx              
lerna notice 5.9kB src/BarAnnotation.tsx         
lerna notice 4.9kB src/Label.tsx                 
lerna notice 3.8kB src/LabelAnnotation.tsx       
lerna notice 3.4kB src/SvgPathAnnotation.tsx     
lerna notice === Tarball Details === 
lerna notice name:          @ivanmatiaspascual/annotations                        
lerna notice version:       1.3.1-sp1-beta.0.2.0                                  
lerna notice filename:      ivanmatiaspascual-annotations-1.3.1-sp1-beta.0.2.0.tgz
lerna notice package size:  12.3 kB                                               
lerna notice unpacked size: 68.3 kB                                               
lerna notice shasum:        54ca2d5d0278ba6aa7d2645c790d383550e114a0              
lerna notice integrity:     sha512-mA4UFjD8qT6L6[...]R4N3fAHvSPi4A==              
lerna notice total files:   34                                                    
lerna notice 
lerna http fetch PUT 200 https://registry.npmjs.org/@ivanmatiaspascual%2fannotations 1699ms
lerna success published @ivanmatiaspascual/react-financial-charts 1.3.2-sp1-beta.0.2.1
lerna notice 
lerna notice 📦  @ivanmatiaspascual/react-financial-charts@1.3.2-sp1-beta.0.2.1
lerna notice === Tarball Contents === 
lerna notice 1.2kB  LICENSE           
lerna notice 478B   lib/index.js      
lerna notice 1.7kB  package.json      
lerna notice 332B   lib/index.d.ts.map
lerna notice 330B   lib/index.js.map  
lerna notice 13.7kB CHANGELOG.md      
lerna notice 718B   README.md         
lerna notice 480B   lib/index.d.ts    
lerna notice 445B   src/index.ts      
lerna notice === Tarball Details === 
lerna notice name:          @ivanmatiaspascual/react-financial-charts                        
lerna notice version:       1.3.2-sp1-beta.0.2.1                                             
lerna notice filename:      ivanmatiaspascual-react-financial-charts-1.3.2-sp1-beta.0.2.1.tgz
lerna notice package size:  4.8 kB                                                           
lerna notice unpacked size: 19.4 kB                                                          
lerna notice shasum:        8ba35c51828f761d0b01a0164e8c534395f8de18                         
lerna notice integrity:     sha512-9pAcZP41ejku0[...]UQOaJthn0bi5g==                         
lerna notice total files:   9                                                                
lerna notice 
lerna WARN lifecycle Skipping root "publish" because it has already been called
lerna WARN lifecycle Skipping root "postpublish" because it has already been called
lerna http fetch PUT 200 https://registry.npmjs.org/@ivanmatiaspascual%2freact-financial-charts 1683ms
Successfully published:
 - @ivanmatiaspascual/annotations@1.3.1-sp1-beta.0.2.0
 - @ivanmatiaspascual/react-financial-charts@1.3.2-sp1-beta.0.2.1

Aclaraciones: Dentro de la libreria hay dependencias entre los propios paquetes de la libreria, si modificamos un proyecto depencia es importante incrementar el proyecto dependiente para que se suba una nueva version de este ultimo apuntando al proyecto dependencia que sufrio la modificacion, si no hacemos esto npm no se da cuenta que este cambio una de sus dependencias.

1ro) Proyecto dependencia react-financial-charts

a) ~/Proyectos/Trading/react-financial-charts$ npm ci --lockfile-version 1

b) ~/Proyectos/Trading/react-financial-charts$ npm run build

2do) Proyecto dependiente trading-client

a) ~/Proyectos/Trading/trading-client$ npm uninstall @ivanmatiaspascual/react-financial-charts

Hay que sacar la dependencia remota que tengamos en el proyecto dependiente

b) ~/Proyectos/Trading/trading-client$ npm ci

...
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

added 1927 packages, and audited 1928 packages in 28s

209 packages are looking for funding
  run `npm fund` for details

154 vulnerabilities (6 low, 105 moderate, 35 high, 8 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

c) ~/Proyectos/Trading/trading-client$ npm link ../react-financial-charts/packages/charts

added 1 package, and audited 1930 packages in 9s

209 packages are looking for funding
  run `npm fund` for details

154 vulnerabilities (6 low, 105 moderate, 35 high, 8 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

Esto crea:

Un link simbolico en la carpeta node_modules del proyecto dependiente

./node_modules/@ivanmatiaspascual/react-financial-charts -> ../../../react-financial-charts/packages/charts

Una entrada global en las dependencias de nodejs

/home/ivan/.nvm/versions/node/v16.20.2/lib
├── @ivanmatiaspascual/react-financial-charts@1.3.2-sp1-beta.0.2.0 -> ./../../../../../Proyectos/Trading/react-financial-charts/packages/charts
├── npm@8.19.4
└── typescript@5.6.2

3) Limpiar

a) npm ls --global

/home/ivan/.nvm/versions/node/v16.20.2/lib
├── @ivanmatiaspascual/react-financial-charts@1.3.2-sp1-beta.0.2.0 -> ./../../../../../Proyectos/Trading/react-financial-charts/packages/charts
├── npm@8.19.4
└── typescript@5.6.2

b) npm rm --global @ivanmatiaspascual/react-financial-charts

removed 1 package, and audited 1 package in 245ms

found 0 vulnerabilities

c) npm ls --global

/home/ivan/.nvm/versions/node/v16.20.2/lib
├── npm@8.19.4
└── typescript@5.6.2