7 releases

0.1.7 Oct 18, 2024
0.1.6 Sep 5, 2024
0.1.5 Aug 17, 2024
0.1.4 Jun 13, 2024

#131 in #site

Download history 2/week @ 2024-07-29 12/week @ 2024-08-05 118/week @ 2024-08-12 30/week @ 2024-08-19 1/week @ 2024-08-26 175/week @ 2024-09-02 17/week @ 2024-09-09 10/week @ 2024-09-16 14/week @ 2024-09-23 10/week @ 2024-09-30 3/week @ 2024-10-07 131/week @ 2024-10-14 23/week @ 2024-10-21 14/week @ 2024-10-28 21/week @ 2024-11-04

189 downloads per month
Used in 2 crates

MulanPSL-2.0

26KB
457 lines

npm

publish dir to npm

use std::path::PathBuf;

use aok::{Result, OK};
use static_init::constructor;
use tracing::info;

#[constructor(0)]
extern "C" fn init() {
  loginit::init()
}

#[tokio::test]
async fn test() -> Result<()> {
  let token = npm::token();
  if token.is_empty() {
    info!("npm token is empty");
  } else {
    let dir: PathBuf = env!("CARGO_MANIFEST_DIR").into();
    let src = dir.join("tests").join("pkg");
    let package_json = src.join("package.json");
    info!("begin publish");
    xerr::log!(npm::publish(&token, src, &package_json).await);
  }
  info!("done");
  OK
}

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

Dependencies

~9–25MB
~338K SLoC