@ng-native/nx 0.17.0 → 0.17.1

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.
@@ -3,8 +3,8 @@ import { Pressable, SafeAreaProvider, SafeAreaView, Text, View } from '@ng-nativ
3
3
  import { StatusBar } from '@ng-native/device';
4
4
 
5
5
  /**
6
- * Element names are lowercase, and that is load-bearing rather than style: an uppercase name is
7
- * read as an unknown Angular component and commits as a plain view with nothing in it.
6
+ * Element names are lowercase, and that is load-bearing rather than style: an uppercase name such
7
+ * as <View> matches no component's selector, and the Metro transform fails the build on it.
8
8
  */
9
9
  @Component({
10
10
  imports: [Pressable, SafeAreaProvider, SafeAreaView, Text, View],
package/library/index.cjs CHANGED
@@ -200,13 +200,19 @@ const TYPECHECK_CONFIG = 'tsconfig.typecheck.json';
200
200
  * infers a `typecheck` that runs `tsc`, which reads no template: a misspelled input passes.
201
201
  *
202
202
  * `tsconfig.lib.json` itself will not do: `ngc` refuses `emitDeclarationOnly`, and a project that
203
- * is `composite` has to emit. The Angular options are the generated app's: a native view has no
204
- * DOM to check a host binding or an event against.
203
+ * is `composite` has to emit. Without `composite`, a `declarationMap` the preset's base sets is an
204
+ * error (TS5069), since nothing emits declarations. The Angular options are the generated app's: a
205
+ * native view has no DOM to check a host binding or an event against.
205
206
  */
206
207
  function writeTypecheckConfig(tree, root) {
207
208
  writeJson(tree, joinPathFragments(root, TYPECHECK_CONFIG), {
208
209
  extends: './tsconfig.lib.json',
209
- compilerOptions: { noEmit: true, composite: false, emitDeclarationOnly: false },
210
+ compilerOptions: {
211
+ noEmit: true,
212
+ composite: false,
213
+ emitDeclarationOnly: false,
214
+ declarationMap: false,
215
+ },
210
216
  angularCompilerOptions: {
211
217
  strictTemplates: true,
212
218
  typeCheckHostBindings: false,
package/migrations.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "generators": {
3
3
  "sync-app-versions": {
4
- "version": "0.17.0",
4
+ "version": "0.17.1",
5
5
  "description": "Move the @ng-native packages each project's own package.json lists to the new version.",
6
6
  "implementation": "./migrations/run.cjs#sync-app-versions"
7
7
  },
@@ -29,6 +29,16 @@
29
29
  "version": "0.17.0",
30
30
  "description": "Read an engine node's children, text, kind, host and sheet by their new names.",
31
31
  "implementation": "./migrations/run.cjs#engine-node-fields"
32
+ },
33
+ "library-typecheck-declaration-map": {
34
+ "version": "0.17.1",
35
+ "description": "Turn off declarationMap in each Nx library's tsconfig.typecheck.json, which TypeScript refuses beside composite: false.",
36
+ "implementation": "./migrations/run.cjs#library-typecheck-declaration-map"
37
+ },
38
+ "native-typecheck-target": {
39
+ "version": "0.17.1",
40
+ "description": "Give each Angular Native project in angular.json a typecheck target, run by ngc.",
41
+ "implementation": "./migrations/run.cjs#native-typecheck-target"
32
42
  }
33
43
  }
34
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-native/nx",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "description": "Nx generators for Angular Native: nx add, an Expo app project whose targets run it, and native libraries and components.",
5
5
  "keywords": [
6
6
  "angular",
@@ -39,7 +39,7 @@
39
39
  ]
40
40
  },
41
41
  "dependencies": {
42
- "@ng-native/migrate": "0.17.0",
42
+ "@ng-native/migrate": "0.17.1",
43
43
  "@nx/devkit": "^23.0.0",
44
44
  "minimatch": "^10.0.0",
45
45
  "semver": "^7.7.0"