diff --git a/.github/workflows/hook.yaml b/.github/workflows/hooks.yaml similarity index 93% rename from .github/workflows/hook.yaml rename to .github/workflows/hooks.yaml index 9f63d254a0..d0705e560a 100644 --- a/.github/workflows/hook.yaml +++ b/.github/workflows/hooks.yaml @@ -10,14 +10,14 @@ on: # No `branches:` to enable stacked PRs on GitHub. paths: - ".github/workflows/hook.yaml" - - "pkgs/hook/**" + - "pkgs/hooks/**" - "pkgs/code_assets/**" - "pkgs/data_assets/**" push: branches: [main] paths: - ".github/workflows/native.yaml" - - "pkgs/hook/**" + - "pkgs/hooks/**" - "pkgs/code_assets/**" - "pkgs/data_assets/**" schedule: @@ -30,7 +30,7 @@ jobs: matrix: os: [ubuntu, windows] sdk: [dev] - package: [hook, code_assets, data_assets] + package: [hooks, code_assets, data_assets] runs-on: ${{ matrix.os }}-latest diff --git a/pkgs/code_assets/doc/schema/README.md b/pkgs/code_assets/doc/schema/README.md index fb915d3d34..a902216e90 100644 --- a/pkgs/code_assets/doc/schema/README.md +++ b/pkgs/code_assets/doc/schema/README.md @@ -14,4 +14,4 @@ These schemas document the protocol for build and link hooks with code assets. These schemas are an extension of the base protocol: -* [`package:hook`/doc/schema](../../../hook/doc/schema/) +* [`package:hooks`/doc/schema](../../../hooks/doc/schema/) diff --git a/pkgs/code_assets/doc/schema/hook/shared_definitions.generated.schema.json b/pkgs/code_assets/doc/schema/hook/shared_definitions.generated.schema.json index 8687749176..e7a93fa2a1 100644 --- a/pkgs/code_assets/doc/schema/hook/shared_definitions.generated.schema.json +++ b/pkgs/code_assets/doc/schema/hook/shared_definitions.generated.schema.json @@ -9,7 +9,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildInput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput" @@ -25,7 +25,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildOutput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput" @@ -38,7 +38,7 @@ "HookInput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookInput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput" @@ -51,7 +51,7 @@ "HookOutput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookOutput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput" @@ -67,7 +67,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkInput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput" @@ -83,7 +83,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkOutput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput" diff --git a/pkgs/code_assets/doc/schema/sdk/shared_definitions.generated.schema.json b/pkgs/code_assets/doc/schema/sdk/shared_definitions.generated.schema.json index 8c66c9091e..afc90e68e2 100644 --- a/pkgs/code_assets/doc/schema/sdk/shared_definitions.generated.schema.json +++ b/pkgs/code_assets/doc/schema/sdk/shared_definitions.generated.schema.json @@ -9,7 +9,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildInput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput" @@ -25,7 +25,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildOutput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput" @@ -38,7 +38,7 @@ "HookInput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookInput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput" @@ -51,7 +51,7 @@ "HookOutput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookOutput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput" @@ -67,7 +67,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkInput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput" @@ -83,7 +83,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkOutput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput" diff --git a/pkgs/code_assets/doc/schema/shared/shared_definitions.generated.schema.json b/pkgs/code_assets/doc/schema/shared/shared_definitions.generated.schema.json index 60794ee775..f3629226be 100644 --- a/pkgs/code_assets/doc/schema/shared/shared_definitions.generated.schema.json +++ b/pkgs/code_assets/doc/schema/shared/shared_definitions.generated.schema.json @@ -9,7 +9,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildInput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildInput" } ] }, @@ -19,7 +19,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildOutput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildOutput" }, { "properties": { @@ -48,7 +48,7 @@ "Config": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/Config" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/Config" }, { "$ref": "shared_definitions.schema.json#/definitions/Config" @@ -58,7 +58,7 @@ "HookInput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/HookInput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/HookInput" }, { "properties": { @@ -72,7 +72,7 @@ "HookOutput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/HookOutput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/HookOutput" }, { "properties": { @@ -92,7 +92,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkInput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkInput" }, { "properties": { @@ -112,7 +112,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkOutput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkOutput" } ] } diff --git a/pkgs/code_assets/doc/schema/shared/shared_definitions.schema.json b/pkgs/code_assets/doc/schema/shared/shared_definitions.schema.json index 11a332bcec..e7263c3a63 100644 --- a/pkgs/code_assets/doc/schema/shared/shared_definitions.schema.json +++ b/pkgs/code_assets/doc/schema/shared/shared_definitions.schema.json @@ -63,7 +63,7 @@ ] }, "file": { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" }, "id": { "type": "string" @@ -110,13 +110,13 @@ "type": "object", "properties": { "ar": { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" }, "cc": { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" }, "env_script": { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" }, "env_script_arguments": { "type": "array", @@ -125,7 +125,7 @@ } }, "ld": { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" }, "windows": { "type": "object", @@ -140,7 +140,7 @@ } }, "script": { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" } }, "required": [ @@ -318,7 +318,7 @@ "then": { "properties": { "uri": { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/relativePath" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/relativePath" } }, "required": [ diff --git a/pkgs/code_assets/pubspec.yaml b/pkgs/code_assets/pubspec.yaml index bd1b703463..8858e75043 100644 --- a/pkgs/code_assets/pubspec.yaml +++ b/pkgs/code_assets/pubspec.yaml @@ -8,8 +8,8 @@ environment: sdk: '>=3.7.0 <4.0.0' dependencies: - hook: - path: ../hook/ + hooks: + path: ../hooks/ dev_dependencies: dart_flutter_team_lints: ^2.1.1 diff --git a/pkgs/code_assets/test/schema/helpers.dart b/pkgs/code_assets/test/schema/helpers.dart index 8cf5b7cfef..ad66bbf4f9 100644 --- a/pkgs/code_assets/test/schema/helpers.dart +++ b/pkgs/code_assets/test/schema/helpers.dart @@ -2,4 +2,4 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -export '../../../hook/test/schema/helpers.dart'; +export '../../../hooks/test/schema/helpers.dart'; diff --git a/pkgs/code_assets/test/schema/schema_test.dart b/pkgs/code_assets/test/schema/schema_test.dart index 2288831e95..41421290ff 100644 --- a/pkgs/code_assets/test/schema/schema_test.dart +++ b/pkgs/code_assets/test/schema/schema_test.dart @@ -12,7 +12,7 @@ import 'helpers.dart'; void main() { final schemasUri = packageUri.resolve('doc/schema/'); - final hookSchemasUri = packageUri.resolve('../hook/doc/schema/'); + final hookSchemasUri = packageUri.resolve('../hooks/doc/schema/'); final allSchemas = loadSchemas([schemasUri, hookSchemasUri]); final testDataUri = packageUri.resolve('test/data/'); diff --git a/pkgs/data_assets/doc/schema/README.md b/pkgs/data_assets/doc/schema/README.md index b828da46a3..aee6090b77 100644 --- a/pkgs/data_assets/doc/schema/README.md +++ b/pkgs/data_assets/doc/schema/README.md @@ -14,4 +14,4 @@ These schemas document the protocol for build and link hooks with data assets. These schemas are an extension of the base protocol: -* [`package:hook`/doc/schema](../../../hook/doc/schema/) +* [`package:hooks`/doc/schema](../../../hooks/doc/schema/) diff --git a/pkgs/data_assets/doc/schema/hook/shared_definitions.generated.schema.json b/pkgs/data_assets/doc/schema/hook/shared_definitions.generated.schema.json index 5461dba1a3..ea18561a78 100644 --- a/pkgs/data_assets/doc/schema/hook/shared_definitions.generated.schema.json +++ b/pkgs/data_assets/doc/schema/hook/shared_definitions.generated.schema.json @@ -9,7 +9,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildInput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput" @@ -22,7 +22,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildOutput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/BuildOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput" @@ -32,7 +32,7 @@ "HookInput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookInput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput" @@ -42,7 +42,7 @@ "HookOutput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookOutput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/HookOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput" @@ -55,7 +55,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkInput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput" @@ -68,7 +68,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkOutput" + "$ref": "../../../../hooks/doc/schema/hook/shared_definitions.generated.schema.json#/definitions/LinkOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput" diff --git a/pkgs/data_assets/doc/schema/sdk/shared_definitions.generated.schema.json b/pkgs/data_assets/doc/schema/sdk/shared_definitions.generated.schema.json index f79ff5b988..1503f2c495 100644 --- a/pkgs/data_assets/doc/schema/sdk/shared_definitions.generated.schema.json +++ b/pkgs/data_assets/doc/schema/sdk/shared_definitions.generated.schema.json @@ -9,7 +9,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildInput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildInput" @@ -22,7 +22,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildOutput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/BuildOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/BuildOutput" @@ -32,7 +32,7 @@ "HookInput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookInput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookInput" @@ -42,7 +42,7 @@ "HookOutput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookOutput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/HookOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/HookOutput" @@ -55,7 +55,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkInput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkInput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkInput" @@ -68,7 +68,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkOutput" + "$ref": "../../../../hooks/doc/schema/sdk/shared_definitions.generated.schema.json#/definitions/LinkOutput" }, { "$ref": "../shared/shared_definitions.generated.schema.json#/definitions/LinkOutput" diff --git a/pkgs/data_assets/doc/schema/shared/shared_definitions.generated.schema.json b/pkgs/data_assets/doc/schema/shared/shared_definitions.generated.schema.json index 7d28730b5d..9e5dc0fcd5 100644 --- a/pkgs/data_assets/doc/schema/shared/shared_definitions.generated.schema.json +++ b/pkgs/data_assets/doc/schema/shared/shared_definitions.generated.schema.json @@ -9,7 +9,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildInput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildInput" } ] }, @@ -19,7 +19,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildOutput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/BuildOutput" }, { "properties": { @@ -48,14 +48,14 @@ "HookInput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/HookInput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/HookInput" } ] }, "HookOutput": { "allOf": [ { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/HookOutput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/HookOutput" }, { "properties": { @@ -75,7 +75,7 @@ "$ref": "#/definitions/HookInput" }, { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkInput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkInput" }, { "properties": { @@ -95,7 +95,7 @@ "$ref": "#/definitions/HookOutput" }, { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkOutput" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/LinkOutput" } ] } diff --git a/pkgs/data_assets/doc/schema/shared/shared_definitions.schema.json b/pkgs/data_assets/doc/schema/shared/shared_definitions.schema.json index 7450aa3148..3146f7d232 100644 --- a/pkgs/data_assets/doc/schema/shared/shared_definitions.schema.json +++ b/pkgs/data_assets/doc/schema/shared/shared_definitions.schema.json @@ -27,7 +27,7 @@ "then": { "properties": { "file": { - "$ref": "../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" + "$ref": "../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/absolutePath" }, "name": { "type": "string" diff --git a/pkgs/data_assets/pubspec.yaml b/pkgs/data_assets/pubspec.yaml index d1fae6c832..82f5eee0bf 100644 --- a/pkgs/data_assets/pubspec.yaml +++ b/pkgs/data_assets/pubspec.yaml @@ -8,8 +8,8 @@ environment: sdk: '>=3.7.0 <4.0.0' dependencies: - hook: - path: ../hook/ + hooks: + path: ../hooks/ dev_dependencies: dart_flutter_team_lints: ^2.1.1 diff --git a/pkgs/data_assets/test/schema/helpers.dart b/pkgs/data_assets/test/schema/helpers.dart index 8cf5b7cfef..ad66bbf4f9 100644 --- a/pkgs/data_assets/test/schema/helpers.dart +++ b/pkgs/data_assets/test/schema/helpers.dart @@ -2,4 +2,4 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -export '../../../hook/test/schema/helpers.dart'; +export '../../../hooks/test/schema/helpers.dart'; diff --git a/pkgs/data_assets/test/schema/schema_test.dart b/pkgs/data_assets/test/schema/schema_test.dart index 94687390cf..4fe912805c 100644 --- a/pkgs/data_assets/test/schema/schema_test.dart +++ b/pkgs/data_assets/test/schema/schema_test.dart @@ -8,7 +8,7 @@ import 'helpers.dart'; void main() { final schemasUri = packageUri.resolve('doc/schema/'); - final hookSchemasUri = packageUri.resolve('../hook/doc/schema/'); + final hookSchemasUri = packageUri.resolve('../hooks/doc/schema/'); final allSchemas = loadSchemas([schemasUri, hookSchemasUri]); final testDataUri = packageUri.resolve('test/data/'); diff --git a/pkgs/hook/analysis_options.yaml b/pkgs/hooks/analysis_options.yaml similarity index 100% rename from pkgs/hook/analysis_options.yaml rename to pkgs/hooks/analysis_options.yaml diff --git a/pkgs/hook/doc/schema/README.md b/pkgs/hooks/doc/schema/README.md similarity index 100% rename from pkgs/hook/doc/schema/README.md rename to pkgs/hooks/doc/schema/README.md diff --git a/pkgs/hook/doc/schema/sdk/build_input.generated.schema.json b/pkgs/hooks/doc/schema/hook/build_input.generated.schema.json similarity index 85% rename from pkgs/hook/doc/schema/sdk/build_input.generated.schema.json rename to pkgs/hooks/doc/schema/hook/build_input.generated.schema.json index c7ff4b332b..36da7f6dc8 100644 --- a/pkgs/hook/doc/schema/sdk/build_input.generated.schema.json +++ b/pkgs/hooks/doc/schema/hook/build_input.generated.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.", - "title": "package:hook party:sdk BuildInput", + "title": "package:hooks party:hook BuildInput", "allOf": [ { "$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput" diff --git a/pkgs/hook/doc/schema/hook/build_output.generated.schema.json b/pkgs/hooks/doc/schema/hook/build_output.generated.schema.json similarity index 85% rename from pkgs/hook/doc/schema/hook/build_output.generated.schema.json rename to pkgs/hooks/doc/schema/hook/build_output.generated.schema.json index 5905b3f3a2..b977fbfc52 100644 --- a/pkgs/hook/doc/schema/hook/build_output.generated.schema.json +++ b/pkgs/hooks/doc/schema/hook/build_output.generated.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.", - "title": "package:hook party:hook BuildOutput", + "title": "package:hooks party:hook BuildOutput", "allOf": [ { "$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput" diff --git a/pkgs/hook/doc/schema/hook/link_input.generated.schema.json b/pkgs/hooks/doc/schema/hook/link_input.generated.schema.json similarity index 85% rename from pkgs/hook/doc/schema/hook/link_input.generated.schema.json rename to pkgs/hooks/doc/schema/hook/link_input.generated.schema.json index 673d45703c..83a6eb5319 100644 --- a/pkgs/hook/doc/schema/hook/link_input.generated.schema.json +++ b/pkgs/hooks/doc/schema/hook/link_input.generated.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.", - "title": "package:hook party:hook LinkInput", + "title": "package:hooks party:hook LinkInput", "allOf": [ { "$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput" diff --git a/pkgs/hook/doc/schema/sdk/link_output.generated.schema.json b/pkgs/hooks/doc/schema/hook/link_output.generated.schema.json similarity index 85% rename from pkgs/hook/doc/schema/sdk/link_output.generated.schema.json rename to pkgs/hooks/doc/schema/hook/link_output.generated.schema.json index fb73af43ce..9689472372 100644 --- a/pkgs/hook/doc/schema/sdk/link_output.generated.schema.json +++ b/pkgs/hooks/doc/schema/hook/link_output.generated.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.", - "title": "package:hook party:sdk LinkOutput", + "title": "package:hooks party:hook LinkOutput", "allOf": [ { "$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput" diff --git a/pkgs/hook/doc/schema/sdk/shared_definitions.generated.schema.json b/pkgs/hooks/doc/schema/hook/shared_definitions.generated.schema.json similarity index 96% rename from pkgs/hook/doc/schema/sdk/shared_definitions.generated.schema.json rename to pkgs/hooks/doc/schema/hook/shared_definitions.generated.schema.json index 607da1301e..12316c49ee 100644 --- a/pkgs/hook/doc/schema/sdk/shared_definitions.generated.schema.json +++ b/pkgs/hooks/doc/schema/hook/shared_definitions.generated.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "$comment": "This schema was automatically generated. It combines various definitions into new definitions.", - "title": "package:hook party:sdk shared definitions generated", + "title": "package:hooks party:hook shared definitions generated", "definitions": { "BuildInput": { "allOf": [ diff --git a/pkgs/hook/doc/schema/hook/shared_definitions.schema.json b/pkgs/hooks/doc/schema/hook/shared_definitions.schema.json similarity index 95% rename from pkgs/hook/doc/schema/hook/shared_definitions.schema.json rename to pkgs/hooks/doc/schema/hook/shared_definitions.schema.json index dc09bda637..17d5756811 100644 --- a/pkgs/hook/doc/schema/hook/shared_definitions.schema.json +++ b/pkgs/hooks/doc/schema/hook/shared_definitions.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft-07/schema#", - "title": "package:hook party:hook shared definitions", + "title": "package:hooks party:hook shared definitions", "definitions": { "BuildInput": {}, "BuildOutput": { diff --git a/pkgs/hook/doc/schema/hook/build_input.generated.schema.json b/pkgs/hooks/doc/schema/sdk/build_input.generated.schema.json similarity index 85% rename from pkgs/hook/doc/schema/hook/build_input.generated.schema.json rename to pkgs/hooks/doc/schema/sdk/build_input.generated.schema.json index 52f18a64d4..6850b9b01e 100644 --- a/pkgs/hook/doc/schema/hook/build_input.generated.schema.json +++ b/pkgs/hooks/doc/schema/sdk/build_input.generated.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.", - "title": "package:hook party:hook BuildInput", + "title": "package:hooks party:sdk BuildInput", "allOf": [ { "$ref": "shared_definitions.generated.schema.json#/definitions/BuildInput" diff --git a/pkgs/hook/doc/schema/sdk/build_output.generated.schema.json b/pkgs/hooks/doc/schema/sdk/build_output.generated.schema.json similarity index 85% rename from pkgs/hook/doc/schema/sdk/build_output.generated.schema.json rename to pkgs/hooks/doc/schema/sdk/build_output.generated.schema.json index d282011e8a..73ce50c9b0 100644 --- a/pkgs/hook/doc/schema/sdk/build_output.generated.schema.json +++ b/pkgs/hooks/doc/schema/sdk/build_output.generated.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.", - "title": "package:hook party:sdk BuildOutput", + "title": "package:hooks party:sdk BuildOutput", "allOf": [ { "$ref": "shared_definitions.generated.schema.json#/definitions/BuildOutput" diff --git a/pkgs/hook/doc/schema/sdk/link_input.generated.schema.json b/pkgs/hooks/doc/schema/sdk/link_input.generated.schema.json similarity index 85% rename from pkgs/hook/doc/schema/sdk/link_input.generated.schema.json rename to pkgs/hooks/doc/schema/sdk/link_input.generated.schema.json index 68edff723a..d11156643a 100644 --- a/pkgs/hook/doc/schema/sdk/link_input.generated.schema.json +++ b/pkgs/hooks/doc/schema/sdk/link_input.generated.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.", - "title": "package:hook party:sdk LinkInput", + "title": "package:hooks party:sdk LinkInput", "allOf": [ { "$ref": "shared_definitions.generated.schema.json#/definitions/LinkInput" diff --git a/pkgs/hook/doc/schema/hook/link_output.generated.schema.json b/pkgs/hooks/doc/schema/sdk/link_output.generated.schema.json similarity index 85% rename from pkgs/hook/doc/schema/hook/link_output.generated.schema.json rename to pkgs/hooks/doc/schema/sdk/link_output.generated.schema.json index 570582b2a5..b9ede45a5b 100644 --- a/pkgs/hook/doc/schema/hook/link_output.generated.schema.json +++ b/pkgs/hooks/doc/schema/sdk/link_output.generated.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "$comment": "This schema was automatically generated. It is the schema for a json file in the build/link hook protocol.", - "title": "package:hook party:hook LinkOutput", + "title": "package:hooks party:sdk LinkOutput", "allOf": [ { "$ref": "shared_definitions.generated.schema.json#/definitions/LinkOutput" diff --git a/pkgs/hook/doc/schema/hook/shared_definitions.generated.schema.json b/pkgs/hooks/doc/schema/sdk/shared_definitions.generated.schema.json similarity index 96% rename from pkgs/hook/doc/schema/hook/shared_definitions.generated.schema.json rename to pkgs/hooks/doc/schema/sdk/shared_definitions.generated.schema.json index d0d190170d..79ce249fc6 100644 --- a/pkgs/hook/doc/schema/hook/shared_definitions.generated.schema.json +++ b/pkgs/hooks/doc/schema/sdk/shared_definitions.generated.schema.json @@ -1,7 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "$comment": "This schema was automatically generated. It combines various definitions into new definitions.", - "title": "package:hook party:hook shared definitions generated", + "title": "package:hooks party:sdk shared definitions generated", "definitions": { "BuildInput": { "allOf": [ diff --git a/pkgs/hook/doc/schema/sdk/shared_definitions.schema.json b/pkgs/hooks/doc/schema/sdk/shared_definitions.schema.json similarity index 95% rename from pkgs/hook/doc/schema/sdk/shared_definitions.schema.json rename to pkgs/hooks/doc/schema/sdk/shared_definitions.schema.json index cbe0f0a176..cd6f728561 100644 --- a/pkgs/hook/doc/schema/sdk/shared_definitions.schema.json +++ b/pkgs/hooks/doc/schema/sdk/shared_definitions.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft-07/schema#", - "title": "package:hook party:sdk shared definitions", + "title": "package:hooks party:sdk shared definitions", "definitions": { "BuildInput": { "$ref": "../shared/shared_definitions.schema.json#/definitions/BuildInput", diff --git a/pkgs/hook/doc/schema/shared/shared_definitions.schema.json b/pkgs/hooks/doc/schema/shared/shared_definitions.schema.json similarity index 98% rename from pkgs/hook/doc/schema/shared/shared_definitions.schema.json rename to pkgs/hooks/doc/schema/shared/shared_definitions.schema.json index 78970aa35b..62992f9320 100644 --- a/pkgs/hook/doc/schema/shared/shared_definitions.schema.json +++ b/pkgs/hooks/doc/schema/shared/shared_definitions.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft-07/schema#", - "title": "package:hook party:shared shared definitions", + "title": "package:hooks party:shared shared definitions", "definitions": { "Asset": { "type": "object", diff --git a/pkgs/hook/pubspec.yaml b/pkgs/hooks/pubspec.yaml similarity index 94% rename from pkgs/hook/pubspec.yaml rename to pkgs/hooks/pubspec.yaml index b79c808235..85fb9a032b 100644 --- a/pkgs/hook/pubspec.yaml +++ b/pkgs/hooks/pubspec.yaml @@ -1,6 +1,6 @@ -name: hook +name: hooks version: 0.1.0-wip -repository: https://github.com/dart-lang/native/tree/main/pkgs/hook +repository: https://github.com/dart-lang/native/tree/main/pkgs/hooks publish_to: none diff --git a/pkgs/hook/test/data/build_input.json b/pkgs/hooks/test/data/build_input.json similarity index 100% rename from pkgs/hook/test/data/build_input.json rename to pkgs/hooks/test/data/build_input.json diff --git a/pkgs/hook/test/data/build_output.json b/pkgs/hooks/test/data/build_output.json similarity index 100% rename from pkgs/hook/test/data/build_output.json rename to pkgs/hooks/test/data/build_output.json diff --git a/pkgs/hook/test/data/build_output_windows.json b/pkgs/hooks/test/data/build_output_windows.json similarity index 100% rename from pkgs/hook/test/data/build_output_windows.json rename to pkgs/hooks/test/data/build_output_windows.json diff --git a/pkgs/hook/test/data/link_input.json b/pkgs/hooks/test/data/link_input.json similarity index 100% rename from pkgs/hook/test/data/link_input.json rename to pkgs/hooks/test/data/link_input.json diff --git a/pkgs/hook/test/data/link_output.json b/pkgs/hooks/test/data/link_output.json similarity index 100% rename from pkgs/hook/test/data/link_output.json rename to pkgs/hooks/test/data/link_output.json diff --git a/pkgs/hook/test/schema/helpers.dart b/pkgs/hooks/test/schema/helpers.dart similarity index 99% rename from pkgs/hook/test/schema/helpers.dart rename to pkgs/hooks/test/schema/helpers.dart index 8fc1117d1b..2f4895eae0 100644 --- a/pkgs/hook/test/schema/helpers.dart +++ b/pkgs/hooks/test/schema/helpers.dart @@ -83,11 +83,11 @@ AllSchemas loadSchemas(List directories) { if (ref.startsWith('/')) { ref = ref.substring(1); } - if (ref.startsWith('hook/doc/schema/')) { + if (ref.startsWith('hooks/doc/schema/')) { ref = '../../../../$ref'; } else if (ref.startsWith('shared/')) { ref = '../$ref'; - } else if (ref.startsWith('../../../hook/doc/schema/')) { + } else if (ref.startsWith('../../../hooks/doc/schema/')) { ref = '../$ref'; } final x = entry.key.resolve(ref); diff --git a/pkgs/hook/test/schema/schema_test.dart b/pkgs/hooks/test/schema/schema_test.dart similarity index 85% rename from pkgs/hook/test/schema/schema_test.dart rename to pkgs/hooks/test/schema/schema_test.dart index 4edb0cc6bb..c163281d7d 100644 --- a/pkgs/hook/test/schema/schema_test.dart +++ b/pkgs/hooks/test/schema/schema_test.dart @@ -6,7 +6,7 @@ import 'helpers.dart'; void main() { final schemasUri = packageUri.resolve('doc/schema/'); - final hookSchemasUri = packageUri.resolve('../hook/doc/schema/'); + final hookSchemasUri = packageUri.resolve('../hooks/doc/schema/'); final allSchemas = loadSchemas([schemasUri, hookSchemasUri]); final testDataUri = packageUri.resolve('test/data/'); @@ -21,4 +21,4 @@ void main() { ); } -Uri packageUri = findPackageRoot('hook'); +Uri packageUri = findPackageRoot('hooks'); diff --git a/pkgs/hook/tool/generate_schemas.dart b/pkgs/hooks/tool/generate_schemas.dart similarity index 91% rename from pkgs/hook/tool/generate_schemas.dart rename to pkgs/hooks/tool/generate_schemas.dart index f44ac8285b..e13c9d77a2 100644 --- a/pkgs/hook/tool/generate_schemas.dart +++ b/pkgs/hooks/tool/generate_schemas.dart @@ -13,7 +13,7 @@ void main() { generateEntryPoints(); } -Uri packageUri = findPackageRoot('hook'); +Uri packageUri = findPackageRoot('hooks'); const jsonEncoder = JsonEncoder.withIndent(' '); @@ -21,7 +21,7 @@ enum Party { hook, shared, sdk } enum Hook { build, hook, link } -const packages = ['hook', 'code_assets', 'data_assets']; +const packages = ['hooks', 'code_assets', 'data_assets']; void generateSharedDefinitions() { const hookOutputAssetOverride = { @@ -72,7 +72,7 @@ void generateSharedDefinitions() { 'allOf': [ { r'$ref': - '../../../../hook/doc/schema/shared/shared_definitions.schema.json#/definitions/Config', + '../../../../hooks/doc/schema/shared/shared_definitions.schema.json#/definitions/Config', }, {r'$ref': 'shared_definitions.schema.json#/definitions/Config'}, ], @@ -81,7 +81,7 @@ void generateSharedDefinitions() { for (final package in packages) { for (final party in Party.values) { - if (package == 'hook' && party == Party.shared) continue; + if (package == 'hooks' && party == Party.shared) continue; final schemaUri = packageUri.resolve( '../$package/doc/schema/${party.name}/' 'shared_definitions.generated.schema.json', @@ -104,15 +104,15 @@ void generateSharedDefinitions() { r'$ref': '#/definitions/${definitionName(Hook.hook, inputOrOutput)}', }, - if (package != 'hook') + if (package != 'hooks') { r'$ref': - '../../../../hook/doc/schema/${party.name}/shared_definitions${party == Party.shared ? '' : '.generated'}.schema.json#/definitions/${definitionName(hook, inputOrOutput)}', + '../../../../hooks/doc/schema/${party.name}/shared_definitions${party == Party.shared ? '' : '.generated'}.schema.json#/definitions/${definitionName(hook, inputOrOutput)}', }, if (party != Party.shared) { r'$ref': - '../shared/shared_definitions${package == 'hook' ? '' : '.generated'}.schema.json#/definitions/${definitionName(hook, inputOrOutput)}', + '../shared/shared_definitions${package == 'hooks' ? '' : '.generated'}.schema.json#/definitions/${definitionName(hook, inputOrOutput)}', }, if (package != 'data_assets' && party != Party.shared) { diff --git a/pkgs/hook/tool/generate_syntax.dart b/pkgs/hooks/tool/generate_syntax.dart similarity index 93% rename from pkgs/hook/tool/generate_syntax.dart rename to pkgs/hooks/tool/generate_syntax.dart index 9fd18adaea..b8bb88adfb 100644 --- a/pkgs/hook/tool/generate_syntax.dart +++ b/pkgs/hooks/tool/generate_syntax.dart @@ -10,7 +10,7 @@ import 'package:json_syntax_generator/json_syntax_generator.dart'; import '../test/schema/helpers.dart'; -const generateFor = ['hook', 'code_assets', 'data_assets']; +const generateFor = ['hooks', 'code_assets', 'data_assets']; final rootSchemas = loadSchemas([ packageUri.resolve('doc/schema/'), @@ -61,7 +61,7 @@ void main(List args) { analyzedSchema, header: ''' // This file is generated, do not edit. -// File generated by pkgs/hook/tool/generate_syntax.dart. +// File generated by pkgs/hooks/tool/generate_syntax.dart. // Must be rerun when pkgs/$packageName/doc/schema/ is modified. ''', ).generate(); @@ -74,4 +74,4 @@ void main(List args) { } } -Uri packageUri = findPackageRoot('hook'); +Uri packageUri = findPackageRoot('hooks'); diff --git a/pkgs/hook/tool/normalize.dart b/pkgs/hooks/tool/normalize.dart similarity index 99% rename from pkgs/hook/tool/normalize.dart rename to pkgs/hooks/tool/normalize.dart index ddb92adc7a..2f146ac3ed 100644 --- a/pkgs/hook/tool/normalize.dart +++ b/pkgs/hooks/tool/normalize.dart @@ -9,7 +9,7 @@ import 'package:path/path.dart' as p; import '../test/schema/helpers.dart' show findPackageRoot; void main() { - final packageUri = findPackageRoot('hook'); + final packageUri = findPackageRoot('hooks'); final directories = [ Directory.fromUri(packageUri), diff --git a/pkgs/native_assets_cli/lib/src/code_assets/config.dart b/pkgs/native_assets_cli/lib/src/code_assets/config.dart index 3c76abccc5..099bb51402 100644 --- a/pkgs/native_assets_cli/lib/src/code_assets/config.dart +++ b/pkgs/native_assets_cli/lib/src/code_assets/config.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. import '../config.dart'; -import '../hook/syntax.g.dart' as hook_syntax; +import '../hooks/syntax.g.dart' as hook_syntax; import 'architecture.dart'; import 'c_compiler_config.dart'; import 'code_asset.dart'; diff --git a/pkgs/native_assets_cli/lib/src/code_assets/syntax.g.dart b/pkgs/native_assets_cli/lib/src/code_assets/syntax.g.dart index 91a44ad1a9..8f39651d54 100644 --- a/pkgs/native_assets_cli/lib/src/code_assets/syntax.g.dart +++ b/pkgs/native_assets_cli/lib/src/code_assets/syntax.g.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. // This file is generated, do not edit. -// File generated by pkgs/hook/tool/generate_syntax.dart. +// File generated by pkgs/hooks/tool/generate_syntax.dart. // Must be rerun when pkgs/code_assets/doc/schema/ is modified. // ignore_for_file: unused_element diff --git a/pkgs/native_assets_cli/lib/src/config.dart b/pkgs/native_assets_cli/lib/src/config.dart index 497692e1fb..3476edf5c7 100644 --- a/pkgs/native_assets_cli/lib/src/config.dart +++ b/pkgs/native_assets_cli/lib/src/config.dart @@ -10,7 +10,7 @@ import 'package:pub_semver/pub_semver.dart'; import 'api/deprecation_messages.dart'; import 'encoded_asset.dart'; -import 'hook/syntax.g.dart' as syntax; +import 'hooks/syntax.g.dart' as syntax; import 'metadata.dart'; import 'utils/datetime.dart'; import 'utils/json.dart'; diff --git a/pkgs/native_assets_cli/lib/src/data_assets/syntax.g.dart b/pkgs/native_assets_cli/lib/src/data_assets/syntax.g.dart index 3c72dbd9f0..cafb475f15 100644 --- a/pkgs/native_assets_cli/lib/src/data_assets/syntax.g.dart +++ b/pkgs/native_assets_cli/lib/src/data_assets/syntax.g.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. // This file is generated, do not edit. -// File generated by pkgs/hook/tool/generate_syntax.dart. +// File generated by pkgs/hooks/tool/generate_syntax.dart. // Must be rerun when pkgs/data_assets/doc/schema/ is modified. // ignore_for_file: unused_element diff --git a/pkgs/native_assets_cli/lib/src/encoded_asset.dart b/pkgs/native_assets_cli/lib/src/encoded_asset.dart index 1b555998ad..5d0b9f567f 100644 --- a/pkgs/native_assets_cli/lib/src/encoded_asset.dart +++ b/pkgs/native_assets_cli/lib/src/encoded_asset.dart @@ -4,7 +4,7 @@ import 'package:collection/collection.dart'; -import 'hook/syntax.g.dart' as syntax; +import 'hooks/syntax.g.dart' as syntax; import 'utils/json.dart'; /// An encoding of a particular asset type. diff --git a/pkgs/native_assets_cli/lib/src/hook/syntax.g.dart b/pkgs/native_assets_cli/lib/src/hooks/syntax.g.dart similarity index 99% rename from pkgs/native_assets_cli/lib/src/hook/syntax.g.dart rename to pkgs/native_assets_cli/lib/src/hooks/syntax.g.dart index c1b025214e..a16e8327ff 100644 --- a/pkgs/native_assets_cli/lib/src/hook/syntax.g.dart +++ b/pkgs/native_assets_cli/lib/src/hooks/syntax.g.dart @@ -3,8 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // This file is generated, do not edit. -// File generated by pkgs/hook/tool/generate_syntax.dart. -// Must be rerun when pkgs/hook/doc/schema/ is modified. +// File generated by pkgs/hooks/tool/generate_syntax.dart. +// Must be rerun when pkgs/hooks/doc/schema/ is modified. // ignore_for_file: unused_element diff --git a/pkgs/native_assets_cli/lib/src/validation.dart b/pkgs/native_assets_cli/lib/src/validation.dart index 1c798ffee7..398d355aec 100644 --- a/pkgs/native_assets_cli/lib/src/validation.dart +++ b/pkgs/native_assets_cli/lib/src/validation.dart @@ -5,7 +5,7 @@ import 'dart:io'; import '../native_assets_cli_builder.dart'; -import 'hook/syntax.g.dart' as syntax; +import 'hooks/syntax.g.dart' as syntax; typedef ValidationErrors = List;