Skip to content

Commit

Permalink
fix: simplify package filtering during release. (#312)
Browse files Browse the repository at this point in the history
Fixes #311
  • Loading branch information
Pavel910 authored Dec 6, 2018
1 parent a5dfc8a commit e2b9994
Show file tree
Hide file tree
Showing 10 changed files with 119 additions and 131 deletions.
44 changes: 0 additions & 44 deletions packages/demo-admin/src/config/userIdentity.js

This file was deleted.

1 change: 1 addition & 0 deletions packages/webiny-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"react": "^16.4.0",
"react-dom": "^16.4.0",
"react-error-boundary": "^1.2.3",
"react-apollo": "^2.3.2",
"warning": "^4.0.2",
"webiny-compose": "0.0.0-semantically-released",
"webiny-i18n": "0.0.0-semantically-released",
Expand Down
2 changes: 1 addition & 1 deletion packages/webiny-app/src/components/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type ImageProps = Object & {
};

export type ImagePlugin = PluginType & {
type: "image-component",
type: string,
render: ImageProps => React.Node
};

Expand Down
2 changes: 1 addition & 1 deletion packages/webiny-app/src/components/withFileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type WithFileUploadOptions = {
};

export type WithFileUploadPlugin = PluginType & {
type: "with-file-upload",
type: string,
upload: (file: FileBrowserFile, options: Object) => Promise<any>
};

Expand Down
1 change: 0 additions & 1 deletion packages/webiny-cra-utils/index.js

This file was deleted.

27 changes: 0 additions & 27 deletions packages/webiny-cra-utils/package.json

This file was deleted.

18 changes: 0 additions & 18 deletions packages/webiny-cra-utils/src/babelrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/webiny-cra-utils/src/index.js

This file was deleted.

31 changes: 1 addition & 30 deletions scripts/release/utils/getPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,6 @@ const path = require("path");
const readPkg = require("read-pkg");
const globby = require("globby");

const toPublish = [
"webiny-api",
"webiny-api-cms",
"webiny-app",
"webiny-app-admin",
"webiny-app-cms",
"webiny-ui",
"webiny-compose",
"webiny-data-extractor",
"webiny-entity-memory",
"webiny-entity-mysql",
"webiny-entity",
"webiny-file-storage-local",
"webiny-file-storage-s3",
"webiny-file-storage",
"webiny-form",
"webiny-i18n-react",
"webiny-i18n",
"webiny-jimp",
"webiny-model",
"webiny-mysql-connection",
"webiny-react-router",
"webiny-service-manager",
"webiny-sql-table-mysql",
"webiny-sql-table-sync",
"webiny-sql-table",
"webiny-validation"
];

// Get packages to process
module.exports = glob => {
if (!glob) {
Expand All @@ -47,5 +18,5 @@ module.exports = glob => {
package: pkg
};
})
.filter(pkg => !pkg.package.private && toPublish.includes(pkg.name));
.filter(pkg => !pkg.package.private);
};
Loading

0 comments on commit e2b9994

Please sign in to comment.