@namba_one/ui-kit-2 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/copy-sprite.mjs +17 -0
- package/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import path from 'path'
|
|
4
|
+
import fse from 'fs-extra'
|
|
5
|
+
import { fileURLToPath } from 'url'
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
8
|
+
const __dirname = path.dirname(__filename)
|
|
9
|
+
|
|
10
|
+
const targetDir = path.resolve(process.cwd(), 'public/sprite')
|
|
11
|
+
await fse.ensureDir(targetDir)
|
|
12
|
+
|
|
13
|
+
const source = path.resolve(__dirname, '../dist/sprite/sprite.svg')
|
|
14
|
+
const dest = path.join(targetDir, 'sprite.svg')
|
|
15
|
+
|
|
16
|
+
await fse.copy(source, dest)
|
|
17
|
+
console.log('✅ Copied sprite.svg to public/sprite/')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namba_one/ui-kit-2",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"main": "dist/index.umd.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"pre-release": "bash ./bin/pre-release.sh"
|
|
32
32
|
},
|
|
33
33
|
"bin": {
|
|
34
|
-
"copy-sprite": "
|
|
34
|
+
"copy-sprite": "./bin/copy-sprite.mjs"
|
|
35
35
|
},
|
|
36
36
|
"husky": {
|
|
37
37
|
"hooks": {
|