@atscript/typescript 0.0.23 → 0.0.25

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/cli.cjs CHANGED
@@ -390,6 +390,8 @@ else obj[key] = value;
390
390
  }
391
391
  var JsRenderer = class extends BaseRenderer {
392
392
  pre() {
393
+ this.writeln("// prettier-ignore-start");
394
+ this.writeln("/* eslint-disable */");
393
395
  this.writeln("import { defineAnnotatedType as $ } from \"@atscript/typescript\"");
394
396
  }
395
397
  post() {
@@ -398,6 +400,7 @@ var JsRenderer = class extends BaseRenderer {
398
400
  this.indent().defineMetadata(node).unindent();
399
401
  this.writeln();
400
402
  }
403
+ this.writeln("// prettier-ignore-end");
401
404
  super.post();
402
405
  }
403
406
  renderInterface(node) {
@@ -651,7 +654,7 @@ else return t.optional ? `${t.type} | true` : t.type;
651
654
  }
652
655
  let renderedTags = Array.from(tags).map((f) => `"${escapeQuotes(f)}"`).join(" | ");
653
656
  output.push({
654
- content: "/**\n * 🪄 This file was generated by Atscript\n * It is generated based on annotations used in this project\n * Do not edit this file!\n *\n * Use `npx asc -f dts` command to re-generate this file\n */\nexport {}\n\ndeclare global {\n interface AtscriptMetadata {\n " + rendered.join("\n ") + "\n }\n" + " type AtscriptPrimitiveTags = " + renderedTags + "\n" + "}\n",
657
+ content: "// prettier-ignore-start\n/* eslint-disable */\n/**\n * 🪄 This file was generated by Atscript\n * It is generated based on annotations used in this project\n * Do not edit this file!\n *\n * Use `npx asc -f dts` command to re-generate this file\n */\nexport {}\n\ndeclare global {\n interface AtscriptMetadata {\n " + rendered.join("\n ") + "\n }\n" + " type AtscriptPrimitiveTags = " + renderedTags + "\n" + "}\n" + "// prettier-ignore-end",
655
658
  fileName: "atscript.d.ts",
656
659
  source: "",
657
660
  target: path.default.join(repo.root, "atscript.d.ts")
package/dist/index.cjs CHANGED
@@ -388,6 +388,8 @@ else obj[key] = value;
388
388
  }
389
389
  var JsRenderer = class extends BaseRenderer {
390
390
  pre() {
391
+ this.writeln("// prettier-ignore-start");
392
+ this.writeln("/* eslint-disable */");
391
393
  this.writeln("import { defineAnnotatedType as $ } from \"@atscript/typescript\"");
392
394
  }
393
395
  post() {
@@ -396,6 +398,7 @@ var JsRenderer = class extends BaseRenderer {
396
398
  this.indent().defineMetadata(node).unindent();
397
399
  this.writeln();
398
400
  }
401
+ this.writeln("// prettier-ignore-end");
399
402
  super.post();
400
403
  }
401
404
  renderInterface(node) {
@@ -649,7 +652,7 @@ else return t.optional ? `${t.type} | true` : t.type;
649
652
  }
650
653
  let renderedTags = Array.from(tags).map((f) => `"${escapeQuotes(f)}"`).join(" | ");
651
654
  output.push({
652
- content: "/**\n * 🪄 This file was generated by Atscript\n * It is generated based on annotations used in this project\n * Do not edit this file!\n *\n * Use `npx asc -f dts` command to re-generate this file\n */\nexport {}\n\ndeclare global {\n interface AtscriptMetadata {\n " + rendered.join("\n ") + "\n }\n" + " type AtscriptPrimitiveTags = " + renderedTags + "\n" + "}\n",
655
+ content: "// prettier-ignore-start\n/* eslint-disable */\n/**\n * 🪄 This file was generated by Atscript\n * It is generated based on annotations used in this project\n * Do not edit this file!\n *\n * Use `npx asc -f dts` command to re-generate this file\n */\nexport {}\n\ndeclare global {\n interface AtscriptMetadata {\n " + rendered.join("\n ") + "\n }\n" + " type AtscriptPrimitiveTags = " + renderedTags + "\n" + "}\n" + "// prettier-ignore-end",
653
656
  fileName: "atscript.d.ts",
654
657
  source: "",
655
658
  target: path.default.join(repo.root, "atscript.d.ts")
package/dist/index.mjs CHANGED
@@ -363,6 +363,8 @@ else obj[key] = value;
363
363
  }
364
364
  var JsRenderer = class extends BaseRenderer {
365
365
  pre() {
366
+ this.writeln("// prettier-ignore-start");
367
+ this.writeln("/* eslint-disable */");
366
368
  this.writeln("import { defineAnnotatedType as $ } from \"@atscript/typescript\"");
367
369
  }
368
370
  post() {
@@ -371,6 +373,7 @@ var JsRenderer = class extends BaseRenderer {
371
373
  this.indent().defineMetadata(node).unindent();
372
374
  this.writeln();
373
375
  }
376
+ this.writeln("// prettier-ignore-end");
374
377
  super.post();
375
378
  }
376
379
  renderInterface(node) {
@@ -624,7 +627,7 @@ else return t.optional ? `${t.type} | true` : t.type;
624
627
  }
625
628
  let renderedTags = Array.from(tags).map((f) => `"${escapeQuotes(f)}"`).join(" | ");
626
629
  output.push({
627
- content: "/**\n * 🪄 This file was generated by Atscript\n * It is generated based on annotations used in this project\n * Do not edit this file!\n *\n * Use `npx asc -f dts` command to re-generate this file\n */\nexport {}\n\ndeclare global {\n interface AtscriptMetadata {\n " + rendered.join("\n ") + "\n }\n" + " type AtscriptPrimitiveTags = " + renderedTags + "\n" + "}\n",
630
+ content: "// prettier-ignore-start\n/* eslint-disable */\n/**\n * 🪄 This file was generated by Atscript\n * It is generated based on annotations used in this project\n * Do not edit this file!\n *\n * Use `npx asc -f dts` command to re-generate this file\n */\nexport {}\n\ndeclare global {\n interface AtscriptMetadata {\n " + rendered.join("\n ") + "\n }\n" + " type AtscriptPrimitiveTags = " + renderedTags + "\n" + "}\n" + "// prettier-ignore-end",
628
631
  fileName: "atscript.d.ts",
629
632
  source: "",
630
633
  target: path.join(repo.root, "atscript.d.ts")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/typescript",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "Atscript: typescript-gen support.",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -47,7 +47,7 @@
47
47
  "homepage": "https://github.com/moostjs/atscript/tree/main/packages/typescript#readme",
48
48
  "license": "ISC",
49
49
  "peerDependencies": {
50
- "@atscript/core": "^0.0.23"
50
+ "@atscript/core": "^0.0.25"
51
51
  },
52
52
  "dependencies": {
53
53
  "@moostjs/event-cli": "^0.5.32",