diff --git a/templates/typescript_gapic/src/$version/license.njk b/templates/typescript_gapic/_license.njk similarity index 91% rename from templates/typescript_gapic/src/$version/license.njk rename to templates/typescript_gapic/_license.njk index dfbd9c3d0..2106a4d9f 100644 --- a/templates/typescript_gapic/src/$version/license.njk +++ b/templates/typescript_gapic/_license.njk @@ -1,4 +1,5 @@ -{% macro license() %}// Copyright 2019 Google LLC +{% macro license() -%} +// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -15,4 +16,4 @@ // ** This file is automatically generated by gapic-generator-typescript. ** // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** -{% endmacro %} \ No newline at end of file +{% endmacro %} diff --git a/templates/typescript_gapic/src/$version/$service_client.ts.njk b/templates/typescript_gapic/src/$version/$service_client.ts.njk index c996557b7..7b6180fa3 100644 --- a/templates/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/typescript_gapic/src/$version/$service_client.ts.njk @@ -1,4 +1,5 @@ -{% import "./license.njk" as license %}{{license.license()}} +{% import "../../_license.njk" as license -%} +{{license.license()}} import * as gax from 'google-gax'; import * as path from 'path'; diff --git a/templates/typescript_gapic/src/$version/index.ts.njk b/templates/typescript_gapic/src/$version/index.ts.njk index 90e9e7cd1..cfde7a5fa 100644 --- a/templates/typescript_gapic/src/$version/index.ts.njk +++ b/templates/typescript_gapic/src/$version/index.ts.njk @@ -1,4 +1,5 @@ -{% import "./license.njk" as license %}{{license.license()}} +{% import "../../_license.njk" as license -%} +{{license.license()}} {% for service in api.services -%} export {{ '{' + service.name.toPascalCase() + 'Client}' }} from './{{ service.name.toSnakeCase() }}_client'; {%- endfor %} diff --git a/templates/typescript_gapic/src/index.ts.njk b/templates/typescript_gapic/src/index.ts.njk index 57691cc14..95100ab55 100644 --- a/templates/typescript_gapic/src/index.ts.njk +++ b/templates/typescript_gapic/src/index.ts.njk @@ -1,4 +1,5 @@ -{% import "././$version/license.njk" as license %}{{license.license()}} +{% import "../_license.njk" as license -%} +{{license.license()}} import * as {{ api.naming.version }} from './{{ api.naming.version }}'; export {{ '{' + api.naming.version + '}' }}; {% for service in api.services -%} diff --git a/templates/typescript_gapic/test/gapic-$service-$version.ts.njk b/templates/typescript_gapic/test/gapic-$service-$version.ts.njk index 00f0a2bbc..46a448ec8 100644 --- a/templates/typescript_gapic/test/gapic-$service-$version.ts.njk +++ b/templates/typescript_gapic/test/gapic-$service-$version.ts.njk @@ -1,4 +1,5 @@ -{% import "../src/$version/license.njk" as license %}{{license.license()}} +{% import "../_license.njk" as license -%} +{{license.license()}} 'use strict'; const assert = require('assert'); diff --git a/typescript/test/testdata/keymanager/src/v1/license.baseline b/typescript/test/testdata/keymanager/src/v1/license.baseline deleted file mode 100644 index e69de29bb..000000000 diff --git a/typescript/test/testdata/showcase/src/v1beta1/license.baseline b/typescript/test/testdata/showcase/src/v1beta1/license.baseline deleted file mode 100644 index e69de29bb..000000000 diff --git a/typescript/test/testdata/texttospeech/src/v1/license.baseline b/typescript/test/testdata/texttospeech/src/v1/license.baseline deleted file mode 100644 index e69de29bb..000000000