Skip to content

Commit

Permalink
Added missing postinstall script to LIGO library package
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Weichert committed Oct 5, 2023
1 parent ef16374 commit be20f9d
Show file tree
Hide file tree
Showing 26 changed files with 117 additions and 98 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.40.17",
"version": "0.40.18",
"packages": [
"taqueria-protocol",
"taqueria-lib*",
Expand Down
98 changes: 49 additions & 49 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@taqueria/root",
"version": "0.40.17",
"version": "0.40.18",
"description": "An easy to use opinionated tool for building, testing, and deploying Tezos software",
"main": "index.ts",
"directories": {
Expand Down
4 changes: 2 additions & 2 deletions taqueria-analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@taqueria/analytics",
"version": "0.40.17",
"version": "0.40.18",
"description": "A TypeScript SDK submitting events for Taqueria activity",
"main": "./index.js",
"source": "./index.ts",
Expand Down Expand Up @@ -35,7 +35,7 @@
},
"homepage": "https://github.com/pinnacle-labs/taqueria#readme",
"dependencies": {
"@taqueria/protocol": "^0.40.17",
"@taqueria/protocol": "^0.40.18",
"node-machine-id-xz": "^1.0.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions taqueria-lib-ligo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@taqueria/lib-ligo",
"version": "0.40.17",
"version": "0.40.18",
"description": "A taqueria library which provides common functionality for the LIGO and LIGO Legacy Plugins",
"targets": {
"default": {
Expand Down Expand Up @@ -41,7 +41,7 @@
},
"homepage": "https://github.com/pinnacle-labs/taqueria#readme",
"dependencies": {
"@taqueria/node-sdk": "^0.40.17",
"@taqueria/node-sdk": "^0.40.18",
"fast-glob": "^3.3.1"
},
"devDependencies": {
Expand Down
19 changes: 19 additions & 0 deletions taqueria-lib-ligo/postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const fs = require('fs');
const path = require('path');

console.log('LIGO collects anonymous usage data by default. If you prefer not to participate, you may opt out by executing the command: `taq ligo -c "analytics deny"`. For more information, please contact the LIGO team on the Tezos Discord server: https://discord.gg/tezos');

const directoryPath = path.join(process.cwd(), '.ligo');
const filePath = path.join(directoryPath, 'term_acceptance');

// Check if the .ligo directory exists
if (!fs.existsSync(directoryPath)) {
// If not, create it
fs.mkdirSync(directoryPath);
}

// Check if the term-acceptance file exists within .ligo
if (!fs.existsSync(filePath)) {
// If not, create and write 'accepted' to it
fs.writeFileSync(filePath, 'accepted');
}
4 changes: 2 additions & 2 deletions taqueria-plugin-archetype/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@taqueria/plugin-archetype",
"version": "0.40.17",
"version": "0.40.18",
"description": "A taqueria plugin for compiling Archetype smart contracts",
"targets": {
"default": {
Expand Down Expand Up @@ -40,7 +40,7 @@
},
"homepage": "https://github.com/pinnacle-labs/taqueria#readme",
"dependencies": {
"@taqueria/node-sdk": "^0.40.17",
"@taqueria/node-sdk": "^0.40.18",
"fast-glob": "^3.3.1",
"ts-pattern": "^5.0.5"
},
Expand Down
Loading

0 comments on commit be20f9d

Please sign in to comment.