Skip to content

Commit 6cc5bea

Browse files
committed
feat: create example app wth typescript template
1 parent f2a309f commit 6cc5bea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/init.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ function finalize() {
146146
['colors', 'prompt', 'replace-in-file', 'ts-node'].forEach((dep) => {
147147
delete pkg.devDependencies[dep];
148148
});
149-
150-
pkg.version = "0.1.0";
149+
150+
pkg.version = '0.1.0';
151151

152152
writeFileSync(jsonPackage, JSON.stringify(pkg, null, 2));
153153
console.log(green('Postinstall script has been removed'));
@@ -178,7 +178,7 @@ function setupLibrary(libraryName: string, generateExample = false) {
178178

179179
if (generateExample) {
180180
yellow('Installing the test application into example/ directory...');
181-
execSync('npx create-react-app example');
181+
execSync('yarn create react-app --template=typescript example');
182182
execSync('echo "SKIP_PREFLIGHT_CHECK=true" >> example/.env');
183183
}
184184
execSync('mv tools/README.md README.md');

0 commit comments

Comments
 (0)