File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 "name" : " @css-modules-kit/codegen" ,
33 "description" : " A tool for generating `*.d.ts` files for `*.module.css`." ,
44 "version" : " 0.7.0" ,
5- "type" : " commonjs " ,
5+ "type" : " module " ,
66 "sideEffects" : false ,
77 "repository" : {
88 "type" : " git" ,
Original file line number Diff line number Diff line change 11import { parseArgs } from 'node:util' ;
22import { resolve } from '@css-modules-kit/core' ;
3- import packageJson from '../package.json' ;
3+ import packageJson from '../package.json' with { type : 'json' } ;
44import { ParseCLIArgsError } from './error.js' ;
55
66const helpText = `
Original file line number Diff line number Diff line change 22 "name" : " @css-modules-kit/core" ,
33 "description" : " The core of css-modules-kit" ,
44 "version" : " 0.7.0" ,
5- "type" : " commonjs " ,
5+ "type" : " module " ,
66 "sideEffects" : false ,
77 "repository" : {
88 "type" : " git" ,
Original file line number Diff line number Diff line change 22 "name" : " @css-modules-kit/eslint-plugin" ,
33 "description" : " A eslint plugin for CSS Modules" ,
44 "version" : " 0.3.1" ,
5- "type" : " commonjs " ,
5+ "type" : " module " ,
66 "sideEffects" : false ,
77 "repository" : {
88 "type" : " git" ,
Original file line number Diff line number Diff line change 11import type { ESLint } from 'eslint' ;
2- import packageJson from '../package.json' ;
2+ import packageJson from '../package.json' with { type : 'json' } ;
33import { noMissingComponentFile } from './rules/no-missing-component-file.js' ;
44import { noUnusedClassNames } from './rules/no-unused-class-names.js' ;
55
@@ -60,4 +60,4 @@ const plugin = {
6060} satisfies ESLint . Plugin ;
6161plugin . configs . recommended . plugins [ 'css-modules-kit' ] = plugin ;
6262
63- export = plugin ;
63+ export default plugin ;
Original file line number Diff line number Diff line change 22 "name" : " @css-modules-kit/stylelint-plugin" ,
33 "description" : " A stylelint plugin for CSS Modules" ,
44 "version" : " 0.4.1" ,
5- "type" : " commonjs " ,
5+ "type" : " module " ,
66 "sideEffects" : false ,
77 "repository" : {
88 "type" : " git" ,
Original file line number Diff line number Diff line change 11import { noMissingComponentFile } from './rules/no-missing-component-file.js' ;
22import { noUnusedClassNames } from './rules/no-unused-class-names.js' ;
33
4- export = [ noUnusedClassNames , noMissingComponentFile ] ;
4+ export default [ noUnusedClassNames , noMissingComponentFile ] ;
Original file line number Diff line number Diff line change @@ -42,4 +42,4 @@ const recommendedConfig: Config = {
4242 } ,
4343} ;
4444
45- export = recommendedConfig ;
45+ export default recommendedConfig ;
Original file line number Diff line number Diff line change 22 "name" : " @css-modules-kit/ts-plugin" ,
33 "description" : " A TypeScript Language Service Plugin for CSS Modules" ,
44 "version" : " 0.7.0" ,
5- "type" : " commonjs " ,
5+ "type" : " module " ,
66 "sideEffects" : false ,
77 "repository" : {
88 "type" : " git" ,
1212 "author" : " mizdra <pp.mizdra@gmail.com>" ,
1313 "license" : " MIT" ,
1414 "private" : false ,
15- "main" : " ./dist/index.js " ,
15+ "main" : " ./dist/index.cjs " ,
1616 "scripts" : {
1717 "build" : " tsc -b tsconfig.build.json"
1818 },
2525 },
2626 "exports" : {
2727 "." : {
28- "types" : " ./dist/index.d.ts " ,
29- "default" : " ./dist/index.js "
28+ "types" : " ./dist/index.d.cts " ,
29+ "default" : " ./dist/index.cjs "
3030 },
3131 "./type" : {
3232 "types" : " ./dist/type.d.ts" ,
File renamed without changes.
You can’t perform that action at this time.
0 commit comments