Skip to content

Commit

Permalink
Only include necessary files in npm packages (wpengine#465)
Browse files Browse the repository at this point in the history
* fix: npm ignore core package

* fix: npm ignore next package

* fix: npm ignore react package

* Update license year
  • Loading branch information
blakewilson authored Sep 14, 2021
1 parent e65693e commit a13c119
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
8 changes: 7 additions & 1 deletion packages/core/.npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
src/**/*
!src/types/wpgraphql.d.ts
.eslintignore
.prettierignore
.eslintrc.js
.prettierrc.js
.gitignore
tsconfig.json
jest.config.js
jest.setup.ts
test/**/*
tsconfig-cjs.json
gqty.config.js
2 changes: 1 addition & 1 deletion packages/core/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020 WP Engine
Copyright (c) 2021 WP Engine

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 6 additions & 1 deletion packages/next/.npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
src/**/*
!src/types/wpgraphql.d.ts
.eslintrc.js
.prettierrc.js
.eslintignore
.prettierignore
.gitignore
tsconfig.json
tsconfig-cjs.json
jest.config.js
jest.setup.ts
test/**/*
2 changes: 1 addition & 1 deletion packages/next/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020 WP Engine
Copyright (c) 2021 WP Engine

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 6 additions & 1 deletion packages/react/.npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
src/**/*
!src/types/wpgraphql.d.ts
.eslintrc.js
.prettierrc.js
.eslintignore
.prettierignore
.gitignore
tsconfig.json
tsconfig-cjs.json
jest.config.js
jest.setup.ts
test/**/*
2 changes: 1 addition & 1 deletion packages/react/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020 WP Engine
Copyright (c) 2021 WP Engine

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit a13c119

Please sign in to comment.