ikoncomponents 1.5.3 → 1.5.5
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.js +1 -1
- package/dist/commands/init.js +1 -1
- package/package.json +10 -10
package/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./dist/index";
|
|
2
|
+
import "./dist/index.js";
|
package/dist/commands/init.js
CHANGED
|
@@ -11,7 +11,7 @@ export async function init() {
|
|
|
11
11
|
const __filename = fileURLToPath(import.meta.url);
|
|
12
12
|
const __dirname = path.dirname(__filename);
|
|
13
13
|
// templates/default inside the package
|
|
14
|
-
const templateDir = path.resolve(__dirname, "
|
|
14
|
+
const templateDir = path.resolve(__dirname, "../../templates/default");
|
|
15
15
|
// 1️⃣ COPY templates/default → user src/
|
|
16
16
|
await copyDir(templateDir, path.join(cwd, "src"));
|
|
17
17
|
console.log(kleur.green("✔ Components copied"));
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ikoncomponents",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
"ikoncomponents": "./bin.js"
|
|
7
|
+
},
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./dist/index.js"
|
|
10
|
+
},
|
|
10
11
|
"files": [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
],
|
|
15
|
-
|
|
12
|
+
"dist",
|
|
13
|
+
"templates",
|
|
14
|
+
"bin.js"
|
|
15
|
+
],
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "tsc",
|
|
18
18
|
"prepublishOnly": "npm run build"
|