diff --git a/package.json b/package.json index 2ca06bb..adab0a0 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/src/internals.js b/src/internals.js new file mode 100644 index 0000000..7fd821c --- /dev/null +++ b/src/internals.js @@ -0,0 +1,2 @@ +export {atomic, possessive} from './atomic.js'; +export {RegExpSubclass} from './subclass.js';