Skip to content

Commit ca21705

Browse files
authored
feat: Add turborepo to manage the monorepo (#20)
1 parent 13677a9 commit ca21705

40 files changed

+195
-30
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules/
22
dist/
33
.DS_Store
44
.parcel-cache/
5-
test-results/
5+
test-results/
6+
.turbo

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"license": "MIT",
55
"private": true,
66
"scripts": {
7-
"build": "rollup --config rollup.config.mjs",
8-
"test": "yarn test:node && yarn test:browser",
9-
"test:node": "cd test/node && yarn test",
10-
"test:browser": "cd test/browser && yarn test",
7+
"build": "turbo run build --filter=./packages/*",
8+
"build:watch": "turbo run build --filter=./packages/*",
9+
"test": "turbo run test --filter=./test/*",
10+
"test:node": "turbo run test --filter=./test/node",
11+
"test:browser": "turbo run test --filter=./test/browser",
1112
"lint": "biome check",
1213
"fix": "biome check --write"
1314
},
@@ -22,12 +23,14 @@
2223
"parcel": "^2.12.0",
2324
"rolldown": "^0.13.2",
2425
"rollup": "^4.22.5",
26+
"turbo": "^2.2.3",
2527
"typescript": "^5.6.2",
2628
"vite": "^5.4.8",
2729
"webpack": "^5.95.0",
2830
"webpack-cli": "^5.1.4"
2931
},
3032
"workspaces": ["packages/*", "test/*"],
33+
"packageManager": "[email protected]",
3134
"volta": {
3235
"node": "20.18.0",
3336
"yarn": "1.22.22"

packages/browser/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

packages/browser/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "@debugids/browser",
33
"version": "0.0.1",
44
"license": "MIT",
5+
"homepage": "https://getsentry.github.io/debugids/",
6+
"repository": "git://github.com/getsentry/javascript-debug-ids.git",
7+
"sideEffects": false,
58
"main": "./dist/cjs/index.js",
69
"module": "./dist/esm/index.js",
710
"types": "./dist/cjs/index.d.ts",
@@ -17,6 +20,10 @@
1720
}
1821
}
1922
},
23+
"scripts": {
24+
"build": "rollup --config rollup.config.mjs",
25+
"build:watch": "rollup --config rollup.config.mjs --watch"
26+
},
2027
"devDependencies": {
2128
"@debugids/common": "0.0.1"
2229
}

packages/browser/rollup.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { transpile } from '../../rollup.mjs';
2+
3+
export default [transpile('browser', 'cjs', true), transpile('browser', 'esm', true)];

packages/cli/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

packages/cli/package.json

+6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
"name": "@debugids/cli",
33
"version": "0.0.1",
44
"license": "MIT",
5+
"homepage": "https://getsentry.github.io/debugids/",
6+
"repository": "git://github.com/getsentry/javascript-debug-ids.git",
57
"main": "./dist/cjs/index.js",
68
"bin": {
79
"debugids": "./cli.js"
810
},
911
"engines": {
1012
"node": ">=18"
1113
},
14+
"scripts": {
15+
"build": "rollup --config rollup.config.mjs",
16+
"build:watch": "rollup --config rollup.config.mjs --watch"
17+
},
1218
"dependencies": {
1319
"@debugids/common": "0.0.1"
1420
}

packages/cli/rollup.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { transpile } from '../../rollup.mjs';
2+
3+
export default [transpile('cli', 'cjs', true)];

packages/common/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

packages/common/package.json

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "@debugids/common",
33
"version": "0.0.1",
44
"license": "MIT",
5+
"homepage": "https://getsentry.github.io/debugids/",
6+
"repository": "git://github.com/getsentry/javascript-debug-ids.git",
7+
"sideEffects": false,
58
"main": "./dist/cjs/index.js",
69
"types": "./dist/cjs/index.d.ts",
710
"exports": {
@@ -15,5 +18,8 @@
1518
"default": "./dist/cjs/index.js"
1619
}
1720
}
21+
},
22+
"scripts": {
23+
"build": "rollup --config rollup.config.mjs"
1824
}
1925
}

packages/common/rollup.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { transpile } from '../../rollup.mjs';
2+
3+
export default [transpile('common', 'cjs'), transpile('common', 'esm')];

packages/esbuild/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

packages/esbuild/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "@debugids/esbuild",
33
"version": "0.0.1",
44
"license": "MIT",
5+
"homepage": "https://getsentry.github.io/debugids/",
6+
"repository": "git://github.com/getsentry/javascript-debug-ids.git",
7+
"sideEffects": false,
58
"main": "./dist/cjs/index.js",
69
"types": "./dist/cjs/index.d.ts",
710
"exports": {
@@ -16,6 +19,10 @@
1619
}
1720
}
1821
},
22+
"scripts": {
23+
"build": "rollup --config rollup.config.mjs",
24+
"build:watch": "rollup --config rollup.config.mjs --watch"
25+
},
1926
"dependencies": {
2027
"@debugids/common": "0.0.1"
2128
}

packages/esbuild/rollup.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { transpile } from '../../rollup.mjs';
2+
3+
export default [transpile('esbuild', 'cjs'), transpile('esbuild', 'esm')];

packages/node/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

