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:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@robonen/platform",
|
"name": "@robonen/platform",
|
||||||
"version": "0.0.0",
|
"version": "0.0.1",
|
||||||
"exports": "./src/index.ts"
|
"exports": "./src/index.ts"
|
||||||
}
|
}
|
||||||
@@ -1,15 +1,22 @@
|
|||||||
{
|
{
|
||||||
"name": "@robonen/platform",
|
"name": "@robonen/platform",
|
||||||
"private": true,
|
"version": "0.0.1",
|
||||||
"version": "0.0.0",
|
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"description": "",
|
"description": "Platform dependent utilities for javascript development",
|
||||||
"keywords": [],
|
"keywords": [
|
||||||
|
"javascript",
|
||||||
|
"typescript",
|
||||||
|
"browser",
|
||||||
|
"platform",
|
||||||
|
"node",
|
||||||
|
"bun",
|
||||||
|
"deno"
|
||||||
|
],
|
||||||
"author": "Robonen Andrew <robonenandrew@gmail.com>",
|
"author": "Robonen Andrew <robonenandrew@gmail.com>",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/robonen/tools.git",
|
"url": "git+https://github.com/robonen/tools.git",
|
||||||
"directory": "./packages/platform"
|
"directory": "packages/platform"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.12.2",
|
"packageManager": "pnpm@9.12.2",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -19,13 +26,13 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"main": "./dist/index.umd.js",
|
"main": "./dist/index.cjs",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.mjs",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./dist/index.js",
|
"import": "./dist/index.mjs",
|
||||||
"require": "./dist/index.umd.js",
|
"require": "./dist/index.cjs",
|
||||||
"types": "./dist/index.d.ts"
|
"types": "./dist/index.d.ts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* @category Multi
|
* @category Multi
|
||||||
* @description Global object that works in any environment
|
* @description Global object that works in any environment
|
||||||
*
|
*
|
||||||
* @since 0.0.2
|
* @since 0.0.1
|
||||||
*/
|
*/
|
||||||
export const _global =
|
export const _global =
|
||||||
typeof globalThis !== 'undefined'
|
typeof globalThis !== 'undefined'
|
||||||
@@ -23,6 +23,6 @@ export const _global =
|
|||||||
* @category Multi
|
* @category Multi
|
||||||
* @description Check if the current environment is the client
|
* @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';
|
export const isClient = typeof window !== 'undefined' && typeof document !== 'undefined';
|
||||||
Reference in New Issue
Block a user