From 96d1f5a23988a2048d037d1d1d3542582fc96137 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 11 Mar 2025 08:41:32 -0700 Subject: [PATCH] docs: update package name in README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 44f6406..3285945 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# acorn-typescript +# @sveltejs/acorn-typescript [![License](https://img.shields.io/npm/l/svelte.svg)](LICENSE.md) [![Chat](https://img.shields.io/discord/457912077277855764?label=chat&logo=discord)](https://svelte.dev/chat) @@ -9,11 +9,11 @@ TypeScript using Acorn. ## Usage -To get started, import the plugin and use Acorn's extension mechanism to register it. You have to enable `options.locations` while using `acorn-typescript`. +To get started, import the plugin and use Acorn's extension mechanism to register it. You have to enable `options.locations` while using `@sveltejs/acorn-typescript`. ```typescript import * as acorn from 'acorn'; -import tsPlugin from 'acorn-typescript'; +import tsPlugin from '@sveltejs/acorn-typescript'; const node = acorn.Parser.extend(tsPlugin()).parse( ` @@ -36,7 +36,7 @@ If you want to enable parsing within a TypeScript ambient context, where certain ```typescript import * as acorn from 'acorn'; -import tsPlugin from 'acorn-typescript'; +import tsPlugin from '@sveltejs/acorn-typescript'; const node = acorn.Parser.extend(tsPlugin({ dts: true })).parse( `