Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Defining a module in package.json generates an error #83

Closed
badmotorfinger opened this issue Dec 5, 2018 · 0 comments
Closed

Defining a module in package.json generates an error #83

badmotorfinger opened this issue Dec 5, 2018 · 0 comments

Comments

@badmotorfinger
Copy link

I have a module, which when defined, generates an error. Here is my package.json

{
"name": "design-system-starter",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"pancake": {
"auto-save": true,
"plugins": true,
"ignore": [],
"json": {
"enable": false,
"location": "pancake/",
"name": "pancake",
"content": {
"name": true,
"version": true,
"dependencies": true,
"path": true,
"settings": true
}
},
"css": {
"minified": true,
"modules": false,
"browsers": [
"last 2 versions",
"ie 8",
"ie 9",
"ie 10"
],
"location": "pancake/css/",
"name": "pancake.min.css"
},
"sass": {
"modules": false,
"location": "pancake/sass/",
"name": "pancake/pancake.scss"
},
"js": {
"minified": true,
"modules": false,
"location": "pancake/js/",
"name": "pancake.min.js"
},
"react": {
"location": "pancake/react/"
},
"pancake-module": {
"version": "1.0.0",
"plugins": [
"@gov.au/pancake-sass"
],
"sass": {
"path": "lib/main.scss",
"sass-versioning": true
}
}
},
"dependencies": {
"@gov.au/accordion": "^6.0.1",
"@gov.au/body": "^2.0.12",
"@gov.au/breadcrumbs": "^3.0.2",
"@gov.au/buttons": "^3.0.4",
"@gov.au/core": "^3.1.1",
"@gov.au/cta-link": "^2.1.4",
"@gov.au/footer": "^3.0.1",
"@gov.au/header": "^4.1.6"
}
}

All I need to do is override the color scheme and I'm finding this task very difficult.

This is the error I get when running pancake. The path which it's complaining about is not the path I'm executing pancake from. The path I'm running pancake from is C:\Users\Vince\source\design-system-starter

🔥 ERROR: Couldn’t read local settings :(
🔥 ERROR: Make sure you have a package.json file availabe in the root of your project.
🔥 ERROR: Error: ENOENT: no such file or directory, open 'C:\Users\Vince\source\package.json'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant