diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 2629d23..b93da67 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -45,6 +45,8 @@ jobs: with: files: | dist/umd/arabic-services.umd.js + dist/umd/arabic-services.umd.js.map dist/esm/arabic-services.esm.js + dist/esm/arabic-services.esm.js.map env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.npmignore b/.npmignore index 528c53e..5dc00f7 100644 --- a/.npmignore +++ b/.npmignore @@ -1,6 +1,3 @@ -# Source files (TypeScript) -src/ - # Testing __tests__/ coverage/ diff --git a/package.json b/package.json index 88c554f..8be1cfd 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "sideEffects": false, "files": [ "dist", + "src", "README.md", "README_AR.md", "LICENSE" diff --git a/tsconfig.json b/tsconfig.json index b51edc7..ebd29ac 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,8 @@ "module": "CommonJS", "strict": true, "declaration": true, + "declarationMap": true, + "sourceMap": true, "outDir": "./dist", "esModuleInterop": true, "skipLibCheck": true diff --git a/webpack.config.cjs b/webpack.config.cjs index 8a9e5fa..4bb4078 100644 --- a/webpack.config.cjs +++ b/webpack.config.cjs @@ -6,6 +6,7 @@ module.exports = [ // Configuration for UMD bundle entry: './src/index.ts', mode: 'production', + devtool: 'source-map', module: { rules: [ { @@ -34,6 +35,7 @@ module.exports = [ // Configuration for ESM bundle entry: './src/index.ts', mode: 'production', + devtool: 'source-map', module: { rules: [ {