@oyerinde/caliper 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @license MIT
5
+ *
6
+ * Caliper - Browser Measurement Tool
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+
12
+ // src/index.server.ts
13
+ var noopInstance = {
14
+ mount: () => {
15
+ },
16
+ dispose: () => {
17
+ },
18
+ mounted: false
19
+ };
20
+ var init = () => noopInstance;
21
+ var setConfig = (_config) => {
22
+ };
23
+ var getConfig = () => ({});
24
+ var VERSION = "[SSR]";
25
+
26
+ exports.VERSION = VERSION;
27
+ exports.getConfig = getConfig;
28
+ exports.init = init;
29
+ exports.setConfig = setConfig;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license MIT
3
+ *
4
+ * Caliper - Browser Measurement Tool
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ // src/index.server.ts
11
+ var noopInstance = {
12
+ mount: () => {
13
+ },
14
+ dispose: () => {
15
+ },
16
+ mounted: false
17
+ };
18
+ var init = () => noopInstance;
19
+ var setConfig = (_config) => {
20
+ };
21
+ var getConfig = () => ({});
22
+ var VERSION = "[SSR]";
23
+
24
+ export { VERSION, getConfig, init, setConfig };
@@ -0,0 +1,4 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "timestamp": "2026-01-10T16:15:53.420Z"
4
+ }
package/package.json ADDED
@@ -0,0 +1,104 @@
1
+ {
2
+ "name": "@oyerinde/caliper",
3
+ "version": "0.1.0",
4
+ "description": "High-precision browser measurements, projections, and layout auditing",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "author": "Daniel Oyerinde <oyerinde.daniel@yahoo.com> (https://danieloyerinde.com)",
10
+ "homepage": "https://github.com/oyerindedaniel/caliper#readme",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/oyerindedaniel/caliper.git",
14
+ "directory": "packages/caliper"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/oyerindedaniel/caliper/issues"
18
+ },
19
+ "exports": {
20
+ ".": {
21
+ "browser": {
22
+ "import": {
23
+ "types": "./dist/index.d.ts",
24
+ "default": "./dist/index.js"
25
+ },
26
+ "require": {
27
+ "types": "./dist/index.d.cts",
28
+ "default": "./dist/index.cjs"
29
+ }
30
+ },
31
+ "node": {
32
+ "import": "./dist/index.server.js",
33
+ "require": "./dist/index.server.cjs"
34
+ },
35
+ "default": {
36
+ "import": {
37
+ "types": "./dist/index.d.ts",
38
+ "default": "./dist/index.js"
39
+ },
40
+ "require": {
41
+ "types": "./dist/index.d.cts",
42
+ "default": "./dist/index.cjs"
43
+ }
44
+ }
45
+ },
46
+ "./iife": {
47
+ "types": "./dist/index.d.ts",
48
+ "default": "./dist/index.global.js"
49
+ }
50
+ },
51
+ "files": [
52
+ "dist",
53
+ "CHANGELOG.md",
54
+ "LICENSE",
55
+ "README.md"
56
+ ],
57
+ "keywords": [
58
+ "caliper",
59
+ "measurement",
60
+ "overlay",
61
+ "devtools",
62
+ "design-tool",
63
+ "pixel-perfect",
64
+ "react",
65
+ "vue",
66
+ "solid",
67
+ "svelte",
68
+ "nextjs",
69
+ "nuxt",
70
+ "astro",
71
+ "tanstack-start",
72
+ "browser-tools"
73
+ ],
74
+ "license": "MIT",
75
+ "devDependencies": {
76
+ "@babel/core": "^7.24.0",
77
+ "@babel/preset-typescript": "^7.28.5",
78
+ "@types/node": "^22.15.3",
79
+ "babel-preset-solid": "^1.9.10",
80
+ "cross-env": "^10.1.0",
81
+ "esbuild-plugin-babel": "^0.2.3",
82
+ "eslint": "^9.39.1",
83
+ "prettier": "^3.7.4",
84
+ "solid-js": "^1.9.10",
85
+ "tsup": "^8.5.1",
86
+ "typescript": "5.9.3",
87
+ "@caliper/core": "0.0.0",
88
+ "@caliper/overlay": "0.0.0",
89
+ "@repo/eslint-config": "0.0.0",
90
+ "@repo/typescript-config": "0.0.0"
91
+ },
92
+ "scripts": {
93
+ "prebuild": "node scripts/write-version.mjs",
94
+ "build": "pnpm run clean && pnpm run prebuild && cross-env NODE_ENV=production tsup",
95
+ "build:watch": "tsup --watch",
96
+ "lint": "eslint . --max-warnings 0",
97
+ "format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
98
+ "check-types": "tsc --noEmit",
99
+ "clean": "node -e \"const fs = require('fs'); if (fs.existsSync('dist')) fs.rmSync('dist', { recursive: true, force: true })\"",
100
+ "pack:prod": "pnpm run build && pnpm pack",
101
+ "pkg:release": "pnpm run build && pnpm publish --access public",
102
+ "release": "pnpm publish --access public"
103
+ }
104
+ }