@danielx/civet 0.10.5 → 0.10.6

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.
@@ -1,4 +1,4 @@
1
- // unplugin-civet:/home/daniel/apps/Civet/source/node-worker.civet.jsx
1
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\node-worker.civet.jsx
2
2
  import { parentPort } from "node:worker_threads";
3
3
  import module from "node:module";
4
4
  try {
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/astro.civet.jsx
29
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\astro.civet.jsx
30
30
  var astro_civet_exports = {};
31
31
  __export(astro_civet_exports, {
32
32
  default: () => astro_civet_default
@@ -1,4 +1,4 @@
1
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/astro.civet.jsx
1
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\astro.civet.jsx
2
2
  import civetUnplugin, {} from "./unplugin.mjs";
3
3
  var astro_civet_default = function(opts = {}) {
4
4
  return {
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/esbuild.civet.jsx
29
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\esbuild.civet.jsx
30
30
  var esbuild_civet_exports = {};
31
31
  __export(esbuild_civet_exports, {
32
32
  default: () => esbuild_civet_default
@@ -1,4 +1,4 @@
1
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/esbuild.civet.jsx
1
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\esbuild.civet.jsx
2
2
  import civetUnplugin from "./unplugin.mjs";
3
3
  var esbuild_civet_default = civetUnplugin.esbuild;
4
4
  export {
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/farm.civet.jsx
29
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\farm.civet.jsx
30
30
  var farm_civet_exports = {};
31
31
  __export(farm_civet_exports, {
32
32
  default: () => farm_civet_default
@@ -1,4 +1,4 @@
1
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/farm.civet.jsx
1
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\farm.civet.jsx
2
2
  import civetUnplugin from "./unplugin.mjs";
3
3
  var farm_civet_default = civetUnplugin.farm;
4
4
  export {
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/rolldown.civet.jsx
29
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\rolldown.civet.jsx
30
30
  var rolldown_civet_exports = {};
31
31
  __export(rolldown_civet_exports, {
32
32
  default: () => rolldown_civet_default
@@ -1,4 +1,4 @@
1
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/rolldown.civet.jsx
1
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\rolldown.civet.jsx
2
2
  import civetUnplugin from "./unplugin.mjs";
3
3
  var rolldown_civet_default = civetUnplugin.rolldown;
4
4
  export {
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/rollup.civet.jsx
29
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\rollup.civet.jsx
30
30
  var rollup_civet_exports = {};
31
31
  __export(rollup_civet_exports, {
32
32
  default: () => rollup_civet_default
@@ -1,4 +1,4 @@
1
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/rollup.civet.jsx
1
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\rollup.civet.jsx
2
2
  import civetUnplugin from "./unplugin.mjs";
3
3
  var rollup_civet_default = civetUnplugin.rollup;
4
4
  export {
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/rspack.civet.jsx
29
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\rspack.civet.jsx
30
30
  var rspack_civet_exports = {};
31
31
  __export(rspack_civet_exports, {
32
32
  default: () => rspack_civet_default
@@ -1,4 +1,4 @@
1
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/rspack.civet.jsx
1
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\rspack.civet.jsx
2
2
  import civetUnplugin from "./unplugin.mjs";
3
3
  var rspack_civet_default = civetUnplugin.rspack;
4
4
  export {
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/unplugin.civet.jsx
29
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\unplugin.civet.jsx
30
30
  var unplugin_civet_exports = {};
31
31
  __export(unplugin_civet_exports, {
32
32
  default: () => unplugin_civet_default,
@@ -46,7 +46,7 @@ var import_os = __toESM(require("os"));
46
46
  // source/unplugin/constants.mjs
47
47
  var DEFAULT_EXTENSIONS = [".mjs", ".js", ".mts", ".ts", ".jsx", ".tsx", ".json"];
48
48
 
49
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/unplugin.civet.jsx
49
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\unplugin.civet.jsx
50
50
  var DiagnosticCategory = {};
51
51
  DiagnosticCategory[DiagnosticCategory["Warning"] = 0] = "Warning";
52
52
  DiagnosticCategory[DiagnosticCategory["Error"] = 1] = "Error";
@@ -342,7 +342,7 @@ var rawPlugin = (options = {}, meta) => {
342
342
  }
343
343
  if (options.emitDeclaration) {
344
344
  if (meta.framework === "esbuild" && !esbuildOptions.outdir) {
345
- console.log("WARNING: Civet unplugin's `emitDeclaration` requires esbuild's `outdir` option to be set;");
345
+ throw new Error("Civet unplugin's `emitDeclaration` requires esbuild's `outdir` option to be set;");
346
346
  }
347
347
  for (const file of fsMap.keys()) {
348
348
  const slashed = slash(file);
@@ -539,7 +539,7 @@ var rawPlugin = (options = {}, meta) => {
539
539
  }
540
540
  }
541
541
  const jsonSourceMap = sourceMap && (typeof sourceMap === "string" ? JSON.parse(sourceMap) : sourceMap.json(
542
- import_path.default.relative(rootDir, id.replace(/\.[jt]sx$/, "")),
542
+ import_path.default.relative(rootDir, extractCivetFilename(id, outExt).filename),
543
543
  import_path.default.relative(rootDir, id)
544
544
  ));
545
545
  let transformed = {
@@ -1,4 +1,4 @@
1
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/unplugin.civet.jsx
1
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\unplugin.civet.jsx
2
2
  import { createUnplugin } from "unplugin";
3
3
  import civet, { lib, SourceMap } from "@danielx/civet";
4
4
  import { findInDir, loadConfig } from "@danielx/civet/config";
@@ -14,7 +14,7 @@ import os from "os";
14
14
  // source/unplugin/constants.mjs
15
15
  var DEFAULT_EXTENSIONS = [".mjs", ".js", ".mts", ".ts", ".jsx", ".tsx", ".json"];
16
16
 
17
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/unplugin.civet.jsx
17
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\unplugin.civet.jsx
18
18
  var DiagnosticCategory = {};
19
19
  DiagnosticCategory[DiagnosticCategory["Warning"] = 0] = "Warning";
20
20
  DiagnosticCategory[DiagnosticCategory["Error"] = 1] = "Error";
@@ -310,7 +310,7 @@ var rawPlugin = (options = {}, meta) => {
310
310
  }
311
311
  if (options.emitDeclaration) {
312
312
  if (meta.framework === "esbuild" && !esbuildOptions.outdir) {
313
- console.log("WARNING: Civet unplugin's `emitDeclaration` requires esbuild's `outdir` option to be set;");
313
+ throw new Error("Civet unplugin's `emitDeclaration` requires esbuild's `outdir` option to be set;");
314
314
  }
315
315
  for (const file of fsMap.keys()) {
316
316
  const slashed = slash(file);
@@ -507,7 +507,7 @@ var rawPlugin = (options = {}, meta) => {
507
507
  }
508
508
  }
509
509
  const jsonSourceMap = sourceMap && (typeof sourceMap === "string" ? JSON.parse(sourceMap) : sourceMap.json(
510
- path.relative(rootDir, id.replace(/\.[jt]sx$/, "")),
510
+ path.relative(rootDir, extractCivetFilename(id, outExt).filename),
511
511
  path.relative(rootDir, id)
512
512
  ));
513
513
  let transformed = {
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/vite.civet.jsx
29
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\vite.civet.jsx
30
30
  var vite_civet_exports = {};
31
31
  __export(vite_civet_exports, {
32
32
  default: () => vite_civet_default
@@ -1,4 +1,4 @@
1
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/vite.civet.jsx
1
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\vite.civet.jsx
2
2
  import civetUnplugin from "./unplugin.mjs";
3
3
  var vite_civet_default = civetUnplugin.vite;
4
4
  export {
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
28
 
29
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/webpack.civet.jsx
29
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\webpack.civet.jsx
30
30
  var webpack_civet_exports = {};
31
31
  __export(webpack_civet_exports, {
32
32
  default: () => webpack_civet_default
@@ -1,4 +1,4 @@
1
- // unplugin-civet:/home/daniel/apps/Civet/source/unplugin/webpack.civet.jsx
1
+ // unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\webpack.civet.jsx
2
2
  import civetUnplugin from "./unplugin.mjs";
3
3
  var webpack_civet_default = civetUnplugin.webpack;
4
4
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
3
  "type": "commonjs",
4
- "version": "0.10.5",
4
+ "version": "0.10.6",
5
5
  "description": "CoffeeScript style syntax for TypeScript",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/main.mjs",