Skip to content

Commit

Permalink
refactor: changed entry to mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Ciber94 committed Sep 26, 2023
1 parent 937ee82 commit eb58f53
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 98 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { generateEntrypoints } from "../../scripts/entrypoints.js";
import { generateEntrypoints } from "../../scripts/entrypoints.mjs";
import path from "path";
import { fileURLToPath } from "url";

Expand Down
2 changes: 1 addition & 1 deletion packages/animelist-auth-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"typecheck": "tsc --noEmit",
"lint": "eslint ./src",
"entrypoints": "tsx entrypoints.script.ts",
"entrypoints": "tsx entrypoints.script.mts",
"build:types": "tsc --emitDeclarationOnly",
"build:lib": "tsx esbuild.mts",
"build": "rimraf dist && pnpm build:types && pnpm build:lib && pnpm entrypoints"
Expand Down
4 changes: 2 additions & 2 deletions packages/animelist-auth-sveltekit/entrypoints.script.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { generateEntrypoints } from "../../scripts/entrypoints.module.mjs";
import { generateEntrypoints } from "../../scripts/entrypoints.mjs";
import path from "path";
import { fileURLToPath } from "url";

const packageDir = path.dirname(fileURLToPath(import.meta.url));
generateEntrypoints({ packageDir, format: 'esm' })
generateEntrypoints({ packageDir })
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { generateEntrypoints } from "../../scripts/entrypoints.js";
import { generateEntrypoints } from "../../scripts/entrypoints.mjs";
import path from "path";
import { fileURLToPath } from "url";

Expand Down
2 changes: 1 addition & 1 deletion packages/animelist-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test": "vitest run",
"test:watch": "vitest",
"lint": "eslint ./src",
"entrypoints": "tsx entrypoints.script.ts",
"entrypoints": "tsx entrypoints.script.mts",
"build:types": "tsc --emitDeclarationOnly",
"build:lib": "tsx esbuild.mts",
"build": "rimraf dist && pnpm build:types && pnpm build:lib && pnpm entrypoints"
Expand Down
2 changes: 1 addition & 1 deletion scripts/cleanUpEntrypoints.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as glob from "glob";
import fse from 'fs-extra';
import path from "path";
import { ENTRYPOINT_MARKER } from "./entrypoints.js";
import { ENTRYPOINT_MARKER } from "./entrypoints.mjs";

function main() {
console.log("Removing entry points...")
Expand Down
File renamed without changes.
91 changes: 0 additions & 91 deletions scripts/entrypoints.ts

This file was deleted.

0 comments on commit eb58f53

Please sign in to comment.