mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 02:44:45 +00:00
chore(packages/platform): prepare for 0.0.1 release
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@robonen/platform",
|
||||
"version": "0.0.0",
|
||||
"version": "0.0.1",
|
||||
"exports": "./src/index.ts"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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';
|
||||
Reference in New Issue
Block a user