@@ -29,9 +29,8 @@ inquirer.prompt(QUESTIONS).then(async ({ componentmapper, typescript }) => {
29
29
30
30
1. Update styles in "packages/${ componentmapper } -component-mapper/demo/index.html"
31
31
2. Add dependencies in "packages/${ componentmapper } -component-mapper/package.json",
32
- 3. Mark the dependencies as globals/external in "packages/${ componentmapper } -component-mapper/rollup.config.js"
33
- 4. (optional) Transform import to allow threeshake (bundle size optimization) in "packages/common/babel.config.js"
34
- 5. Have a fun and make some magic! :-)
32
+ 3. (optional) Transform imports to allow threeshake (bundle size optimization) in "packages/common/babel.config.js"
33
+ 4. Have a fun and make some magic! :-)
35
34
36
35
Please visit https://data-driven-forms.org for more information.
37
36
@@ -48,7 +47,6 @@ inquirer.prompt(QUESTIONS).then(async ({ componentmapper, typescript }) => {
48
47
files : [
49
48
path . resolve ( __dirname , `../packages/${ componentmapper } -component-mapper/README.md` ) ,
50
49
path . resolve ( __dirname , `../packages/${ componentmapper } -component-mapper/package.json` ) ,
51
- path . resolve ( __dirname , `../packages/${ componentmapper } -component-mapper/rollup.config.js` ) ,
52
50
path . resolve ( __dirname , `../packages/${ componentmapper } -component-mapper/demo/index.js` )
53
51
] ,
54
52
from : / \{ \{ c o m p o n e n t m a p p e r \} \} / g,
@@ -64,7 +62,7 @@ inquirer.prompt(QUESTIONS).then(async ({ componentmapper, typescript }) => {
64
62
const optionTypeScriptPath = {
65
63
files : [ path . resolve ( __dirname , `../packages/${ componentmapper } -component-mapper/package.json` ) ] ,
66
64
from : / \{ \{ t y p i n g s p a t h \} \} / g,
67
- to : typescript ? '\n "typings": "dist/cjs/ index.d.ts",' : ''
65
+ to : typescript ? '\n "typings": "index.d.ts",' : ''
68
66
} ;
69
67
const optionTypeScriptCommand = {
70
68
files : [ path . resolve ( __dirname , `../packages/${ componentmapper } -component-mapper/package.json` ) ] ,
@@ -74,7 +72,7 @@ inquirer.prompt(QUESTIONS).then(async ({ componentmapper, typescript }) => {
74
72
const optionTypeScriptScript = {
75
73
files : [ path . resolve ( __dirname , `../packages/${ componentmapper } -component-mapper/package.json` ) ] ,
76
74
from : / \{ \{ b u i l d t y p i n g s s c r i p t \} \} / g,
77
- to : typescript ? '\n "build:typings": "node ../../scripts/copy-files .js",' : ''
75
+ to : typescript ? '\n "build:typings": "node ../../scripts/generate-typings .js",' : ''
78
76
} ;
79
77
80
78
try {
0 commit comments