{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/3145","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3145/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3145/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3145/events","html_url":"https://github.com/yarnpkg/yarn/issues/3145","id":221799413,"number":3145,"title":"Yarn not publishing output folder","user":{"login":"Startouf","id":7388889,"avatar_url":"https://avatars1.githubusercontent.com/u/7388889?v=4","gravatar_id":"","url":"https://api.github.com/users/Startouf","html_url":"https://github.com/Startouf","followers_url":"https://api.github.com/users/Startouf/followers","following_url":"https://api.github.com/users/Startouf/following{/other_user}","gists_url":"https://api.github.com/users/Startouf/gists{/gist_id}","starred_url":"https://api.github.com/users/Startouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Startouf/subscriptions","organizations_url":"https://api.github.com/users/Startouf/orgs","repos_url":"https://api.github.com/users/Startouf/repos","events_url":"https://api.github.com/users/Startouf/events{/privacy}","received_events_url":"https://api.github.com/users/Startouf/received_events","type":"User","site_admin":false},"labels":[{"id":594067498,"url":"https://api.github.com/repos/yarnpkg/yarn/labels/bug-publishing","name":"bug-publishing","color":"d93f0b","default":false},{"id":594046112,"url":"https://api.github.com/repos/yarnpkg/yarn/labels/triaged","name":"triaged","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-14T12:21:07Z","updated_at":"2017-08-08T18:30:51Z","closed_at":null,"body":"\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nBug report\r\n\r\n**What is the current behavior?**\r\nYarn does not publish the output files from webpack (while npm publish still does). I have tried publishing the same node module with npm and yarn, in case of npm the output is successfully exported.\r\n\r\nWIth yarn (dist folder missing): \r\n> LICENSE\t\tREADME.md\tmain.js\t\tpackage.json\r\nWIth npm\r\n> LICENSE\t\tREADME.md\tdist\t\tmain.js\t\tpackage.json\tyarn-error.log\tyarn.lock\r\n\r\nNote that the prepublish command is `rm -rf dist && webpack --progress --colors -d` and gets executed successfully both by yarn or npm\r\n\r\n```\r\nyarn prepublish v0.23.2\r\n$ rm -rf dist && webpack --progress --colors -d\r\nHash: d971e15f743892671dce\r\nVersion: webpack 1.15.0\r\nTime: 6443ms\r\n                 Asset    Size  Chunks             Chunk Names\r\n    react-coverflow.js  164 kB       0  [emitted]  react-coverflow\r\nreact-coverflow.js.map  854 kB       0  [emitted]  react-coverflow\r\n   [0] multi react-coverflow 28 bytes {0} [built]\r\n    + 185 hidden modules\r\n✨  Done in 7.91s.\r\n```\r\n\r\nContent of webpack.config.js (link to repo below)\r\n\r\n```\r\nconst path = require('path');\r\nconst glob = require('glob');\r\nconst webpack = require('webpack');\r\nconst precss = require('precss');\r\nconst autoprefixer = require('autoprefixer');\r\n\r\nconst plugins = [\r\n  new webpack.optimize.DedupePlugin(),\r\n  new webpack.optimize.UglifyJsPlugin({\r\n    compress: {\r\n      warnings: false\r\n    }\r\n  })\r\n];\r\n\r\nmodule.exports = {\r\n  entry: {\r\n    'react-coverflow': glob.sync(path.join(__dirname, './src/*.js'))\r\n  },\r\n  output: {\r\n    path: path.resolve(__dirname, \"./dist\"),\r\n    filename: '[name].js',\r\n    libraryTarget: 'umd',\r\n    library: 'react-coverflow',\r\n  },\r\n  externals: [\r\n    {\r\n      'react': {\r\n        root: 'React',\r\n        commonjs2: 'react',\r\n        commonjs: 'react',\r\n        amd: 'react'\r\n      }\r\n    },\r\n    {\r\n      'react-dom': {\r\n        root: 'ReactDOM',\r\n        commonjs2: 'react-dom',\r\n        commonjs: 'react-dom',\r\n        amd: 'react-dom'\r\n      }\r\n    }\r\n  ],\r\n  devtool: 'eval-source-map',\r\n  resolve: {\r\n    extensions: ['', '.js', '.jsx', '.json', '.scss', '.css']\r\n  },\r\n  eslint: {\r\n    configFile: './.eslintrc'\r\n  },\r\n  module: {\r\n    loaders: [\r\n      {\r\n        test: /\\.js$/,\r\n        exclude: /node_modules/,\r\n        loader: 'babel'\r\n      },\r\n      {\r\n        test: /\\.js$/,\r\n        exclude: /node_modules/,\r\n        loader: 'eslint'\r\n      },\r\n      {\r\n        test: /\\.(css|scss)$/,\r\n        loader: 'style!css?modules&importLoaders=1&localIdentName=[name]__[local]__[hash:base64:5]!sass!postcss'\r\n      }\r\n    ]\r\n  },\r\n  plugins: plugins,\r\n  postcss: function() {\r\n    return [precss, autoprefixer];\r\n  }\r\n};\r\n```\r\nI tried to publish this package https://github.com/Startouf/react-coverflow\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\nYarn v0.23.2\r\nNode v7.7.3\r\nmacOS Sierra 10.12.4"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/321042645","html_url":"https://github.com/yarnpkg/yarn/issues/3145#issuecomment-321042645","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/3145","id":321042645,"user":{"login":"bestander","id":2121048,"avatar_url":"https://avatars3.githubusercontent.com/u/2121048?v=4","gravatar_id":"","url":"https://api.github.com/users/bestander","html_url":"https://github.com/bestander","followers_url":"https://api.github.com/users/bestander/followers","following_url":"https://api.github.com/users/bestander/following{/other_user}","gists_url":"https://api.github.com/users/bestander/gists{/gist_id}","starred_url":"https://api.github.com/users/bestander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestander/subscriptions","organizations_url":"https://api.github.com/users/bestander/orgs","repos_url":"https://api.github.com/users/bestander/repos","events_url":"https://api.github.com/users/bestander/events{/privacy}","received_events_url":"https://api.github.com/users/bestander/received_events","type":"User","site_admin":false},"created_at":"2017-08-08T18:30:51Z","updated_at":"2017-08-08T18:30:51Z","body":"Help us investigate why the folder is not included.\r\npack.js files is quite small"}}
{"actor":{"display_login":"bestander"}}