Skip to content

Commit 5fbf273

Browse files
committed
feat: explicitly export the type as module
1 parent a1eec8b commit 5fbf273

File tree

6 files changed

+240
-148
lines changed

6 files changed

+240
-148
lines changed
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "(vue3.0) 🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more",
55
"repository": "https://github.com/ckpack/vue-color",
66
"sideEffects": false,
7+
"type": "module",
78
"main": "dist/index.js",
89
"module": "libs/index.js",
910
"unpkg": "dist/index.min.js",
@@ -32,8 +33,8 @@
3233
"release": "standard-version"
3334
},
3435
"devDependencies": {
35-
"@commitlint/cli": "^13.2.1",
36-
"@commitlint/config-conventional": "^13.2.0",
36+
"@commitlint/cli": "^17.0.3",
37+
"@commitlint/config-conventional": "^17.0.3",
3738
"@rollup/plugin-alias": "^3.1.5",
3839
"@rollup/plugin-commonjs": "^21.0.0",
3940
"@rollup/plugin-node-resolve": "^13.0.5",

scripts/gen-compoents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fs = require('fs');
1+
import fs from 'fs';
22

33
const basePath = process.cwd();
44

scripts/gen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fs = require('fs');
1+
import fs from 'fs';
22

33
function formatComponent(component) {
44
return component.split('-').map((name) => name.slice(0, 1).toUpperCase() + name.slice(1)).join('');

0 commit comments

Comments
 (0)