@eventra_dev/cli-plugin-vue 1.0.3 → 1.0.5
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/README.md +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ The expression is copied as-is into the same module scope as the script. If it r
|
|
|
96
96
|
|
|
97
97
|
Nuxt pages, layouts, and components are ordinary `.vue` SFCs — parsed identically, no extra configuration needed.
|
|
98
98
|
|
|
99
|
-
Composables auto-imported without an explicit `import` statement (Nuxt's own composables, or your own from `composables/`/`utils/`) are intended to resolve **once the project has run `nuxt prepare`/`nuxt dev`** (so `.nuxt/` exists and is wired into `tsconfig.json`
|
|
99
|
+
Composables auto-imported without an explicit `import` statement (Nuxt's own composables, or your own from `composables/`/`utils/`) are intended to resolve **once the project has run `nuxt prepare`/`nuxt dev`** (so `.nuxt/` exists and is wired into `tsconfig.json` - the CLI analyzes the project's real `tsconfig.json`, so Nuxt's generated ambient types are visible to it like any other TypeScript project). The host CLI's resolver understands the `declare const x: typeof import("./module")["name"]` shape Nuxt/`unplugin-auto-import` generate for these bindings (covered by a unit test with a hand-written fixture of that ambient shape, and verified manually end to end on a real Nuxt 3 project: after `nuxt prepare`, calls to an auto-imported composable that wraps `track()` were detected with no explicit `import`; without `.nuxt/` the same project yields no events). The end-to-end check is manual, not part of the automated test suite.
|
|
100
100
|
|
|
101
101
|
---
|
|
102
102
|
|
|
@@ -147,7 +147,7 @@ No dependency on `@eventra_dev/eventra-cli` — the CLI adapts this shape intern
|
|
|
147
147
|
| Virtual module output | Single combined `.vue.ts`, export stub when script/template are empty |
|
|
148
148
|
| Plugin contract | `match()`, `includeGlobs`, `staticSinks`, `transform()` |
|
|
149
149
|
|
|
150
|
-
The Nuxt ambient auto-import shape (`declare const x: typeof import(...)`) is covered by a unit test in the host CLI that hand-writes that shape
|
|
150
|
+
The Nuxt ambient auto-import shape (`declare const x: typeof import(...)`) is covered by a unit test in the host CLI that hand-writes that shape. A real `nuxt prepare` project was also checked end to end by hand, but that check is not part of the automated suite (see the [Nuxt](#nuxt) section above).
|
|
151
151
|
|
|
152
152
|
Run locally:
|
|
153
153
|
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,wBAAgB,kBAAkB,IAAI,YAAY,CAejD;;AAED,wBAAoC;AAEpC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpF,YAAY,EACV,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.scriptVirtualPath = exports.parseVueSfc = exports.buildScriptModule = exports.transformVueSfc = void 0;
|
|
4
7
|
exports.createCliPluginVue = createCliPluginVue;
|
|
8
|
+
const package_json_1 = __importDefault(require("../package.json"));
|
|
5
9
|
const transform_1 = require("./transform");
|
|
6
10
|
function createCliPluginVue() {
|
|
7
11
|
return {
|
|
8
12
|
id: "vue",
|
|
9
|
-
version:
|
|
13
|
+
version: package_json_1.default.version,
|
|
10
14
|
includeGlobs: ["**/*.vue"],
|
|
11
15
|
staticSinks: [
|
|
12
16
|
{
|