diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 16f9e207..28623ee0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,6 +17,8 @@ For details on contributing to documentation, see [Website Directory Readme](htt git clone https://github.com/StaticJsCMS/static-cms cd static-cms yarn +cd core +yarn ``` ### Run core locally @@ -24,6 +26,7 @@ yarn > In `core` directory ```sh +cd core # if not there already yarn start ``` @@ -34,6 +37,7 @@ yarn start Starts the development server. This task runs both the `clean` and `develop` scripts. ```sh +cd core # if not there already yarn start ``` @@ -42,6 +46,7 @@ yarn start Removes the `dist` directory. ```sh +cd core # if not there already yarn clean ``` @@ -50,6 +55,7 @@ yarn clean Runs the `clean` script and builds the @static-cms/core. ```sh +cd core # if not there already yarn build ``` @@ -58,6 +64,7 @@ yarn build Formats code and docs according to our style guidelines. ```sh +cd core # if not there already yarn format ``` diff --git a/core/tsconfig.base.json b/core/tsconfig.base.json index 7e6216d5..60ee1f5f 100644 --- a/core/tsconfig.base.json +++ b/core/tsconfig.base.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "sourceMap": true, "declaration": true, "declarationDir": "dist", "emitDeclarationOnly": true, diff --git a/core/webpack.config.js b/core/webpack.config.js index 2f451958..0f2049ab 100644 --- a/core/webpack.config.js +++ b/core/webpack.config.js @@ -13,6 +13,7 @@ function moduleNameToPath(libName) { module.exports = { entry: './src/index.ts', mode: isProduction ? 'production' : 'development', + devtool: 'source-map', module: { rules: [ {