Skip to content

Commit 286972f

Browse files
committed
👑 Fix non published dist
1 parent dbf4f85 commit 286972f

File tree

6 files changed

+35
-6
lines changed

6 files changed

+35
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ jobs:
1616
with:
1717
node-version: 12
1818
registry-url: https://registry.npmjs.org/
19-
- run: npm ci
20-
- run: npm run build
21-
- run: npm publish --access public
19+
- name: publish
20+
run: |
21+
npm ci
22+
npm run build
23+
npm publish --access public
2224
env:
2325
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

.npmignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Common generated folders
2+
node_modules
3+
generated
4+
5+
# Common development files
6+
.vscode/.*.redis
7+
.docker-volumes
8+
.env
9+
.env.local
10+
.env.*.local
11+
.eslintcache*
12+
npm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
.eslintcache
16+
17+
# Editor directories and files
18+
.idea
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?
24+
*.mo
25+
26+
# Mac users
27+
.DS_Store

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "graphql-codegen-typescript-operations-tester",
33
"version": "0.0.6",
44
"description": "graphql-code-generator plugin to generate test functions on operations",
5-
"main": "./lib/index.js",
5+
"main": "./dist/index.js",
66
"types": "./src/index.ts",
77
"scripts": {
88
"codegen": "graphql-codegen --config ./test/int/codegen.yml",
File renamed without changes.

test/int/codegen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ generates:
66
plugins:
77
- typescript
88
- typescript-operations
9-
- ../../dist/lib/index.js
9+
- ../../dist/index.js

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"sourceMap": true /* Generates corresponding '.map' file. */,
1818
// "outFile": "./", /* Concatenate and emit output to single file. */
1919
"outDir": "dist" /* Redirect output structure to the directory. */,
20-
"rootDir": "./" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
20+
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
2121
// "composite": true, /* Enable project compilation */
2222
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
2323
// "removeComments": true, /* Do not emit comments to output. */

0 commit comments

Comments
 (0)