Skip to content

Commit 1c0991b

Browse files
author
Adam Plesnik
committed
Add tsconfig, use CommonJS module, 0.0.9
1 parent dc0c244 commit 1c0991b

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adam.plesnik/tailwindcss-scroll-driven-animations",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"author": "Adam Plesnik <[email protected]>",
55
"scripts": {
66
"build": "swc ./src/index.js --out-dir ./dist"

Diff for: src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import plugin from 'tailwindcss/plugin'
22

3-
module.exports = plugin(
3+
export = plugin(
44
function ({ matchUtilities, theme }) {
55
matchUtilities(
66
{

Diff for: tsconfig.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"compilerOptions": {
3+
"allowJs": true,
4+
"declaration": true,
5+
"declarationDir": "dist",
6+
"declarationMap": false,
7+
"esModuleInterop": true,
8+
"lib": ["ES2020"],
9+
"module": "CommonJS",
10+
"moduleResolution": "node",
11+
"outDir": "dist",
12+
"strict": true,
13+
"stripInternal": true,
14+
"target": "es2020"
15+
},
16+
"include": ["./src/index.ts"]
17+
}

0 commit comments

Comments
 (0)