@tsmodule/tsmodule 41.38.0 → 41.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -107,11 +107,11 @@ With `-b, --bundle` mode, all entry points are compiled "in-place" and runtime N
107
107
 
108
108
  TSModule itself builds with `-b, --bundle` flag, and requires only three runtime NPM dependencies:
109
109
 
110
- 1. `esbuild`, which does the heavy lifting for the build process, does not allow itself to be bundled
110
+ 1. `esbuild`, which does the heavy lifting for the build process, does not allow itself to be bundled;
111
111
  2. `typescript`, so TSModule can use the built `tsc` binary to generate `.d.ts`
112
- type declarations during builds
113
- 3. `pkg`, for building binaries with `build --binary` (which implies `--bundle`
114
- and `--standalone src/bin.ts`).
112
+ type declarations during builds; and
113
+ 3. `pkg`, for building binaries with `build --binary` (a specific standalone
114
+ bundle mode).
115
115
 
116
116
  <sub>Note: Bundling every entry point in place may not be what you want, i.e. if you
117
117
  only have a single entrypoint. In these cases, `tsmodule build -b src/index.ts`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsmodule/tsmodule",
3
3
  "platform": "node",
4
4
  "type": "module",
5
- "version": "41.38.0",
5
+ "version": "41.40.0",
6
6
  "repository": "tsmodule/tsmodule",
7
7
  "description": "Create standardized TypeScript ESM packages for Node or browser.",
8
8
  "license": "MIT",
@@ -12,6 +12,12 @@ parserOptions:
12
12
  - tsconfig.json
13
13
  - tsconfig.tests.json
14
14
 
15
- rules: {
16
- "@typescript-eslint/explicit-function-return-type": off
17
- }
15
+ rules:
16
+ "@typescript-eslint/explicit-function-return-type":
17
+ - off
18
+ "@typescript-eslint/quotes":
19
+ - error
20
+ - double
21
+ "@typescript-eslint/semi":
22
+ - error
23
+ - always
@@ -1,3 +1,3 @@
1
1
  export const helloWorld = () => {
2
- console.log('Hello World!')
3
- }
2
+ console.log("Hello World!");
3
+ };
@@ -19,6 +19,12 @@ parserOptions:
19
19
  plugins:
20
20
  - react
21
21
 
22
- rules: {
23
- "@typescript-eslint/explicit-function-return-type": off
24
- }
22
+ rules:
23
+ "@typescript-eslint/explicit-function-return-type":
24
+ - off
25
+ "@typescript-eslint/quotes":
26
+ - error
27
+ - double
28
+ "@typescript-eslint/semi":
29
+ - error
30
+ - always
@@ -1,4 +1,4 @@
1
- import { type FC, type PropsWithChildren } from 'react'
1
+ import { type FC, type PropsWithChildren } from "react";
2
2
 
3
3
  interface CardProps extends PropsWithChildren {
4
4
  href: string
@@ -9,5 +9,5 @@ export const Card: FC<CardProps> = ({ href, children }) => {
9
9
  <a href={href} className="card">
10
10
  {children}
11
11
  </a>
12
- )
13
- }
12
+ );
13
+ };
@@ -1,4 +1,4 @@
1
- import { Card } from '../Card'
1
+ import { Card } from "../Card";
2
2
 
3
3
  export const CardGrid = () => {
4
4
  return (
@@ -25,5 +25,5 @@ export const CardGrid = () => {
25
25
  </p>
26
26
  </Card>
27
27
  </div>
28
- )
29
- }
28
+ );
29
+ };
@@ -1,4 +1,4 @@
1
- import Image from 'next/image'
1
+ import Image from "next/image";
2
2
 
3
3
  export const Footer = () => {
4
4
  return (
@@ -9,11 +9,11 @@ export const Footer = () => {
9
9
  target="_blank"
10
10
  rel="noopener noreferrer"
11
11
  >
12
- Powered by{' '}
12
+ Powered by{" "}
13
13
  <span className="h-4 ml-2 flex-center">
14
14
  <Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
15
15
  </span>
16
16
  </a>
17
17
  </footer>
18
- )
19
- }
18
+ );
19
+ };
@@ -1,8 +1,8 @@
1
1
  export const GetStarted = () => {
2
2
  return (
3
3
  <p className="text-gray-700 text-center font-size-3">
4
- Get started by editing{' '}
4
+ Get started by editing{" "}
5
5
  <code className="code">pages/index.js</code>.
6
6
  </p>
7
- )
8
- }
7
+ );
8
+ };
@@ -3,5 +3,5 @@ export const Welcome = () => {
3
3
  <h1 className="text-center">
4
4
  Welcome to <a href="https://nextjs.org">Next.js!</a>
5
5
  </h1>
6
- )
7
- }
6
+ );
7
+ };
@@ -1,4 +1,4 @@
1
- export * from './Card'
2
- export * from './CardGrid'
3
- export * from './GetStarted'
4
- export * from './Welcome'
1
+ export * from "./Card";
2
+ export * from "./CardGrid";
3
+ export * from "./GetStarted";
4
+ export * from "./Welcome";
@@ -1 +1 @@
1
- export * from './components'
1
+ export * from "./components";
@@ -1,14 +1,14 @@
1
- import '../index.css'
1
+ import "../index.css";
2
2
 
3
- import type { AppProps } from 'next/app'
4
- import { StrictMode } from 'react'
3
+ import type { AppProps } from "next/app";
4
+ import { StrictMode } from "react";
5
5
 
6
6
  function App ({ Component, pageProps }: AppProps) {
7
7
  return (
8
8
  <StrictMode>
9
9
  <Component {...pageProps} />
10
10
  </StrictMode>
11
- )
11
+ );
12
12
  }
13
13
 
14
- export default App
14
+ export default App;
@@ -1,5 +1,5 @@
1
1
  // Next.js API route support: https://nextjs.org/docs/api-routes/introduction
2
- import type { NextApiRequest, NextApiResponse } from 'next'
2
+ import type { NextApiRequest, NextApiResponse } from "next";
3
3
 
4
4
  interface Data {
5
5
  name: string
@@ -9,5 +9,5 @@ export default function handler (
9
9
  _: NextApiRequest,
10
10
  res: NextApiResponse<Data>
11
11
  ) {
12
- res.status(200).json({ name: 'John Doe' })
12
+ res.status(200).json({ name: "John Doe" });
13
13
  }
@@ -1,9 +1,9 @@
1
- import Head from 'next/head'
1
+ import Head from "next/head";
2
2
 
3
- import { CardGrid } from '../components/CardGrid'
4
- import { Footer } from '../components/Footer'
5
- import { GetStarted } from '../components/GetStarted'
6
- import { Welcome } from '../components/Welcome'
3
+ import { CardGrid } from "../components/CardGrid";
4
+ import { Footer } from "../components/Footer";
5
+ import { GetStarted } from "../components/GetStarted";
6
+ import { Welcome } from "../components/Welcome";
7
7
 
8
8
  export default function Home () {
9
9
  return (
@@ -22,5 +22,5 @@ export default function Home () {
22
22
 
23
23
  <Footer />
24
24
  </>
25
- )
25
+ );
26
26
  }