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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 7 additions & 4 deletions
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": "yarn@1.22.22",
3134
"volta": {
3235
"node": "20.18.0",
3336
"yarn": "1.22.22"

packages/browser/LICENSE

Lines changed: 1 addition & 1 deletion
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

Lines changed: 7 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)