Skip to content

Commit

Permalink
update project
Browse files Browse the repository at this point in the history
  • Loading branch information
marihachi committed Aug 22, 2023
1 parent 8be0060 commit 8dbcce5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/.vscode

# user
/built
/build
/bin
/lib
/temp
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
"script-engine",
"uguisu"
],
"main": "lib/index.js",
"module": "./build/lib/index.js",
"main": "./build/lib/index.js",
"type": "module",
"bin": {
"uguisu": "bin/uguisu.js"
"uguisu": "./build/bin/uguisu.js"
},
"directories": {
"doc": "docs"
Expand All @@ -32,8 +33,8 @@
"scripts": {
"build": "tsc",
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --verbose",
"cli": "node bin/uguisu.js",
"nightly": "node scripts/nightly.js"
"cli": "node ./build/bin/uguisu.js",
"nightly": "node ./scripts/nightly.js"
},
"devDependencies": {
"@types/jest": "^29.5.0",
Expand All @@ -48,8 +49,7 @@
"char-regex": "^2.0.0"
},
"files": [
"bin/**/*",
"lib/**/*",
"build/**/*",
"CHANGELOG.md"
]
}
2 changes: 1 addition & 1 deletion src/bin/uguisu/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function showHelp() {

function showVersion() {
const currFilePath = fileURLToPath(import.meta.url);
const filePath = path.resolve(path.dirname(currFilePath), '../../package.json');
const filePath = path.resolve(path.dirname(currFilePath), '../../../package.json');
const json = fs.readFileSync(filePath, { encoding: 'utf8' });
const info = JSON.parse(json);
console.log(`uguisu ${info.version}`);
Expand Down
18 changes: 9 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "ESNext",
"module": "ES2020",
"outDir": "./",
"moduleResolution": "node",
"strict": true,
"noImplicitReturns": true,
"target": "es2020",
"module": "node16",
"outDir": "./build/",
"moduleResolution": "node16",
"declaration": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"removeComments": false
//"removeComments": true,
"strict": true,
"noImplicitReturns": true
//"esModuleInterop": true,
//"experimentalDecorators": true,
},
"include": [
"src/**/*"
Expand Down

0 comments on commit 8dbcce5

Please sign in to comment.