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

chore(packages/platform): prepare for 0.0.1 release

This commit is contained in:
2024-10-23 07:16:46 +07:00
parent 95bfa4f0f1
commit ed76a867e6
3 changed files with 19 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@robonen/platform",
"version": "0.0.0",
"version": "0.0.1",
"exports": "./src/index.ts"
}

View File

@@ -1,15 +1,22 @@
{
"name": "@robonen/platform",
"private": true,
"version": "0.0.0",
"version": "0.0.1",
"license": "UNLICENSED",
"description": "",
"keywords": [],
"description": "Platform dependent utilities for javascript development",
"keywords": [
"javascript",
"typescript",
"browser",
"platform",
"node",
"bun",
"deno"
],
"author": "Robonen Andrew <robonenandrew@gmail.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/robonen/tools.git",
"directory": "./packages/platform"
"directory": "packages/platform"
},
"packageManager": "pnpm@9.12.2",
"engines": {
@@ -19,13 +26,13 @@
"files": [
"dist"
],
"main": "./dist/index.umd.js",
"module": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.umd.js",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},

View File

@@ -5,7 +5,7 @@
* @category Multi
* @description Global object that works in any environment
*
* @since 0.0.2
* @since 0.0.1
*/
export const _global =
typeof globalThis !== 'undefined'
@@ -23,6 +23,6 @@ export const _global =
* @category Multi
* @description Check if the current environment is the client
*
* @since 0.0.2
* @since 0.0.1
*/
export const isClient = typeof window !== 'undefined' && typeof document !== 'undefined';