Skip to content

Commit

Permalink
chore: Use v5.0.0 in bootstrapped userscript (#154)
Browse files Browse the repository at this point in the history
I used the command suggested in #153 to adapt the source code.

💡 `git show --color-words='build-time|(\w|\+|=)+|.'`
  • Loading branch information
SimonAlling authored Jul 31, 2024
1 parent 222d3d0 commit d05e497
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bootstrap/metadata.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Metadata } from "userscript-metadata";
import {
BuildConfig,
} from "userscripter/build";
} from "userscripter/build-time";

import U from "./src/userscript";

Expand Down
14 changes: 7 additions & 7 deletions bootstrap/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ts-preferences": "^2.0.0",
"typescript": "^3.7.4",
"userscript-metadata": "^1.0.0",
"userscripter": "4.0.0",
"userscripter": "5.0.0",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10"
}
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/src/operations.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Operation, operation } from "userscripter/lib/operations";
import { Operation, operation } from "userscripter/run-time/operations";

const OPERATIONS: ReadonlyArray<Operation<any>> = [
];
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/src/preferences.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
PreferenceManager,
} from "ts-preferences";
import { loggingResponseHandler } from "userscripter/lib/preferences";
import { loggingResponseHandler } from "userscripter/run-time/preferences";

import U from "~src/userscript";

Expand Down
4 changes: 2 additions & 2 deletions bootstrap/src/stylesheets.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ALWAYS } from "userscripter/lib/environment";
import { Stylesheets, stylesheet } from "userscripter/lib/stylesheets";
import { ALWAYS } from "userscripter/run-time/environment";
import { Stylesheets, stylesheet } from "userscripter/run-time/stylesheets";

const STYLESHEETS = {
main: stylesheet({
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
createWebpackConfig,
DEFAULT_BUILD_CONFIG,
DEFAULT_METADATA_SCHEMA,
} from "userscripter/build";
} from "userscripter/build-time";

import METADATA from "./metadata";
import * as CONFIG from "./src/config";
Expand Down

0 comments on commit d05e497

Please sign in to comment.