1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 02:44:45 +00:00

feat(packages/stdlib): create stdlib

This commit is contained in:
2024-04-10 15:12:53 +07:00
parent 37d25bfb1d
commit c985b95fc5
4 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1 @@
# @robonen/stdlib

View File

@@ -0,0 +1,44 @@
{
"name": "@robonen/stdlib",
"private": true,
"version": "1.0.0",
"license": "UNLICENSED",
"description": "",
"keywords": [],
"author": "Robonen Andrew <robonenandrew@gmail.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/robonen/tools.git",
"directory": "packages/stdlib"
},
"packageManager": "pnpm@8.15.6",
"engines": {
"node": ">=18.0.0"
},
"type": "module",
"files": [
"dist"
],
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"@robonen/tsconfig": "workspace:*",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1",
"pathe": "^1.1.2"
}
}

View File

@@ -0,0 +1,3 @@
{
"extends": "@robonen/tsconfig/tsconfig.json",
}

View File

@@ -0,0 +1,14 @@
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { resolve } from 'pathe';
export default defineConfig({
resolve: {
alias: {
'@': resolve(__dirname, './src'),
},
},
plugins: [
dts({ insertTypesEntry: true }),
],
});