Browse Source

Update cerate-stdf pack

杜府 3 năm trước cách đây
mục cha
commit
4ccc6e3b04

+ 4 - 3
packages/create-stdf/package.json

@@ -1,9 +1,10 @@
 {
     "name": "create-stdf",
-    "version": "0.0.7",
+    "version": "0.0.8",
     "description": "A CLI for creating new STDF projects",
-    "main": "dist/index.js",
-    "module": "dist/index.mjs",
+    "bin": {
+        "create-stdf": "./dist/index.js"
+    },
     "scripts": {
         "build": "rollup -c",
         "test": "echo \"Error: no test specified\" && exit 1"

+ 1 - 4
packages/create-stdf/rollup.config.js

@@ -2,10 +2,7 @@ import terser from '@rollup/plugin-terser';
 
 export default {
     input: 'src/index.js',
-    output: [
-        { file: 'dist/index.js', format: 'es' },
-        { file: 'dist/index.mjs', format: 'esm' },
-    ],
+    output: [{ file: 'dist/index.js', format: 'es' }],
     external: ['path', 'fs-extra', '@clack/prompts', 'kleur/colors'],
     plugins: [terser()],
 };