unplugin-atscript 0.0.28 → 0.0.30
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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ const atscriptPluginFactory = (opts) => {
|
|
|
52
52
|
repo = new __atscript_core.AtscriptRepo(root, config);
|
|
53
53
|
}
|
|
54
54
|
const code = (await (0, fs_promises.readFile)(id, "utf8")).toString();
|
|
55
|
-
const doc = await repo.openDocument(
|
|
55
|
+
const doc = await repo.openDocument(`file://${id}`, code);
|
|
56
56
|
await repo.checkDoc(doc);
|
|
57
57
|
const messages = doc.getDiagMessages().reverse();
|
|
58
58
|
let error = "";
|
package/dist/index.mjs
CHANGED
|
@@ -27,7 +27,7 @@ const atscriptPluginFactory = (opts) => {
|
|
|
27
27
|
repo = new AtscriptRepo(root, config);
|
|
28
28
|
}
|
|
29
29
|
const code = (await readFile(id, "utf8")).toString();
|
|
30
|
-
const doc = await repo.openDocument(
|
|
30
|
+
const doc = await repo.openDocument(`file://${id}`, code);
|
|
31
31
|
await repo.checkDoc(doc);
|
|
32
32
|
const messages = doc.getDiagMessages().reverse();
|
|
33
33
|
let error = "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-atscript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "Atscript: Configuration and build plugins.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"vitest": "3.2.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@atscript/core": "^0.0.
|
|
46
|
-
"@atscript/typescript": "^0.0.
|
|
45
|
+
"@atscript/core": "^0.0.30",
|
|
46
|
+
"@atscript/typescript": "^0.0.30"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"pub": "pnpm publish --access public",
|