nuxt-spec 0.1.1 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  Overview of the newest features in Nuxt Spec.
4
4
 
5
+ ## 0.1.2
6
+
7
+ **2025-08-09**
8
+
9
+ - fix: target path for scaffolded `vitest.config.ts` (#3)
10
+
5
11
  ## 0.1.1
6
12
 
7
13
  **2025-08-09**
package/README.md CHANGED
@@ -14,7 +14,7 @@ Aside from being "forked" and used as you seem fit, `nuxt-spec` is also availabl
14
14
 
15
15
  1) Add following dependency into your `package.json`:
16
16
  ```
17
- "nuxt-spec": "0.1.1"
17
+ "nuxt-spec": "0.1.2"
18
18
  ```
19
19
 
20
20
  2) Add following section into your `nuxt.config.ts`:
@@ -43,7 +43,7 @@ The `nuxt-spec` package comes with a CLI tool that can help you:
43
43
  To use it, just run the following command in your terminal after you installed `nuxt-spec` package (files must be available in your `node_modules` folder):
44
44
 
45
45
  ```bash
46
- npx nuxt-spec-cli
46
+ npx spec-setup
47
47
  ```
48
48
 
49
49
  You will be prompted for each action which allows you to choose only one action to run and skip the other.
package/bin/spec-setup.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  // CLI tool to scaffold default `vitest.config.ts` file
4
4
  // and to add test-related commands in `package.json`
@@ -12,7 +12,7 @@ export async function createFileFromTemplate(templateFile, targetFile) {
12
12
  const __dirname = path.dirname(__filename)
13
13
 
14
14
  const templatePath = path.resolve(__dirname, `../${templateFile}`)
15
- const targetPath = path.resolve(process.cwd(), `../${targetFile}`)
15
+ const targetPath = path.resolve(process.cwd(), targetFile)
16
16
 
17
17
  if (!existsSync(templatePath)) {
18
18
  console.error(`Template file not found at ${templatePath}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-spec",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Test-pack layer for Nuxt Applications",
5
5
  "repository": "github:AloisSeckar/nuxt-spec",
6
6
  "license": "MIT",