# svelte-accmod-patch

> Patch for existing Svelte projects making them use svelte-accmod 'under the hood'.

Latest version **1.0.2** (published 2022-10-30) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install svelte-accmod-patch
pnpm add svelte-accmod-patch
yarn add svelte-accmod-patch
bun add svelte-accmod-patch
```

Provides the command `svelte-accmod-patch`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-10-30 |
| First published | 2021-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=14.0.0 |
| Dependencies | 4 |
| Unpacked size | 806.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vatroslav Vrbanic |
| Maintainers | vatro |
| Keywords | svelte, svelte-accmod, patch, svelte-accmod-patch |

## Links

- npm: https://www.npmjs.com/package/svelte-accmod-patch
- Repository: https://github.com/vatro/svelte-accmod-patch
- Homepage: https://github.com/vatro/svelte-accmod-patch#readme
- Issues: https://github.com/vatro/svelte-accmod-patch/issues
- npm.io page: https://npm.io/package/svelte-accmod-patch

## Dependencies (4)

- [ora](https://npm.io/package/ora.md) *
- [rimraf](https://npm.io/package/rimraf.md) *
- [fs-extra](https://npm.io/package/fs-extra.md) *
- [strip-json-comments](https://npm.io/package/strip-json-comments.md) *

## Recent versions

- 1.0.2 (latest) — 2022-10-30
- 1.0.1 — 2022-01-24
- 1.0.0 — 2021-11-24
- 1.0.0-rc1 — 2021-11-24

## README

## svelte-accmod-patch

[svelte-accmod](https://github.com/vatro/svelte-accmod) patch for Svelte projects: can be used with any existing project depending on Svelte *(installed locally)*, like e.g. [SvelteKit](https://github.com/sveltejs/kit) or [standard Svelte starter](https://github.com/sveltejs/template) based projects etc.

The patch replaces original [Svelte](https://github.com/sveltejs/svelte) files (see `svelte` directory inside `node_modules`) with corresponding [svelte-accmod](https://github.com/vatro/svelte-accmod) files. This way svelte-accmod doesn't have to be installed as a dependency, it's simply 'under the hood', so there's no need to change anything concerning your existing development environment / project setup.

**Apply the patch without installing it locally:**

```bash
npx svelte-accmod-patch
```

**Install the patch locally and apply it:**

This may make more sense, because it will add an `"svelte-accmod-patch": ...` entry to `"devDependencies": {...}` in your `package.json`, so it'll be clearly visible you may not be using the original Svelte compiler etc. Otherwise there will be no obvious indication the patch has been used.

```bash
npm install svelte-accmod-patch --save-dev
npx svelte-accmod-patch
```

#### Arguments

**`-apply`** 
*default*

Replaces original Svelte files with corresponding svelte-accmod files:

```bash
npx svelte-accmod-patch -apply
```

which has the same effect as:

```bash
npx svelte-accmod-patch
```

**`-revert`**

Reverts the patch / re-installs the original Svelte:

```bash
npx svelte-accmod-patch -revert
```

---
_Source: https://npm.io/package/svelte-accmod-patch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
