Skip to content

Commit

Permalink
Merge pull request #62 from ryoppippi/fix-docs
Browse files Browse the repository at this point in the history
feat: change import paths to scoped package
  • Loading branch information
ryoppippi authored Jun 9, 2024
2 parents 2935d98 + c1b2178 commit b05d136
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/unplugin-typia/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Examples:

```ts
// build.ts
import UnpluginTypia from 'unplugin-typia/bun';
import UnpluginTypia from '@ryoppippi/unplugin-typia/bun';

await Bun.build({
entrypoints: ['./index.ts'],
Expand All @@ -143,7 +143,7 @@ Check the [Plugins – Bundler | Bun Docs](https://bun.sh/docs/bundler/plugins)
```ts
// preload.ts
import { plugin } from 'bun';
import UnpluginTypia from 'unplugin-typia/bun';
import UnpluginTypia from '@ryoppippi/unplugin-typia/bun';

plugin(UnpluginTypia({ /* your options */}));
```
Expand Down
4 changes: 2 additions & 2 deletions packages/unplugin-typia/src/bun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (globalThis.Bun == null) {
* ```ts
* // build.ts
*
* import UnpluginTypia from 'unplugin-typia/bun'
* import UnpluginTypia from '@ryoppippi/unplugin-typia/bun'
*
* Bun.build({
* entrypoints: ['./index.ts'],
Expand All @@ -44,7 +44,7 @@ if (globalThis.Bun == null) {
* ```ts
* // preload.ts
* import { plugin } from 'bun';
* import UnpluginTypia from 'unplugin-typia/bun'
* import UnpluginTypia from '@ryoppippi/unplugin-typia/bun'
*
* plugin(UnpluginTypia({ /* your options *\/}))
* ```
Expand Down
2 changes: 1 addition & 1 deletion packages/unplugin-typia/src/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import unplugin from './core/index.js';
* ```ts
* // esbuild.config.js
* import { build } from 'esbuild'
* import UnpluginTypia from 'unplugin-typia/esbuild';
* import UnpluginTypia from '@ryoppippi/unplugin-typia/esbuild';
*
* build({
* plugins: [
Expand Down
2 changes: 1 addition & 1 deletion packages/unplugin-typia/src/farm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import unplugin from './core/index.js';
* @example
* ```ts
* // farm.config.ts
* import UnpluginTypia from 'unplugin-typia/farm'
* import UnpluginTypia from '@ryoppippi/unplugin-typia/farm'
*
* export default defineConfig({
* plugins: [UnpluginTypia()],
Expand Down
2 changes: 1 addition & 1 deletion packages/unplugin-typia/src/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type { Options } from './core/options.js';
* @example
* ```js
* // next.config.mjs
* import unTypiaNext from "unplugin-typia/next";
* import unTypiaNext from "@ryoppippi/unplugin-typia/next";
*
* /** @type {import("next").NextConfig} *\/
* const nextConfig = { /* your next.js config *\/ };
Expand Down
2 changes: 1 addition & 1 deletion packages/unplugin-typia/src/rolldown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import unplugin from './core/index.js';
* @example
* ```ts
* // rollup.config.js
* import UnpluginTypia from 'unplugin-typia/rolldown'
* import UnpluginTypia from '@ryoppippi/unplugin-typia/rolldown'
*
* export default {
* plugins: [UnpluginTypia()],
Expand Down
2 changes: 1 addition & 1 deletion packages/unplugin-typia/src/rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import unplugin from './core/index.js';
* @example
* ```ts
* // rollup.config.js
* import UnpluginTypia from 'unplugin-typia/rollup'
* import UnpluginTypia from '@ryoppippi/unplugin-typia/rollup'
*
* export default {
* plugins: [UnpluginTypia()],
Expand Down
2 changes: 1 addition & 1 deletion packages/unplugin-typia/src/rspack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import unplugin from './core/index.js';
* ```ts
* // rspack.config.js
* module.exports = {
* plugins: [require('unplugin-typia/rspack')()],
* plugins: [require('@ryoppippi/unplugin-typia/rspack')()],
* }
* ```
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/unplugin-typia/src/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import unplugin from './core/index.js';
* @example
* ```ts
* // vite.config.ts
* import UnpluginTypia from 'unplugin-typia/vite'
* import UnpluginTypia from '@ryoppippi/unplugin-typia/vite'
*
* export default defineConfig({
* plugins: [UnpluginTypia()],
Expand Down
2 changes: 1 addition & 1 deletion packages/unplugin-typia/src/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import unplugin from './core/index.js';
* ```ts
* // webpack.config.js
* module.exports = {
* plugins: [require('unplugin-typia/webpack')()],
* plugins: [require("@ryoppippi/unplugin-typia/webpack")()],
* }
* ```
*/
Expand Down

0 comments on commit b05d136

Please sign in to comment.