Skip to content

Commit 8211930

Browse files
committed
build(package): Publish under react-native-graphql-transfomer package name
1 parent 631c096 commit 8211930

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# react-native-graphql-transformer
2+
23
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors)
34

45
Seamlessly use GraphQL files with react-native >= 0.45
56

67
## Foreword
78

89
This package is inspired by the
9-
[react-native-typescript-transform](https://github.com/ds300/@bam.tech/react-native-graphql-transformer)
10+
[react-native-typescript-transform](https://github.com/ds300/react-native-typescript-transformer)
1011
repository.
1112

1213
## Goal
@@ -30,7 +31,7 @@ query PostListItemQuery($id: ID) {
3031

3132
### Step 1: Install
3233

33-
yarn add -D @bam.tech/react-native-graphql-transformer
34+
yarn add -D react-native-graphql-transformer
3435

3536
### Step 2: Configure the react native packager
3637

@@ -39,28 +40,31 @@ Add this to your rn-cli.config.js (make one if you don't have one already):
3940
```js
4041
module.exports = {
4142
getTransformModulePath() {
42-
return require.resolve("@bam.tech/react-native-graphql-transformer");
43+
return require.resolve('react-native-graphql-transformer');
4344
},
4445
getSourceExts() {
45-
return ["gql", "graphql"];
46+
return ['gql', 'graphql'];
4647
}
4748
};
4849
```
4950

5051
If you need to run the packager directly from the command line, run the
5152
following
5253

53-
react-native start --transformer node_modules/@bam.tech/react-native-graphql-transformer/index.js --sourceExts gql,graphql
54+
react-native start --transformer node_modules/react-native-graphql-transformer/index.js --sourceExts gql,graphql
5455

5556
### Step 3: Write GraphQL code!
5657

5758
## Contributors
5859

5960
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
61+
6062
<!-- prettier-ignore -->
6163
| [<img src="https://avatars1.githubusercontent.com/u/16262904?v=4" width="100px;"/><br /><sub><b>Thomas Pucci</b></sub>](https://github.com/tpucci)<br />[💻](https://github.com/bamlab/react-native-graphql-transformer/commits?author=tpucci "Code") [📖](https://github.com/bamlab/react-native-graphql-transformer/commits?author=tpucci "Documentation") [💡](#example-tpucci "Examples") |
6264
| :---: |
65+
6366
<!-- ALL-CONTRIBUTORS-LIST:END -->
67+
6468
## License
6569

6670
MIT

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@bam.tech/react-native-graphql-transformer",
2+
"name": "react-native-graphql-transformer",
33
"version": "0.1.1",
44
"description": "Transform GraphQL source files with ReactNative",
55
"main": "index.js",

0 commit comments

Comments
 (0)