create-analog 0.1.7 → 0.1.8

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/index.js CHANGED
@@ -180,9 +180,13 @@ async function init() {
180
180
  write('package.json', JSON.stringify(pkg, null, 2));
181
181
 
182
182
  console.log(`\nInitializing git repository:`);
183
- execSync(
184
- `git init ${targetDir} && cd ${targetDir} && git add . && git commit -m "initial commit"`
185
- );
183
+ execSync(`git init ${targetDir} && cd ${targetDir} && git add .`);
184
+
185
+ // Fail Silent
186
+ // Can fail when user does not have global git credentials
187
+ try {
188
+ execSync(`git commit -m "initial commit"`);
189
+ } catch {}
186
190
 
187
191
  console.log(`\nDone. Now run:\n`);
188
192
  if (root !== cwd) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-analog",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Brandon Roberts",
@@ -2,14 +2,10 @@
2
2
  {
3
3
  "extends": "./tsconfig.json",
4
4
  "compilerOptions": {
5
+ "composite": true,
5
6
  "outDir": "./out-tsc/app",
6
7
  "types": []
7
8
  },
8
- "files": [
9
- "src/main.ts",
10
- "src/polyfills.ts"
11
- ],
12
- "include": [
13
- "src/**/*.d.ts"
14
- ]
9
+ "files": ["src/main.ts", "src/polyfills.ts"],
10
+ "include": ["src/**/*.d.ts"]
15
11
  }
@@ -18,15 +18,16 @@
18
18
  "importHelpers": true,
19
19
  "target": "es2020",
20
20
  "module": "es2020",
21
- "lib": [
22
- "es2020",
23
- "dom"
24
- ]
21
+ "lib": ["es2020", "dom"]
25
22
  },
26
23
  "angularCompilerOptions": {
27
24
  "enableI18nLegacyMessageIdFormat": false,
28
25
  "strictInjectionParameters": true,
29
26
  "strictInputAccessModifiers": true,
30
27
  "strictTemplates": true
31
- }
28
+ },
29
+ "references": [
30
+ { "path": "tsconfig.app.json" },
31
+ { "path": "tsconfig.spec.json" }
32
+ ]
32
33
  }
@@ -2,9 +2,10 @@
2
2
  {
3
3
  "extends": "./tsconfig.json",
4
4
  "compilerOptions": {
5
+ "composite": true,
5
6
  "outDir": "./out-tsc/spec",
6
7
  "types": ["node", "vitest/globals"]
7
8
  },
8
9
  "files": ["src/test.ts", "src/polyfills.ts"],
9
- "include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
10
+ "include": ["src/**/*.spec.ts", "src/**/*.ts"]
10
11
  }