@mfdj/tsc-as-build-tool 2.9.0 → 2.11.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.
- package/dist/Beacon.d.ts +4 -0
- package/dist/Beacon.d.ts.map +1 -0
- package/dist/Beacon.js +8 -0
- package/dist/Beacon.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist-cjs/Beacon.d.ts +4 -0
- package/dist-cjs/Beacon.d.ts.map +1 -0
- package/dist-cjs/Beacon.js +12 -0
- package/dist-cjs/Beacon.js.map +1 -0
- package/dist-cjs/index.d.ts +4 -0
- package/dist-cjs/index.d.ts.map +1 -1
- package/dist-cjs/index.js +7 -1
- package/dist-cjs/index.js.map +1 -1
- package/package.json +12 -5
package/dist/Beacon.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Beacon.d.ts","sourceRoot":"","sources":["../src/Beacon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,eAAe,IAAI,SAAS,CAE3C;AAED,wBAAgB,MAAM,IAAI,MAAM,CAE/B"}
|
package/dist/Beacon.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Beacon.js","sourceRoot":"","sources":["../src/Beacon.tsx"],"names":[],"mappings":";AAEA,MAAM,UAAU,eAAe;IAC7B,OAAO,uBAAK,MAAM,EAAE,GAAM,CAAA;AAC5B,CAAC;AAED,MAAM,UAAU,MAAM;IACpB,OAAO,4BAA4B,CAAC;AACtC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { EntryPoint } from "./EntryPoint.tsx";
|
|
2
|
+
import { enableLogging } from "./logging.ts";
|
|
3
|
+
import { Client } from "./Client.ts";
|
|
4
|
+
export { Client, EntryPoint, enableLogging };
|
|
1
5
|
export declare function usesCodeThatThrowsAnError({ rethrow }?: {
|
|
2
6
|
rethrow: boolean;
|
|
3
7
|
}): void | Error;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACd,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,EAAE,OAAO,EAAE,GAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAuB,GACrD,IAAI,GAAG,KAAK,CAkBd;AAED,qBAAa,WAAW;IAEtB,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIrC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAG1C"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { throwAnError } from "./misc/throwAnError.js";
|
|
2
2
|
import { toLowercase } from "./misc/toLowercase.js";
|
|
3
|
+
import { EntryPoint } from "./EntryPoint.js";
|
|
4
|
+
import { enableLogging } from "./logging.js";
|
|
5
|
+
import { Client } from "./Client.js";
|
|
6
|
+
export { Client, EntryPoint, enableLogging };
|
|
3
7
|
export function usesCodeThatThrowsAnError({ rethrow } = { rethrow: false }) {
|
|
4
8
|
try {
|
|
5
9
|
throwAnError();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACd,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,EAAE,OAAO,KAA2B,EAAE,OAAO,EAAE,KAAK,EAAE;IAEtD,IAAI,CAAC;QACH,YAAY,EAAE,CAAC;IACjB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,KAAK,GAAY,CAAC,CAAC;QACzB,sEAAsE;QACtE,MAAM,SAAS,GAAG,IAAI,KAAK,CAAC,0CAA0C,EAAE;YACtE,KAAK;SACN,CAAC,CAAC;QAEH,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,SAAS,CAAC;QAClB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;AACT,CAAC;AAED,MAAM,OAAO,WAAW;IACtB,sCAAsC;IACtC,MAAM,CAAC,OAAO,CAAC,KAAa;QAC1B,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,KAAa;QAC9B,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Beacon.d.ts","sourceRoot":"","sources":["../src/Beacon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,eAAe,IAAI,SAAS,CAE3C;AAED,wBAAgB,MAAM,IAAI,MAAM,CAE/B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BeaconComponent = BeaconComponent;
|
|
4
|
+
exports.beacon = beacon;
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
+
function BeaconComponent() {
|
|
7
|
+
return (0, jsx_runtime_1.jsx)("h1", { children: beacon() });
|
|
8
|
+
}
|
|
9
|
+
function beacon() {
|
|
10
|
+
return 'Beacon: 👨🏻🔬 default 🧐';
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=Beacon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Beacon.js","sourceRoot":"","sources":["../src/Beacon.tsx"],"names":[],"mappings":";;AAEA,0CAEC;AAED,wBAEC;;AAND,SAAgB,eAAe;IAC7B,OAAO,yCAAK,MAAM,EAAE,GAAM,CAAA;AAC5B,CAAC;AAED,SAAgB,MAAM;IACpB,OAAO,4BAA4B,CAAC;AACtC,CAAC"}
|
package/dist-cjs/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { EntryPoint } from "./EntryPoint.tsx";
|
|
2
|
+
import { enableLogging } from "./logging.ts";
|
|
3
|
+
import { Client } from "./Client.ts";
|
|
4
|
+
export { Client, EntryPoint, enableLogging };
|
|
1
5
|
export declare function usesCodeThatThrowsAnError({ rethrow }?: {
|
|
2
6
|
rethrow: boolean;
|
|
3
7
|
}): void | Error;
|
package/dist-cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACd,CAAC;AAEF,wBAAgB,yBAAyB,CACvC,EAAE,OAAO,EAAE,GAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAuB,GACrD,IAAI,GAAG,KAAK,CAkBd;AAED,qBAAa,WAAW;IAEtB,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIrC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAG1C"}
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CaseChanger = void 0;
|
|
3
|
+
exports.CaseChanger = exports.enableLogging = exports.EntryPoint = exports.Client = void 0;
|
|
4
4
|
exports.usesCodeThatThrowsAnError = usesCodeThatThrowsAnError;
|
|
5
5
|
const throwAnError_ts_1 = require("./misc/throwAnError.js");
|
|
6
6
|
const toLowercase_ts_1 = require("./misc/toLowercase.js");
|
|
7
|
+
const EntryPoint_tsx_1 = require("./EntryPoint.js");
|
|
8
|
+
Object.defineProperty(exports, "EntryPoint", { enumerable: true, get: function () { return EntryPoint_tsx_1.EntryPoint; } });
|
|
9
|
+
const logging_ts_1 = require("./logging.js");
|
|
10
|
+
Object.defineProperty(exports, "enableLogging", { enumerable: true, get: function () { return logging_ts_1.enableLogging; } });
|
|
11
|
+
const Client_ts_1 = require("./Client.js");
|
|
12
|
+
Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return Client_ts_1.Client; } });
|
|
7
13
|
function usesCodeThatThrowsAnError({ rethrow } = { rethrow: false }) {
|
|
8
14
|
try {
|
|
9
15
|
(0, throwAnError_ts_1.throwAnError)();
|
package/dist-cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAYA,8DAoBC;AAhCD,4DAAsD;AACtD,0DAAoD;AACpD,oDAA8C;AAM5C,2FANO,2BAAU,OAMP;AALZ,6CAA6C;AAM3C,8FANO,0BAAa,OAMP;AALf,2CAAoC;AAGlC,uFAHO,kBAAM,OAGP;AAKR,SAAgB,yBAAyB,CACvC,EAAE,OAAO,KAA2B,EAAE,OAAO,EAAE,KAAK,EAAE;IAEtD,IAAI,CAAC;QACH,IAAA,8BAAY,GAAE,CAAC;IACjB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,KAAK,GAAY,CAAC,CAAC;QACzB,sEAAsE;QACtE,MAAM,SAAS,GAAG,IAAI,KAAK,CAAC,0CAA0C,EAAE;YACtE,KAAK;SACN,CAAC,CAAC;QAEH,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,SAAS,CAAC;QAClB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;AACT,CAAC;AAED,MAAa,WAAW;IACtB,sCAAsC;IACtC,MAAM,CAAC,OAAO,CAAC,KAAa;QAC1B,OAAO,IAAA,4BAAW,EAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,KAAa;QAC9B,OAAO,IAAA,4BAAW,EAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACF;AATD,kCASC"}
|
package/package.json
CHANGED
|
@@ -13,7 +13,14 @@
|
|
|
13
13
|
"typescript": "^5.9.3"
|
|
14
14
|
},
|
|
15
15
|
"exports": {
|
|
16
|
-
".":
|
|
16
|
+
".": {
|
|
17
|
+
"require": "./dist-cjs/index.js",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./Beacon.js": {
|
|
21
|
+
"require": "./dist-cjs/Beacon.js",
|
|
22
|
+
"default": "./dist/Beacon.js"
|
|
23
|
+
},
|
|
17
24
|
"./*.js": "./dist/*.js"
|
|
18
25
|
},
|
|
19
26
|
"files": [
|
|
@@ -24,12 +31,12 @@
|
|
|
24
31
|
],
|
|
25
32
|
"name": "@mfdj/tsc-as-build-tool",
|
|
26
33
|
"peerDependencies": {
|
|
27
|
-
"react": "
|
|
28
|
-
"react-dom": "
|
|
34
|
+
"react": ">=18",
|
|
35
|
+
"react-dom": ">=18"
|
|
29
36
|
},
|
|
30
37
|
"private": false,
|
|
31
38
|
"scripts": {
|
|
32
|
-
"build": "rm -rf dist/*; tsc --project tsconfig.json",
|
|
39
|
+
"build": "rm -rf dist/*; tsc --project tsconfig.json && tsc --project tsconfig.cjs.json",
|
|
33
40
|
"prepare": "npm run build",
|
|
34
41
|
"preversion": "npm run typecheck",
|
|
35
42
|
"server-start": "php -S localhost:3000 ./script/server.php",
|
|
@@ -37,6 +44,6 @@
|
|
|
37
44
|
"test:watch": "./script/test-watch.sh",
|
|
38
45
|
"typecheck": "tsc --build --noEmit"
|
|
39
46
|
},
|
|
40
|
-
"version": "2.
|
|
47
|
+
"version": "2.11.0",
|
|
41
48
|
"type": "module"
|
|
42
49
|
}
|