@astrojs/ts-plugin 0.4.3 → 0.4.4
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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +6 -0
- package/dist/astro2tsx.js +2 -2
- package/dist/workers/TSXService.js +1 -1
- package/package.json +2 -2
- package/src/astro2tsx.ts +1 -1
- package/src/workers/TSXService.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@astrojs/ts-plugin:build: cache hit, replaying output
|
|
1
|
+
@astrojs/ts-plugin:build: cache hit, replaying output 7b2874bdd1ab34a6
|
|
2
2
|
@astrojs/ts-plugin:build:
|
|
3
|
-
@astrojs/ts-plugin:build: > @astrojs/ts-plugin@0.4.
|
|
3
|
+
@astrojs/ts-plugin:build: > @astrojs/ts-plugin@0.4.4 build /home/runner/work/language-tools/language-tools/packages/ts-plugin
|
|
4
4
|
@astrojs/ts-plugin:build: > astro-scripts build "src/**/*.ts"
|
|
5
5
|
@astrojs/ts-plugin:build:
|
package/CHANGELOG.md
CHANGED
package/dist/astro2tsx.js
CHANGED
|
@@ -23,11 +23,11 @@ __export(astro2tsx_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(astro2tsx_exports);
|
|
24
24
|
var import_TSXService = require("./workers/TSXService");
|
|
25
25
|
function astro2tsx(content, fileName) {
|
|
26
|
-
const tsx = (0, import_TSXService.convertToTSX)(content, {
|
|
26
|
+
const tsx = (0, import_TSXService.convertToTSX)(content, { filename: fileName });
|
|
27
27
|
return tsx;
|
|
28
28
|
}
|
|
29
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
30
|
0 && (module.exports = {
|
|
31
31
|
astro2tsx
|
|
32
32
|
});
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2FzdHJvMnRzeC50cyJdLAogICJtYXBwaW5ncyI6ICI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQSx3QkFBNkI7QUFFdEIsU0FBUyxVQUFVLFNBQWlCLFVBQTZCO0FBQ3ZFLFFBQU0sVUFBTSxnQ0FBYSxTQUFTLEVBQUUsVUFBVSxTQUFTLENBQUM7QUFFeEQsU0FBTztBQUNSOyIsCiAgIm5hbWVzIjogW10KfQo=
|
|
@@ -36,4 +36,4 @@ function convertToTSX(source, options) {
|
|
|
36
36
|
0 && (module.exports = {
|
|
37
37
|
convertToTSX
|
|
38
38
|
});
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL3dvcmtlcnMvVFNYU2VydmljZS50cyJdLAogICJtYXBwaW5ncyI6ICI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQSxxQkFBNkI7QUFFN0IsTUFBTSx1QkFBbUIsNkJBQTZCLDhCQUFjO0FBSzdELFNBQVMsYUFBYSxRQUFnQixTQUEwQztBQUN0RixTQUFPLGlCQUFpQixRQUFRLE9BQU87QUFDeEM7IiwKICAibmFtZXMiOiBbXQp9Cg==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/ts-plugin",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "A TypeScript Plugin providing Astro intellisense",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"author": "withastro",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@astrojs/compiler": "^
|
|
16
|
+
"@astrojs/compiler": "^1.1.1",
|
|
17
17
|
"@jridgewell/trace-mapping": "^0.3.15",
|
|
18
18
|
"synckit": "^0.8.4"
|
|
19
19
|
},
|
package/src/astro2tsx.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { TSXResult } from '@astrojs/compiler/types';
|
|
|
2
2
|
import { convertToTSX } from './workers/TSXService';
|
|
3
3
|
|
|
4
4
|
export function astro2tsx(content: string, fileName: string): TSXResult {
|
|
5
|
-
const tsx = convertToTSX(content, {
|
|
5
|
+
const tsx = convertToTSX(content, { filename: fileName });
|
|
6
6
|
|
|
7
7
|
return tsx;
|
|
8
8
|
}
|
|
@@ -6,6 +6,6 @@ const convertToTSXSync = createSyncFn(require.resolve('./TSXWorker'));
|
|
|
6
6
|
/**
|
|
7
7
|
* Parse code by `@astrojs/compiler`
|
|
8
8
|
*/
|
|
9
|
-
export function convertToTSX(source: string, options: {
|
|
9
|
+
export function convertToTSX(source: string, options: { filename: string }): TSXResult {
|
|
10
10
|
return convertToTSXSync(source, options);
|
|
11
11
|
}
|