@atscript/typescript 0.1.10 → 0.1.11
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 +3 -1
- package/dist/index.cjs +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +2 -2
package/dist/cli.cjs
CHANGED
|
@@ -228,6 +228,7 @@ var TypeRenderer = class TypeRenderer extends BaseRenderer {
|
|
|
228
228
|
pre() {
|
|
229
229
|
this.writeln("// prettier-ignore-start");
|
|
230
230
|
this.writeln("/* eslint-disable */");
|
|
231
|
+
this.writeln("/* oxlint-disable */");
|
|
231
232
|
this.writeln(`/// <reference path="./${this.doc.name}" />`);
|
|
232
233
|
this.writeln("/**");
|
|
233
234
|
this.writeln(" * 🪄 This file was generated by Atscript");
|
|
@@ -1052,6 +1053,7 @@ var JsRenderer = class extends BaseRenderer {
|
|
|
1052
1053
|
pre() {
|
|
1053
1054
|
this.writeln("// prettier-ignore-start");
|
|
1054
1055
|
this.writeln("/* eslint-disable */");
|
|
1056
|
+
this.writeln("/* oxlint-disable */");
|
|
1055
1057
|
const imports = ["defineAnnotatedType as $", "annotate as $a"];
|
|
1056
1058
|
if (resolveJsonSchemaMode(this.opts) === "lazy") imports.push("buildJsonSchema as $$");
|
|
1057
1059
|
this.writeln(`import { ${imports.join(", ")} } from "@atscript/typescript/utils"`);
|
|
@@ -1643,7 +1645,7 @@ else return t.optional ? `${t.type} | true` : t.type;
|
|
|
1643
1645
|
}
|
|
1644
1646
|
let renderedTags = Array.from(tags).map((f) => `"${escapeQuotes(f)}"`).join(" | ");
|
|
1645
1647
|
output.push({
|
|
1646
|
-
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",
|
|
1648
|
+
content: "// prettier-ignore-start\n/* eslint-disable */\n/* oxlint-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",
|
|
1647
1649
|
fileName: "atscript.d.ts",
|
|
1648
1650
|
source: "",
|
|
1649
1651
|
target: path.default.join(repo.root, "atscript.d.ts")
|
package/dist/index.cjs
CHANGED
|
@@ -225,6 +225,7 @@ var TypeRenderer = class TypeRenderer extends BaseRenderer {
|
|
|
225
225
|
pre() {
|
|
226
226
|
this.writeln("// prettier-ignore-start");
|
|
227
227
|
this.writeln("/* eslint-disable */");
|
|
228
|
+
this.writeln("/* oxlint-disable */");
|
|
228
229
|
this.writeln(`/// <reference path="./${this.doc.name}" />`);
|
|
229
230
|
this.writeln("/**");
|
|
230
231
|
this.writeln(" * 🪄 This file was generated by Atscript");
|
|
@@ -1049,6 +1050,7 @@ var JsRenderer = class extends BaseRenderer {
|
|
|
1049
1050
|
pre() {
|
|
1050
1051
|
this.writeln("// prettier-ignore-start");
|
|
1051
1052
|
this.writeln("/* eslint-disable */");
|
|
1053
|
+
this.writeln("/* oxlint-disable */");
|
|
1052
1054
|
const imports = ["defineAnnotatedType as $", "annotate as $a"];
|
|
1053
1055
|
if (resolveJsonSchemaMode(this.opts) === "lazy") imports.push("buildJsonSchema as $$");
|
|
1054
1056
|
this.writeln(`import { ${imports.join(", ")} } from "@atscript/typescript/utils"`);
|
|
@@ -1640,7 +1642,7 @@ else return t.optional ? `${t.type} | true` : t.type;
|
|
|
1640
1642
|
}
|
|
1641
1643
|
let renderedTags = Array.from(tags).map((f) => `"${escapeQuotes(f)}"`).join(" | ");
|
|
1642
1644
|
output.push({
|
|
1643
|
-
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",
|
|
1645
|
+
content: "// prettier-ignore-start\n/* eslint-disable */\n/* oxlint-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",
|
|
1644
1646
|
fileName: "atscript.d.ts",
|
|
1645
1647
|
source: "",
|
|
1646
1648
|
target: path.default.join(repo.root, "atscript.d.ts")
|
package/dist/index.mjs
CHANGED
|
@@ -201,6 +201,7 @@ var TypeRenderer = class TypeRenderer extends BaseRenderer {
|
|
|
201
201
|
pre() {
|
|
202
202
|
this.writeln("// prettier-ignore-start");
|
|
203
203
|
this.writeln("/* eslint-disable */");
|
|
204
|
+
this.writeln("/* oxlint-disable */");
|
|
204
205
|
this.writeln(`/// <reference path="./${this.doc.name}" />`);
|
|
205
206
|
this.writeln("/**");
|
|
206
207
|
this.writeln(" * 🪄 This file was generated by Atscript");
|
|
@@ -1025,6 +1026,7 @@ var JsRenderer = class extends BaseRenderer {
|
|
|
1025
1026
|
pre() {
|
|
1026
1027
|
this.writeln("// prettier-ignore-start");
|
|
1027
1028
|
this.writeln("/* eslint-disable */");
|
|
1029
|
+
this.writeln("/* oxlint-disable */");
|
|
1028
1030
|
const imports = ["defineAnnotatedType as $", "annotate as $a"];
|
|
1029
1031
|
if (resolveJsonSchemaMode(this.opts) === "lazy") imports.push("buildJsonSchema as $$");
|
|
1030
1032
|
this.writeln(`import { ${imports.join(", ")} } from "@atscript/typescript/utils"`);
|
|
@@ -1616,7 +1618,7 @@ else return t.optional ? `${t.type} | true` : t.type;
|
|
|
1616
1618
|
}
|
|
1617
1619
|
let renderedTags = Array.from(tags).map((f) => `"${escapeQuotes(f)}"`).join(" | ");
|
|
1618
1620
|
output.push({
|
|
1619
|
-
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",
|
|
1621
|
+
content: "// prettier-ignore-start\n/* eslint-disable */\n/* oxlint-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",
|
|
1620
1622
|
fileName: "atscript.d.ts",
|
|
1621
1623
|
source: "",
|
|
1622
1624
|
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.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Atscript: typescript-gen support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"homepage": "https://github.com/moostjs/atscript/tree/main/packages/typescript#readme",
|
|
71
71
|
"license": "ISC",
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@atscript/core": "^0.1.
|
|
73
|
+
"@atscript/core": "^0.1.11"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@moostjs/event-cli": "^0.5.32",
|