Skip to content

Commit

Permalink
update project
Browse files Browse the repository at this point in the history
  • Loading branch information
marihachi committed Nov 20, 2023
1 parent 89061bf commit a6efe58
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 29 deletions.
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# carol-js

MIT License

Copyright (c) 2023 marihachi <[email protected]>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 3 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 15 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,23 @@
"repository": "https://github.com/marihachi/carol-js.git",
"bugs": "https://github.com/marihachi/carol-js/issues",
"type": "module",
"module": "./carol.js",
"types": "./carol.d.ts",
"module": "./lib/carol.js",
"types": "./lib/carol.d.ts",
"exports": {
".": {
"import": "./lib/carol.js",
"types": "./lib/carol.d.ts"
},
"./*": {
"import": "./lib/*",
"types": "./lib/*"
}
},
"scripts": {
"test": "node --test ./test.js"
"test": "node --test ./test/*.js"
},
"files": [
"carol.js",
"carol.d.ts"
"./lib/carol.js",
"./lib/carol.d.ts"
]
}
6 changes: 3 additions & 3 deletions test.js → test/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { strict as assert } from 'node:assert';
import test, { run } from 'node:test';
import * as C from './carol.js';
import assert from 'node:assert';
import test from 'node:test';
import * as C from 'carol-js';

test('pattern()', () => {
assert.strictEqual(C.pattern(/abc/).toRegex().source, 'abc');
Expand Down

0 comments on commit a6efe58

Please sign in to comment.