Skip to content

Commit 6b3f1c8

Browse files
ihabadhamclaude
andcommitted
Update test files and source code with unscoped package name
Fix ESLint errors from CI by updating all remaining references from @shakacode-tools/react-on-rails-pro-node-renderer to react-on-rails-pro-node-renderer. Files updated: - react_on_rails_pro/spec/dummy/client/node-renderer.js (3 requires) - react_on_rails_pro/packages/node-renderer/src/integrations/api.ts (JSDoc example) - react_on_rails_pro/spec/dummy/package.json (dependency + yalc link) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 32ef93d commit 6b3f1c8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

react_on_rails_pro/packages/node-renderer/src/integrations/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @example
55
* ```ts
66
* import Bugsnag from '@bugsnag/js';
7-
* import { addNotifier, setupTracing } from '@shakacode-tools/react-on-rails-pro-node-renderer/integrations/api';
7+
* import { addNotifier, setupTracing } from 'react-on-rails-pro-node-renderer/integrations/api';
88
* Bugsnag.start({ ... });
99
*
1010
* addNotifier((msg) => { Bugsnag.notify(msg); });

react_on_rails_pro/spec/dummy/client/node-renderer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ const Sentry = require('@sentry/node');
55
const { env } = process;
66

77
// Use this for package installation test:
8-
const { reactOnRailsProNodeRenderer } = require('@shakacode-tools/react-on-rails-pro-node-renderer');
8+
const { reactOnRailsProNodeRenderer } = require('react-on-rails-pro-node-renderer');
99

1010
Honeybadger.configure({
1111
// This is a test account for React on Rails Pro. Substitute your own.
1212
apiKey: 'a602365c',
1313
environment: process.env.NODE_ENV ?? 'development',
1414
});
15-
require('@shakacode-tools/react-on-rails-pro-node-renderer/integrations/honeybadger').init();
15+
require('react-on-rails-pro-node-renderer/integrations/honeybadger').init();
1616

1717
// This is a test account for React on Rails Pro.
1818
// Substitute your own DSN.
@@ -25,7 +25,7 @@ Sentry.init({
2525
// Sentry recommends adjusting this value in production, or using tracesSampler for finer control
2626
tracesSampleRate: 1.0,
2727
});
28-
require('@shakacode-tools/react-on-rails-pro-node-renderer/integrations/sentry').init({ tracing: true });
28+
require('react-on-rails-pro-node-renderer/integrations/sentry').init({ tracing: true });
2929

3030
const config = {
3131
// This is the default but avoids searching for the Rails root

react_on_rails_pro/spec/dummy/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@loadable/server": "^5.16.2",
1818
"@loadable/webpack-plugin": "^5.15.2",
1919
"@sentry/node": "^7.120.0",
20-
"@shakacode-tools/react-on-rails-pro-node-renderer": "link:.yalc/@shakacode-tools/react-on-rails-pro-node-renderer",
20+
"react-on-rails-pro-node-renderer": "link:.yalc/react-on-rails-pro-node-renderer",
2121
"@shakacode/use-ssr-computation.macro": "^1.2.4",
2222
"@shakacode/use-ssr-computation.runtime": "^2.0.0",
2323
"@webpack-cli/serve": "^1.6.0",
@@ -98,7 +98,7 @@
9898
"test": "yarn run build:test && yarn run lint && rspec",
9999
"lint": "cd ../.. && nps lint",
100100
"e2e-test": "playwright test",
101-
"preinstall": "yarn run link-source && yalc add --link react-on-rails-pro && cd .yalc/react-on-rails-pro && yalc add --link react-on-rails && cd ../.. && yalc add --link @shakacode-tools/react-on-rails-pro-node-renderer",
101+
"preinstall": "yarn run link-source && yalc add --link react-on-rails-pro && cd .yalc/react-on-rails-pro && yalc add --link react-on-rails && cd ../.. && yalc add --link react-on-rails-pro-node-renderer",
102102
"link-source": "cd ../../.. && yarn && yarn run yalc:publish && cd react_on_rails_pro && yarn && yalc publish",
103103
"postinstall": "test -f post-yarn-install.local && ./post-yarn-install.local || true",
104104
"build:test": "rm -rf public/webpack/test && rm -rf ssr-generated && RAILS_ENV=test NODE_ENV=test bin/shakapacker",

0 commit comments

Comments
 (0)