So I can create a list just with ensure:
sp.web.lists.ensure(list)
.then((ler: ListEnsureResult) => {
if (ler.created) {
console.log(list, " was created; creating column");
ler.list.fields.addText("myTestColumn");
}
return ler.created;
});
But is not creating a column.
I have also tried code samples from here and here, neither of which have worked.