Skip to content

Commit 16796ce

Browse files
committed
chore: update module name
1 parent 27956f7 commit 16796ce

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
- [ Release Notes](https://posthog.nuxtjs.org/changelog)
1111
- [📖  Documentation](https://posthog.nuxtjs.org)
12-
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/@nuxtjs/posthog?file=playground%2Fapp.vue) -->
12+
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/nuxt-posthog?file=playground%2Fapp.vue) -->
1313

1414
## Features
1515

@@ -22,24 +22,24 @@
2222

2323
## Quick Setup
2424

25-
1. Add `@nuxtjs/posthog` dependency to your project
25+
1. Add `nuxt-posthog` dependency to your project
2626

2727
```bash
2828
# Using pnpm
29-
pnpm add -D @nuxtjs/posthog
29+
pnpm add -D nuxt-posthog
3030

3131
# Using yarn
32-
yarn add --dev @nuxtjs/posthog
32+
yarn add --dev nuxt-posthog
3333

3434
# Using npm
35-
npm install --save-dev @nuxtjs/posthog
35+
npm install --save-dev nuxt-posthog
3636
```
3737

38-
2. Add `@nuxtjs/posthog` to the `modules` section of `nuxt.config.ts`
38+
2. Add `nuxt-posthog` to the `modules` section of `nuxt.config.ts`
3939

4040
```js
4141
export default defineNuxtConfig({
42-
modules: ['@nuxtjs/posthog'],
42+
modules: ['nuxt-posthog'],
4343
});
4444
```
4545

@@ -73,11 +73,11 @@ pnpm run release
7373

7474
<!-- Badges -->
7575

76-
[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/posthog/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
77-
[npm-version-href]: https://npmjs.com/package/@nuxtjs/posthog
78-
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtjs/posthog.svg?style=flat&colorA=18181B&colorB=28CF8D
79-
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/posthog
80-
[license-src]: https://img.shields.io/npm/l/@nuxtjs/posthog.svg?style=flat&colorA=18181B&colorB=28CF8D
81-
[license-href]: https://npmjs.com/package/@nuxtjs/posthog
76+
[npm-version-src]: https://img.shields.io/npm/v/nuxt-posthog/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
77+
[npm-version-href]: https://npmjs.com/package/nuxt-posthog
78+
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-posthog.svg?style=flat&colorA=18181B&colorB=28CF8D
79+
[npm-downloads-href]: https://npmjs.com/package/nuxt-posthog
80+
[license-src]: https://img.shields.io/npm/l/nuxt-posthog.svg?style=flat&colorA=18181B&colorB=28CF8D
81+
[license-href]: https://npmjs.com/package/nuxt-posthog
8282
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
8383
[nuxt-href]: https://nuxt.com

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@nuxtjs/posthog",
2+
"name": "nuxt-posthog",
33
"version": "1.1.0",
44
"description": "Posthog module for nuxt",
55
"repository": {

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"name": "@nuxtjs/posthog-playground",
3+
"name": "nuxt-posthog-playground",
44
"type": "module",
55
"scripts": {
66
"dev": "nuxi dev",

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface ModuleOptions {
3535

3636
export default defineNuxtModule<ModuleOptions>({
3737
meta: {
38-
name: '@nuxtjs/posthog',
38+
name: 'nuxt-posthog',
3939
configKey: 'posthog',
4040
},
4141
defaults: {

test/fixtures/basic/nuxt.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { resolve } from 'path';
22

33
export default defineNuxtConfig({
44
alias: {
5-
'@nuxtjs/posthog': resolve(__dirname, '../../../src/module.ts'),
5+
'nuxt-posthog': resolve(__dirname, '../../../src/module.ts'),
66
},
7-
modules: ['@nuxtjs/posthog'],
7+
modules: ['nuxt-posthog'],
88
});

0 commit comments

Comments
 (0)