Skip to content

Commit

Permalink
Switching to ESM dev environment. (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail authored Dec 27, 2023
1 parent 5d8d25f commit 4761aeb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions ui/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"env": {
"es6": true,
"es2022": true,
"browser": true
},
"extends": [
Expand All @@ -10,8 +10,8 @@
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script",
"ecmaVersion": "latest",
"sourceType": "module",
"project": true
},
"plugins": [
Expand All @@ -23,7 +23,7 @@
},
"overrides": [
{
"files": ["*.config.*ts", "mocks/*.ts"],
"files": ["*.config.ts", "mocks/*.ts"],
"rules": {
"import/no-extraneous-dependencies": "off"
}
Expand Down
1 change: 1 addition & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "The UI scripts for OctoRelay plugin",
"version": "1.0.0",
"private": true,
"type": "module",
"author": {
"name": "Anna Bocharova",
"url": "https://github.com/RobinTail"
Expand Down
4 changes: 2 additions & 2 deletions ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"target": "ES6",
"module": "CommonJS",
"moduleResolution": "Node",
"module": "ES2022",
"moduleResolution": "Bundler",
"removeComments": true
},
"exclude": [
Expand Down
1 change: 1 addition & 0 deletions ui/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default defineConfig({
entry: ["octorelay.ts"],
outDir: "../octoprint_octorelay/static/js",
format: "cjs",
outExtension: () => ({ js: ".js" }),
splitting: false,
sourcemap: false,
clean: true,
Expand Down
File renamed without changes.

0 comments on commit 4761aeb

Please sign in to comment.