@onting/browser 0.0.0-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,2 @@
1
+
2
+ export { }
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ // src/index.ts
4
+ console.log("Hello, World!");
5
+ //# sourceMappingURL=browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["console.log('Hello, World!');\n"],"mappings":";;;AAAA,QAAQ,IAAI,eAAe;","names":[]}
@@ -0,0 +1,3 @@
1
+ // src/index.ts
2
+ console.log("Hello, World!");
3
+ //# sourceMappingURL=browser.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["console.log('Hello, World!');\n"],"mappings":";AAAA,QAAQ,IAAI,eAAe;","names":[]}
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@onting/browser",
3
+ "version": "0.0.0-0",
4
+ "description": "",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "main": "./dist/browser.js",
9
+ "typings": "./dist/browser.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/browser.d.ts",
13
+ "default": "./dist/browser.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "./*.js",
18
+ "./dist/"
19
+ ],
20
+ "scripts": {
21
+ "build": "tsup",
22
+ "bump": "npm run bump:prod && npm run bump:dev",
23
+ "bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
24
+ "bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // {}) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
25
+ "postscaffold": "npm run postscaffold:dev --if-present && npm run postscaffold:prod --if-present",
26
+ "postscaffold:dev": "npm install --save-dev @onting/common@0.0.0-0 @onting/test-harness@0.0.0-0 @happy-dom/global-registrator @testduet/given-when-then @tsconfig/recommended @tsconfig/strictest @types/node esbuild escape-string-regexp expect prettier publint tsup typescript",
27
+ "precommit": "npm run precommit:eslint && npm run precommit:publint && npm run precommit:typescript:production && npm run precommit:typescript:test",
28
+ "precommit:eslint": "ESLINT_USE_FLAT_CONFIG=false eslint ./src/",
29
+ "precommit:publint": "publint",
30
+ "precommit:typescript:production": "tsc --noEmit --project ./src/tsconfig.precommit.production.json",
31
+ "precommit:typescript:test": "tsc --noEmit --project ./src/tsconfig.precommit.test.json",
32
+ "prepack": "cp ../../CHANGELOG.md . && cp ../../LICENSE . && cp ../../README.md .",
33
+ "start": "npm run build -- --onSuccess \"touch ../pages/package.json\" --watch",
34
+ "switch": "cat package.json | jq --arg SWITCH_NAME $SWITCH_NAME -r '(.[\"switch:\" + $SWITCH_NAME] // {}) as $TEMPLATE | .devDependencies += ($TEMPLATE.devDependencies // {}) | .dependencies += ($TEMPLATE.dependencies // {})' | tee ./package.json.tmp && mv ./package.json.tmp ./package.json",
35
+ "test": "npm run test:unit && npm run test:types",
36
+ "test:types": "node --experimental-strip-types --import @onting/test-harness/test-types.import --test **/*.test-types.ts",
37
+ "test:unit": "node --experimental-strip-types --experimental-test-coverage --experimental-test-isolation=none --test"
38
+ },
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "https://github.com/teamonting/browser.git"
42
+ },
43
+ "bugs": {
44
+ "url": "https://github.com/teamonting/browser/issues"
45
+ },
46
+ "homepage": "https://github.com/teamonting/browser#readme",
47
+ "localPeerDependencies": {
48
+ "@onting/common": "0.0.0-0",
49
+ "@onting/test-harness": "0.0.0-0"
50
+ },
51
+ "author": "William Wong (https://github.com/teamonting)",
52
+ "devDependencies": {
53
+ "@happy-dom/global-registrator": "^20.10.4",
54
+ "@onting/common": "^0.0.0-0",
55
+ "@onting/test-harness": "^0.0.0-0",
56
+ "@testduet/given-when-then": "^0.1.0",
57
+ "@tsconfig/recommended": "^1.0.13",
58
+ "@tsconfig/strictest": "^2.0.8",
59
+ "@types/node": "^25.9.3",
60
+ "esbuild": "^0.28.1",
61
+ "escape-string-regexp": "^5.0.0",
62
+ "expect": "^30.4.1",
63
+ "prettier": "^3.8.4",
64
+ "publint": "^0.3.21",
65
+ "tsup": "^8.5.1",
66
+ "typescript": "^6.0.3"
67
+ },
68
+ "license": "MIT",
69
+ "pinDependencies": {}
70
+ }