Skip to content

Commit

Permalink
Change ./atomic export to ./internals
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Nov 15, 2024
1 parent e4ce1da commit 3049cad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"import": "./dist/regex.mjs",
"require": "./dist/regex.cjs"
},
"./atomic": {
"types": "./types/atomic.d.ts",
"import": "./src/atomic.js"
"./internals": {
"types": "./types/internals.d.ts",
"import": "./src/internals.js"
}
},
"browser": "./dist/regex.min.js",
Expand All @@ -22,7 +22,7 @@
"bundle:global": "esbuild src/regex.js --global-name=Regex --bundle --minify --sourcemap --outfile=dist/regex.min.js",
"bundle:esm": "esbuild src/regex.js --format=esm --bundle --sourcemap --outfile=dist/regex.mjs",
"bundle:cjs": "esbuild src/regex.js --format=cjs --bundle --sourcemap --outfile=dist/regex.cjs",
"types": "tsc src/regex.js --rootDir src --declaration --allowJs --emitDeclarationOnly --outDir types",
"types": "tsc src/regex.js src/internals.js --rootDir src --declaration --allowJs --emitDeclarationOnly --outDir types",
"prebuild": "rm -rf dist/* types/*",
"build": "npm run bundle:global && npm run bundle:esm && npm run bundle:cjs && npm run types",
"pretest": "npm run build",
Expand Down
2 changes: 2 additions & 0 deletions src/internals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {atomic, possessive} from './atomic.js';
export {RegExpSubclass} from './subclass.js';

0 comments on commit 3049cad

Please sign in to comment.