packages/node/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "@debugids/node",
33
"version": "0.0.1",
44
"license": "MIT",
5+
"homepage": "https://getsentry.github.io/debugids/",
6+
"repository": "git://github.com/getsentry/javascript-debug-ids.git",
7+
"sideEffects": false,
58
"main": "./dist/cjs/index.js",
69
"types": "./dist/cjs/index.d.ts",
710
"exports": {
@@ -16,6 +19,10 @@
1619
}
1720
}
1821
},
22+
"scripts": {
23+
"build": "rollup --config rollup.config.mjs",
24+
"build:watch": "rollup --config rollup.config.mjs --watch"
25+
},
1926
"dependencies": {
2027
"@debugids/common": "0.0.1"
2128
}

packages/node/rollup.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { transpile } from '../../rollup.mjs';
2+
3+
export default [transpile('node', 'cjs'), transpile('node', 'esm')];

packages/parcel/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

packages/parcel/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "@debugids/parcel-optimizer-debugids",
33
"version": "0.0.1",
44
"license": "MIT",
5+
"homepage": "https://getsentry.github.io/debugids/",
6+
"repository": "git://github.com/getsentry/javascript-debug-ids.git",
7+
"sideEffects": false,
58
"main": "./dist/cjs/index.js",
69
"types": "./dist/cjs/index.d.ts",
710
"exports": {
@@ -19,6 +22,10 @@
1922
"engines": {
2023
"parcel": "^2.0.0"
2124
},
25+
"scripts": {
26+
"build": "rollup --config rollup.config.mjs",
27+
"build:watch": "rollup --config rollup.config.mjs --watch"
28+
},
2229
"dependencies": {
2330
"@parcel/plugin": "^2.0.0",
2431
"@debugids/common": "0.0.1"

packages/parcel/rollup.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { transpile } from '../../rollup.mjs';
2+
3+
export default [transpile('parcel', 'cjs'), transpile('parcel', 'esm')];

packages/rolldown/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

packages/rolldown/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "@debugids/rolldown",
33
"version": "0.0.1",
44
"license": "MIT",
5+
"homepage": "https://getsentry.github.io/debugids/",
6+
"repository": "git://github.com/getsentry/javascript-debug-ids.git",
7+
"sideEffects": false,
58
"main": "./dist/cjs/index.js",
69
"types": "./dist/cjs/index.d.ts",
710
"exports": {
@@ -16,6 +19,10 @@
1619
}
1720
}
1821
},
22+
"scripts": {
23+
"build": "rollup --config rollup.config.mjs",
24+
"build:watch": "rollup --config rollup.config.mjs --watch"
25+
},
1926
"dependencies": {
2027
"@debugids/rollup": "0.0.1"
2128
}

packages/rolldown/rollup.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { transpile } from '../../rollup.mjs';
2+
3+
export default [transpile('rolldown', 'cjs'), transpile('rolldown', 'esm')];

packages/rollup/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

packages/rollup/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "@debugids/rollup",
33
"version": "0.0.1",
44
"license": "MIT",
5+
"homepage": "https://getsentry.github.io/debugids/",
6+
"repository": "git://github.com/getsentry/javascript-debug-ids.git",
7+
"sideEffects": false,
58
"main": "./dist/cjs/index.js",
69
"types": "./dist/cjs/index.d.ts",
710
"exports": {
@@ -16,6 +19,10 @@
1619
}
1720
}
1821
},
22+
"scripts": {
23+
"build": "rollup --config rollup.config.mjs",
24+
"build:watch": "rollup --config rollup.config.mjs --watch"
25+
},
1926
"dependencies": {
2027
"@debugids/common": "0.0.1"
2128
}

packages/rollup/rollup.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { transpile } from '../../rollup.mjs';
2+
3+
export default [transpile('rollup', 'cjs'), transpile('rollup', 'esm')];

packages/rspack/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

packages/rspack/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "@debugids/rspack",
33
"version": "0.0.1",
44
"license": "MIT",
5+
"homepage": "https://getsentry.github.io/debugids/",
6+
"repository": "git://github.com/getsentry/javascript-debug-ids.git",
7+
"sideEffects": false,
58
"main": "./dist/cjs/index.js",
69
"types": "./dist/cjs/index.d.ts",
710
"exports": {
@@ -16,6 +19,10 @@
1619
}
1720
}
1821
},
22+
"scripts": {
23+
"build": "rollup --config rollup.config.mjs",
24+
"build:watch": "rollup --config rollup.config.mjs --watch"
25+
},
1926
"dependencies": {
2027
"@debugids/webpack": "0.0.1"
2128
}

packages/rspack/rollup.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { transpile } from '../../rollup.mjs';
2+
3+
export default [transpile('rspack', 'cjs'), transpile('rspack', 'esm')];

packages/vite/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

packages/vite/package.json

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "@debugids/vite",
33
"version": "0.0.1",
44
"license": "MIT",
5+
"homepage": "https://getsentry.github.io/debugids/",
6+
"repository": "git://github.com/getsentry/javascript-debug-ids.git",
7+
"sideEffects": false,
58
"main": "./dist/cjs/index.js",
69
"types": "./dist/cjs/index.d.ts",
710
"exports": {
@@ -16,6 +19,10 @@
1619
}
1720
}
1821
},
22+
"scripts": {
23+
"build": "rollup --config rollup.config.mjs",
24+
"build:watch": "rollup --config rollup.config.mjs --watch"
25+
},
1926
"dependencies": {
2027
"@debugids/rollup": "0.0.1"
2128
}

packages/vite/rollup.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { transpile } from '../../rollup.mjs';
2+
3+
export default [transpile('vite', 'cjs'), transpile('vite', 'esm')];

packages/webpack/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012-2024 Functional Software, Inc. dba Sentry
3+
Copyright (c) 2024 Functional Software, Inc. dba Sentry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

0 commit comments

Comments
 (0)