Skip to content

Commit

Permalink
fix: add source map and typings
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximBalaganskiy committed Aug 3, 2023
1 parent 2e2e18a commit 0443356
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 21 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aurelia-gridstack/monorepo",
"private": true,
"version": "4.0.0-au2",
"version": "4.0.1-au2",
"workspaces": [
"packages/aurelia-gridstack",
"packages/demo"
Expand Down
6 changes: 3 additions & 3 deletions packages/aurelia-gridstack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-gridstack",
"version": "4.0.0-au2",
"version": "4.0.1-au2",
"publishConfig": {
"access": "public"
},
Expand All @@ -17,8 +17,8 @@
"license": "MIT",
"author": "https://github.com/maximbalaganskiy",
"contributors": [],
"main": "dist/esnext/index.js",
"module": "dist/esnext/index.js",
"main": "dist/index.js",
"module": "dist/index.js",
"typings": "dist/types/index.d.ts",
"repository": {
"type": "git",
Expand Down
13 changes: 9 additions & 4 deletions packages/aurelia-gridstack/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"extends": "../../tsconfig.build.json",
"include": ["src"]
}
{
"compilerOptions": {
"sourceMap": true,
"declaration": true,
"declarationDir": "dist/types"
},
"extends": "../../tsconfig.build.json",
"include": ["src"]
}
4 changes: 2 additions & 2 deletions packages/aurelia-gridstack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function (env, { analyze }) {
return {
target: production ? 'node' : 'web',
mode: production ? 'production' : 'development',
devtool: production ? undefined : 'eval-cheap-source-map',
devtool: production ? 'source-map' : 'eval-source-map',
entry: {
// Build only plugin in production mode,
// build dev-app in non-production mode
Expand Down Expand Up @@ -72,7 +72,7 @@ module.exports = function (env, { analyze }) {
issuer: /\.html$/,
use: [cssLoader, postcssLoader]
},
{ test: /\.ts$/i, use: ['ts-loader', '@aurelia/webpack-loader'], exclude: /node_modules/ },
{ test: /\.ts$/i, use: [{ loader: 'ts-loader', options: { allowTsInNodeModules: false, configFile: 'tsconfig.build.json' } }, '@aurelia/webpack-loader'], exclude: /node_modules/ },
{
test: /[/\\](?:src|dev-app)[/\\].+\.html$/i,
use: {
Expand Down
4 changes: 2 additions & 2 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "demo",
"version": "4.0.0-au2",
"version": "4.0.1-au2",
"private": true,
"description": "",
"main": "index.js",
Expand All @@ -15,6 +15,6 @@
"author": "",
"license": "MIT",
"dependencies": {
"aurelia-gridstack": "4.0.0-au2"
"aurelia-gridstack": "4.0.1-au2"
}
}
3 changes: 0 additions & 3 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,13 @@
"noUnusedParameters": true,
"noImplicitReturns": true,
"strictNullChecks": true,
"declaration": true,
"declarationDir": "dist/types",
"forceConsistentCasingInFileNames": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noEmitHelpers": true,
"importHelpers": true,
"skipLibCheck": true,
"sourceMap": true,
"inlineSources": true,
"newLine": "lf",
"downlevelIteration": true
},
Expand Down

0 comments on commit 0443356

Please sign in to comment.