Skip to content

chore(scaffold): run init via @rtcamp/wp-tooling/init#721

Draft
aryanjasala wants to merge 1 commit into
feat/hmrfrom
feat/init-via-wp-tooling
Draft

chore(scaffold): run init via @rtcamp/wp-tooling/init#721
aryanjasala wants to merge 1 commit into
feat/hmrfrom
feat/init-via-wp-tooling

Conversation

@aryanjasala

Copy link
Copy Markdown
Member

What this does

Switches npm run init to the relocated init engine: require('@rtcamp/wp-tooling/init') instead of probing vendor/rtcamp/wp-framework/bin/scaffold.js. The engine is now an npm dependency, not a Composer vendor path.

Changes

  • bin/init.js — require the engine from @rtcamp/wp-tooling/init; drop the vendor existence check and the now-unused fs require.

Blocked on

rtCamp/wp-tooling#32 (the ./init export) being published + bumping the @rtcamp/wp-tooling version pin here. Until then npm run init resolves the engine only via a local link/pack. Draft until published.

Resolve the init engine from the @rtcamp/wp-tooling npm dependency instead of probing vendor/rtcamp/wp-framework. Drops the Composer vendor path and the fs existence check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant