test for esm

This commit is contained in:
熊潇 2025-08-08 03:23:00 +08:00
commit a70f586c42
4 changed files with 20 additions and 0 deletions

2
.npmrc Normal file
View File

@ -0,0 +1,2 @@
//npm.xiongxiao.me/:_authToken=${ME_NPM_TOKEN}
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

3
index.ts Normal file
View File

@ -0,0 +1,3 @@
export const sum = (a: number, b: number): number => {
return a + b;
}

14
package.json Normal file
View File

@ -0,0 +1,14 @@
{
"name": "@a/test",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
"license": "MIT",
"packageManager": "pnpm@10.11.1",
"type": "module"
}

1
readme.md Normal file
View File

@ -0,0 +1 @@
https://esm.xiongxiao.me/@a/test/index.ts