Skip to content

Commit

Permalink
downgrade rollup-plugin-ts to fix the ts sourcemaps generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Oct 13, 2022
1 parent df56023 commit 238bd26
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 22 deletions.
1 change: 1 addition & 0 deletions dist/pocketbase.cjs.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/pocketbase.cjs.js.map

Large diffs are not rendered by default.

File renamed without changes.
2 changes: 1 addition & 1 deletion dist/pocketbase.es.mjs.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/pocketbase.iife.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/pocketbase.iife.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/pocketbase.umd.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/pocketbase.umd.js.map

Large diffs are not rendered by default.

14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.7.1",
"version": "0.7.2",
"name": "pocketbase",
"description": "PocketBase JavaScript SDK",
"author": "Gani Georgiev",
Expand All @@ -15,7 +15,7 @@
},
"main": "./dist/pocketbase.es.mjs",
"module": "./dist/pocketbase.es.mjs",
"types": "./dist/pocketbase.es.d.mts",
"types": "./dist/pocketbase.es.d.ts",
"keywords": [
"pocketbase",
"pocketbase-js",
Expand All @@ -30,9 +30,6 @@
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/chai": "^4.2.19",
"@types/chai-as-promised": "^7.1.4",
"@types/glob": "^7.1.3",
Expand All @@ -42,13 +39,12 @@
"chai-as-promised": "^7.1.1",
"glob": "^7.1.7",
"mocha": "^9.0.1",
"node-fetch": "^3.2.8",
"rollup": "^2.63.0",
"rollup": "^2.79.1",
"rollup-plugin-terser": "^7.0.0",
"rollup-plugin-ts": "^3.0.0",
"rollup-plugin-ts": "^2.0.0",
"ts-node": "^10.0.0",
"tsconfig-paths": "^4.0.0",
"tslib": "^2.4.0",
"typescript": "^4.7.4"
"typescript": "4.6.4"
}
}
27 changes: 15 additions & 12 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default [
{
file: 'dist/pocketbase.es.mjs',
format: 'es',
sourcemap: true,
sourcemap: isProduction,
},
],
plugins: basePlugins(),
Expand All @@ -39,10 +39,11 @@ export default [
input: 'src/Client.ts',
output: [
{
name: 'PocketBase',
file: 'dist/pocketbase.umd.js',
format: 'umd',
exports: 'default',
name: 'PocketBase',
file: 'dist/pocketbase.umd.js',
format: 'umd',
exports: 'default',
sourcemap: isProduction,
},
],
plugins: basePlugins(),
Expand All @@ -56,10 +57,11 @@ export default [
input: 'src/Client.ts',
output: [
{
name: 'PocketBase',
file: 'dist/pocketbase.cjs.js',
format: 'cjs',
exports: 'default',
name: 'PocketBase',
file: 'dist/pocketbase.cjs.js',
format: 'cjs',
exports: 'default',
sourcemap: isProduction,
}
],
plugins: basePlugins(),
Expand All @@ -77,9 +79,10 @@ export default [
input: 'src/Client.ts',
output: [
{
name: 'PocketBase',
file: 'dist/pocketbase.iife.js',
format: 'iife',
name: 'PocketBase',
file: 'dist/pocketbase.iife.js',
format: 'iife',
sourcemap: isProduction,
},
],
plugins: basePlugins(),
Expand Down

0 comments on commit 238bd26

Please sign in to comment.