@mfdj/tsc-as-build-tool 2.12.0 → 2.13.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.js CHANGED
@@ -3,6 +3,6 @@ export function BeaconComponent() {
3
3
  return _jsx("h1", { children: beacon() });
4
4
  }
5
5
  export function beacon() {
6
- return 'Beacon: 👨🏻‍🔬 default 🧐';
6
+ return 'Beacon: 👨🏻‍🔬 ESM 🧐';
7
7
  }
8
8
  //# sourceMappingURL=Beacon.js.map
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { EntryPoint } from "./EntryPoint.tsx";
2
2
  import { enableLogging } from "./logging.ts";
3
3
  import { Client } from "./Client.ts";
4
- export { Client, EntryPoint, enableLogging };
4
+ import { beacon } from "./Beacon.tsx";
5
+ export { Client, EntryPoint, enableLogging, beacon };
5
6
  export declare function usesCodeThatThrowsAnError({ rethrow }?: {
6
7
  rethrow: boolean;
7
8
  }): void | Error;
@@ -1 +1 @@
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"}
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;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACb,MAAM,EACP,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
@@ -3,7 +3,8 @@ import { toLowercase } from "./misc/toLowercase.js";
3
3
  import { EntryPoint } from "./EntryPoint.js";
4
4
  import { enableLogging } from "./logging.js";
5
5
  import { Client } from "./Client.js";
6
- export { Client, EntryPoint, enableLogging };
6
+ import { beacon } from "./Beacon.js";
7
+ export { Client, EntryPoint, enableLogging, beacon };
7
8
  export function usesCodeThatThrowsAnError({ rethrow } = { rethrow: false }) {
8
9
  try {
9
10
  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;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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AAC;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"}
@@ -7,6 +7,6 @@ function BeaconComponent() {
7
7
  return (0, jsx_runtime_1.jsx)("h1", { children: beacon() });
8
8
  }
9
9
  function beacon() {
10
- return 'Beacon: 👨🏻‍🔬 default 🧐';
10
+ return 'Beacon: 👨🏻‍🔬 CommonJS 🧐';
11
11
  }
12
12
  //# sourceMappingURL=Beacon.js.map
@@ -1,7 +1,8 @@
1
1
  import { EntryPoint } from "./EntryPoint.tsx";
2
2
  import { enableLogging } from "./logging.ts";
3
3
  import { Client } from "./Client.ts";
4
- export { Client, EntryPoint, enableLogging };
4
+ import { beacon } from "./Beacon.tsx";
5
+ export { Client, EntryPoint, enableLogging, beacon };
5
6
  export declare function usesCodeThatThrowsAnError({ rethrow }?: {
6
7
  rethrow: boolean;
7
8
  }): void | Error;
@@ -1 +1 @@
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"}
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;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,OAAO,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACb,MAAM,EACP,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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CaseChanger = exports.enableLogging = exports.EntryPoint = exports.Client = void 0;
3
+ exports.CaseChanger = exports.beacon = 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");
@@ -10,6 +10,8 @@ const logging_ts_1 = require("./logging.js");
10
10
  Object.defineProperty(exports, "enableLogging", { enumerable: true, get: function () { return logging_ts_1.enableLogging; } });
11
11
  const Client_ts_1 = require("./Client.js");
12
12
  Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return Client_ts_1.Client; } });
13
+ const Beacon_tsx_1 = require("./Beacon.js");
14
+ Object.defineProperty(exports, "beacon", { enumerable: true, get: function () { return Beacon_tsx_1.beacon; } });
13
15
  function usesCodeThatThrowsAnError({ rethrow } = { rethrow: false }) {
14
16
  try {
15
17
  (0, throwAnError_ts_1.throwAnError)();
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAcA,8DAoBC;AAlCD,4DAAsD;AACtD,0DAAoD;AACpD,oDAA8C;AAO5C,2FAPO,2BAAU,OAOP;AANZ,6CAA6C;AAO3C,8FAPO,0BAAa,OAOP;AANf,2CAAoC;AAIlC,uFAJO,kBAAM,OAIP;AAHR,4CAAqC;AAMnC,uFANO,mBAAM,OAMP;AAGR,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
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "private": false,
37
37
  "scripts": {
38
- "build": "rm -rf dist/*; tsc --project tsconfig.json && tsc --project tsconfig.cjs.json",
38
+ "build": "./script/build.sh",
39
39
  "prepare": "npm run build",
40
40
  "preversion": "npm run typecheck",
41
41
  "server-start": "php -S localhost:3000 ./script/server.php",
@@ -43,6 +43,6 @@
43
43
  "test:watch": "./script/test-watch.sh",
44
44
  "typecheck": "tsc --build --noEmit"
45
45
  },
46
- "version": "2.12.0",
46
+ "version": "2.13.0",
47
47
  "type": "module"
48
48
  }