open-index/open-npm huggingface dataset:
npm package: @s0me1/library-test
Description: ## Project setup ``` npm install ```
Latest version: 0.1.6

# library-test

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```
npm package: @s0rt/3dvf
Description: shadcn-style Three.js function library CLI
Latest version: 0.3.0

## dev

### link local cli

`bun link`

### run the cli

`bun run dev`

### run the registry

`bun run dev:registry`

Using `bunx 3dvf <command>` will now use the local cli.


## troubleshotting

### .glsl & vite

Using the `create` command will already apply this fix.

By default vite won't import .glsl files as we want it to, resulting in parsing errors.

You can either prepend import path with `?raw`, or, to avoid touching the 3dvf files, use the following plugin :

```vite.config.ts
function glslPlugin(): Plugin {
	return {
		name: 'glsl-raw',
		load(id) {
			if (id.endsWith('.glsl')) {
				const source = readFileSync(id, 'utf-8');
				return `export default ${JSON.stringify(source)};`;
			}
		}
	};
}
```

And add it
```vite.config.ts
{
  plugins: [glslPlugin]
}
```

### .dds

```vite.config.ts
{
	assetsInclude: ['**/*.dds']
}
```