polylith

Mark Wardle 2025-10-04T15:38:53.180909Z

Hi just upgraded to 0.3.0 but get an error now about a missing key. I'm not using Clojurescript at the moment, but do have a package.json as I'm using tailwind. mark@mbp21 pc4 % poly info Validation error in ./package.json: {:workspaces ["missing required key"]} mark@mbp21 pc4 % cat package.json { "name": "pc4", "private": true, "devDependencies": { "tailwindcss": "^3.4.3" }, "dependencies": { "@tailwindcss/forms": "^0.5.10", "@tailwindcss/typography": "^0.5.16", "autoprefixer": "^10.4.21", "postcss": "^8.5.6" } } mark@mbp21 pc4 % cat workspace.edn {:top-namespace "pc4" :interface-ns "interface" :default-profile-name "default" :compact-views #{} :vcs {:name "git" :auto-add false} :tag-patterns {:stable "stable-*" :release "v[0-9]*"} ;:test {:create-test-runner [org.corfield.external-test-runner.interface/create]} :projects {"development" {:alias "dev"} "workbench-server" {:alias "wb"} "araf-server" {:alias "arf"} "araf-manager" {:alias "arm"}}}

Mark Wardle 2025-10-04T15:39:36.066069Z

My whole project is https://github.com/wardle/pc4

Mark Wardle 2025-10-04T15:42:18.019919Z

I think my package.json has the minimal keys for operation, but obviously poly thinks something is missing?

tengstrand 2025-10-04T15:59:27.019339Z

I’m away from keyboard at the moment. Looks like this key should’t be required.

Mark Wardle 2025-10-04T17:39:20.943759Z

Yes I think workspaces is an optional key. See https://docs.npmjs.com/cli/v7/configuring-npm/package-json#workspaces and if I add an empty workspaces key to my package.json, poly is happy to proceed.... mark@mbp21 pc4 % cat package.json { "name": "pc4", "workspaces": [], "private": true, "devDependencies": { "tailwindcss": "^3.4.3" }, "dependencies": { "@tailwindcss/forms": "^0.5.10", "@tailwindcss/typography": "^0.5.16", "autoprefixer": "^10.4.21", "postcss": "^8.5.6" } } mark@mbp21 pc4 % poly info stable since: 521d84b projects: 4 interfaces: 34 bases: 3 components: 34 project alias status dev --------------------------------- --- araf-manager * arm --- --- araf-server * arf --- --- workbench-server * wb --- --- development * dev st- st-

👍 1
tengstrand 2025-10-07T14:55:05.293059Z

This has now been fixed in the latest 0.3.1-SNAPSHOT 1 release.

Mark Wardle 2025-10-07T15:50:16.155069Z

Fantastic. Thank you.

👍 1