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"}}}
My whole project is https://github.com/wardle/pc4
I think my package.json has the minimal keys for operation, but obviously poly thinks something is missing?
I’m away from keyboard at the moment. Looks like this key should’t be required.
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-
This has now been fixed in the latest 0.3.1-SNAPSHOT 1 release.
Fantastic. Thank you.