Skip to content

Commit 182bda2

Browse files
authored
feat(datastore): split gapic and proto usage from the handwritten library into datastore-api (googleapis#8938)
This is in the effort to remove OwlBot from the standard repo path. A new package (datastore-api) takes care of what OwlBot used to do (shuffle in new protos and generated gapic classes). Internal: b/531788771
1 parent 4ebb13f commit 182bda2

41 files changed

Lines changed: 43 additions & 83426 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

handwritten/datastore/.OwlBot.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

handwritten/datastore/mock-server/datastore-server.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
const {dirname, resolve} = require('node:path');
15+
const {dirname, join, resolve} = require('node:path');
1616

17-
const PROTO_PATH = __dirname + '/../protos/google/datastore/v1/datastore.proto';
18-
const DATASTORE_PROTOS = __dirname + '/../protos';
17+
const API_PATH = join(dirname(require.resolve('@google-cloud/datastore-api')), '..');
18+
const DATASTORE_PROTOS = join(API_PATH, 'protos');
19+
20+
const PROTO_PATH = join(DATASTORE_PROTOS, 'google/datastore/v1/datastore.proto');
1921
const GAX_PROTOS_DIR = resolve(
2022
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
2123
// @ts-ignore

handwritten/datastore/owlbot.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

handwritten/datastore/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@
2828
],
2929
"scripts": {
3030
"clean": "gts clean",
31-
"compile": "tsc -p . && cp -r proto* build/ && cp -r system-test/data build/system-test",
32-
"compile-protos": "compileProtos src",
31+
"compile": "tsc -p . && cp -r protos build && cp -r system-test/data build/system-test",
3332
"docs": "jsdoc -c .jsdoc.js",
3433
"fix": "gts fix",
3534
"prelint": "cd samples; npm link ../; npm install",
3635
"lint": "gts check",
37-
"prepare": "npm run compile-protos && npm run compile",
36+
"prepare": "npm run compile",
3837
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
3938
"presystem-test": "npm run compile",
4039
"system-test": "mocha build/system-test --timeout 600000",
@@ -43,6 +42,7 @@
4342
"precompile": "gts clean"
4443
},
4544
"dependencies": {
45+
"@google-cloud/datastore-api": "^0.2.0",
4646
"@google-cloud/promisify": "^5.0.0",
4747
"arrify": "^2.0.0",
4848
"async-mutex": "^0.5.0",

handwritten/datastore/protos/google/cloud/common_resources.proto

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)