Making WordPress.org

Opened 4 days ago

Last modified 3 days ago

#4173 new defect

Gruntfile in wporg-plugins theme refers to script removed from wp-api package

Reported by: diddledan Owned by:
Milestone: Priority: normal
Component: Plugin Directory Keywords:


The Gruntfile.js in the wporg-plugins theme has this block:

		shell: {
			build: {
				command: './node_modules/wpapi/lib/data/update-default-routes-json.js --endpoint=https://wordpress.org/plugins/wp-json --output=./client'

The file it references, update-default-routes-json.js, is not in the distribution of wp-api on NPM since version 1.2.0. The definition in the package.json is to pull versions matching ^1.0.0 which means that 1.2.0 will be pulled in new or cleaned setups of the meta-environment. When the newer version is installed via npm, such as will occur for anyone setting up a new meta-environment system, the wporg-plugins theme build process will fail.

The removal/move of the script in wp-api was in this commit.

Change History (1)

#1 @SergeyBiryukov
3 days ago

  • Component changed from General to Plugin Directory
Note: See TracTickets for help on using tickets.