wonder-maze-game-utils
v1.0.1
Published
## How to install
Downloads
5
Readme
Wonder Maze Game Utils
How to install
- If not already installed,
npm install -g yalc
- Go to the project folder (
cd ./wonder-maze-game-utils
) - Execute
yarn publish
- Go to the project folder (
cd ./wonder-maze-app
or others) - Execute
yalc add wonder-maze-game-utils
If you have to configure the project
Add the following configuration to your tsconfig.json
file
{
...
"compilerOptions": {
"baseUrl": ".",
"paths": {
...
"wonder-maze-game-utils": [
"./node_modules/wonder-maze-game-utils/src/index.tsx"
]
},
...
}
}
Android
Add the following configuration to your metro.config.js
file
const path = require('path');
const thirdPartyPath = path.resolve(__dirname + '/../wonder-maze-game-utils/');
const thirdParty = {
'wonder-maze-game-utils': thirdPartyPath,
};
const watchFolders = [thirdPartyPath];
module.exports = {
resolver: {
thirdParty,
},
watchFolders,
};
How to use
- Make changes to the package
- Execute
yalc publish --push --no-scripts
- If you have dependency problems, use
yalc link wonder-maze-game-utils
in a consuming project